class eelbrain.plot.Histogram(y, x=None, match=None, sub=None, ds=None, pooled=True, density=False, test=False, tight=True, title=None, xlabel=True, *args, **kwargs)

Histogram plots with tests of normality

Y : Var

Dependent variable.

x : categorial

Categories for separate histograms.

match : None | categorial

Match cases for a repeated measures design.

sub : None | index-array

Use a subset of the data.

ds : None | Dataset

If a Dataset is specified, all data-objects can be specified as names of Dataset variables

pooled : bool

Add one plot with all values/differences pooled.

density : bool

Norm counts to approximate a probability density (default False).

test : bool

Test for normality.

tight : bool

Use matplotlib’s tight_layout to expand all axes to fill the figure (default True)

Also accepts General layout parameters.


add_hline(self, y[, axes]) Draw a horizontal line on one or more axes
add_hspan(self, bottom, top[, axes]) Draw a horizontal bar on one or more axes
add_vline(self, x[, axes]) Draw a vertical line on one or more axes
add_vspan(self, xmin, xmax[, axes]) Draw a vertical bar on one or more axes
close(self) Close the figure.
draw(self) (Re-)draw the figure (after making manual changes).
draw_crosshairs(self[, enable]) Draw crosshairs under the cursor
image(self[, name, format]) Create FMTXT Image from the figure
save(self, *args, **kwargs) Short-cut for Matplotlib’s savefig()
set_name(self, name) Set the figure window title
set_xlabel(self, label[, ax]) Set the label for the x-axis
set_xtick_rotation(self, rotation) Rotate every x-axis tick-label by an angle (counterclockwise, in degrees)
set_ylabel(self, label[, ax]) Set the label for the y-axis