rcatool.plot.plots.make_box_plot

rcatool.plot.plots.make_box_plot(grid, data, labels=None, leg_labels=None, grouped=False, box_colors=None, **box_kwargs)[source]

Create a box plot

Parameters:
  • grid (AxesGrid object) – returned from the ‘fig_grid_setup’ function

  • data (List/Array) – 1d array or list of 1d arrays with data for boxplot

  • labels (str/list) – String or a list of strings with xtick labels (for each box/group of boxes)

  • leg_labels (str/list) – String or a list of strings with legend labels (mostly used for grouped boxplots).

  • grouped (boolean) – Whether to plot grouped boxplot. If True, input data must be a dictionary. See _grouped_boxplot function for more info.

  • box_colors (array/list) – Optional list of colors to be used for the boxes.

  • **box_kwargs (keyword arguments) – arguments (key=value) that can be used in pyplot.boxplot See matplotlib.org for more information

Returns:

  • axs (list) – Axes objects for each plot

  • bps (list) – Each item in list is a dictionary mapping each component of the boxplot to a list of the .Line2D instances created.