eelbrain.plot.UTSClusters

class eelbrain.plot.UTSClusters(res, pmax=0.05, ptrend=0.1, axtitle=True, cm=None, overlay=False, xticklabels='bottom', *args, **kwargs)

Plot permutation cluster test results

Parameters:
res : testnd.anova

ANOVA with permutation cluster test result object.

pmax : scalar

Maximum p-value of clusters to plot as solid.

ptrend : scalar

Maximum p-value of clusters to plot as trend.

axtitle : bool | sequence of str

Title for the individual axes. The default is to show the names of the epochs, but only if multiple axes are plotted.

cm : str

Colormap to use for coloring different effects.

overlay : bool

Plot epochs (time course for different effects) on top of each other (as opposed to on separate axes).

xticklabels : bool | int | list of int

Specify which axes should be annotated with x-axis tick labels. Use int for a single axis (default -1), a sequence of int for multiple specific axes, or bool for all/none.

tight : bool

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

Also accepts General layout parameters.

Methods

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_pmax(self[, pmax, ptrend]) Set the threshold p-value for clusters to be displayed
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