Barak 0.3.2 documentation

barak.plot.distplot

«  barak.plot.dhist   ::   Contents   ::   barak.plot.draw_arrows  »

barak.plot.distplot

barak.plot.distplot(vals, xvals=None, perc=(68, 95), showmean=False, showoutliers=True, color='forestgreen', ax=None, logx=False, logy=False, negval=None, **kwargs)[source]

Make a top-down histogram plot for an array of distributions. Shows the median, 68%, 95% ranges and outliers.

Similar to a boxplot.

Parameters :

vals : sequence of arrays

2-d array or a sequence of 1-d arrays.

xvals : array of floats

x positions.

perc : array of floats (68, 95)

The percentile levels to use for area shading. Defaults show the 68% and 95% percentile levels; roughly 1 and 2 sigma ranges for a Gaussian distribution.

showmean : boolean (False)

Whether to show the means as a dashed black line.

showoutliers : boolean (False)

Whether to show outliers past the highest percentile range.

color : mpl color (‘forestgreen’)

ax : mpl Axes object

Plot to this mpl Axes instance.

logx, logy : bool (False)

Whether to use a log x or y axis.

negval : float (None)

If using a log y axis, replace negative plotting values with this value (by default it chooses a suitable value based on the data values).

«  barak.plot.dhist   ::   Contents   ::   barak.plot.draw_arrows  »