class eelbrain.plot.Histogram(y, x=None, match=None, sub=None, data=None, pooled=True, density=False, test=False, tight=True, title=None, xlabel=True, ylabel=None, bins=None, **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 (index-array) – Use a subset of the data.

  • ds (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)

  • title (str) – Figure title.

  • xlabel (bool | str) – X axis label.

  • ylabel (bool | str) – Y axis label.

  • bins (str | int | array) – Histogram bins, specified either as arry of bin edges or as bins parameter for numpy.histogram_bin_edges()).

  • ... – Also accepts General layout parameters.

  • y (Var | str | Sequence[float])

  • data (Dataset)


add_hline(y[, axes])

Draw a horizontal line on one or more axes

add_hspan(bottom, top[, axes])

Draw a horizontal bar on one or more axes

add_vline(x[, axes])

Draw a vertical line on one or more axes

add_vspan(xmin, xmax[, axes])

Draw a vertical bar on one or more axes


Close the figure.


(Re-)draw the figure (after making manual changes).


Draw crosshairs under the cursor


Draw the outline of the figure

image([name, format, close])

Create FMTXT Image from the figure

save(*args, **kwargs)

Short-cut for Matplotlib's savefig()


Set the figure window title

set_xlabel(label[, ax])

Set the label for the x-axis


Rotate every x-axis tick-label by an angle (counterclockwise, in degrees)

set_ylabel(label[, ax])

Set the label for the y-axis