eelbrain.plot.Array
- class eelbrain.plot.Array(y, xax=None, xlabel=True, ylabel=True, xticklabels='bottom', yticklabels='left', sub=None, data=None, x='time', vmax=None, vmin=None, cmap=None, contours=None, axtitle=True, interpolation=None, xlim=None, **kwargs)
Plot UTS data to a rectangular grid.
- Parameters:
xax (Factor | Interaction | NestedEffect | str) – Create a separate plot for each cell in this model.
xlabel (bool | str) – Labels for x-axis; the default is determined from the data.
ylabel (bool | str) – Labels for y-axis; the default is determined from the data.
xticklabels (str | int | Sequence[int]) – Specify which axes should be annotated with x-axis tick labels. Use
intfor a single axis, a sequence ofintfor multiple specific axes, or one of'left' | 'bottom' | 'all' | 'none'.yticklabels (str | int | Sequence[int]) – Specify which axes should be annotated with y-axis tick labels. Use
intfor a single axis, a sequence ofintfor multiple specific axes, or one of'left' | 'bottom' | 'all' | 'none'.data (Dataset) – If a Dataset is provided,
epochsandxaxcan be specified as strings.x (str) – Dimension to plot on the x axis (default ‘time’).
vmax (float) – Upper limits for the colormap.
vmin (float) – Lower limit for the colormap.
cmap (Any) – Colormap (default depends on the data).
contours (int | Sequence | dict) – Draw contours. Can be an int (number of contours, including
vminandvmax), a sequence (values at which to draw contours), or a dictionary with**kwargsforcontour()(must include a"levels"key). Default is no contours.axtitle (bool | Sequence[str]) – Title for the individual axes. The default is to show the names of the epochs, but only if multiple axes are plotted.
interpolation (str) – Array image interpolation (see Matplotlib’s
imshow()). Matplotlib 1.5.3’s SVG output can’t handle uneven aspect withinterpolation='none', useinterpolation='nearest'instead.xlim (float | tuple[float, float]) – Initial x-axis view limits as
(left, right)tuple or aslengthscalar (default is the full x-axis in the data).tight (bool) – Use matplotlib’s tight_layout to expand all axes to fill the figure (default True)
... – Also accepts General layout parameters.
Notes
- Navigation:
←: scroll left→: scroll righthome: scroll to beginningend: scroll to endf: zoom in (reduce x axis range)d: zoom out (increase x axis range)
Methods
|
Add a contour line |
|
Draw a horizontal line on one or more axes |
|
Draw a horizontal bar on one or more axes |
|
Draw a vertical line on one or more axes |
|
Draw a vertical bar on one or more axes |
|
Draw vertical bars over axes |
|
Close the figure. |
|
(Re-)draw the figure (after making manual changes). |
|
Draw crosshairs under the cursor |
|
Draw the outline of the figure |
|
Retrieve the current time |
|
Retrieve colormap value limits as |
|
|
|
Create FMTXT Image from the figure |
|
Link the time axis of this figure with another figure |
|
Cycle through the time axis |
|
Plot a colorbar corresponding to the displayed data |
|
Short-cut for Matplotlib's |
|
Save the figure with moving time axis as movie |
|
Change the colormap in the array plots |
|
Set the figure window title |
|
Set the time point to display |
|
Change the colormap limits |
|
Set the label for the x-axis |
|
Set the x-axis limits for all axes |
|
Rotate every x-axis tick-label by an angle (counterclockwise, in degrees) |
|
Set the label for the y-axis |