shellplot.boxplot
- shellplot.boxplot(x, labels=None, fig=None, **kwargs)[source]
Plot a boxplot of x
Note that currently this makes a boxplot using the quantiles: [0, 0.25, 0.5, 0.75, 1.0] - i.e. it the whiskers will not exclude outliers
- Parameters
x (array-like) – The horizontal coordinates of the data points. Can be 1d or 2d np.ndarray/ pandas series/ dataframe. If 2d, each 1d slice will be plotted as a separate boxplot.
labels (array-like) – Array that is used to label the boxplots.
fig (shellplot.figure.Figure, optional, default None) – If provided, plot will be attached to figure. Otherwise, a new figure is created for the plot
return_type (str, optional) – If ‘str’, returns the plot as a string. Otherwise, the plot will be directly printed to stdout.
**kwargs – Additional parameters passed to shellplot.figure (Only used if the fig keyword is None)
- Returns
See notes, dependent on return_type
- Return type
result