eelbrain.plot.UTS¶
-
class
eelbrain.plot.
UTS
(y, xax=None, axtitle=True, ds=None, sub=None, xlabel=True, ylabel=True, xticklabels='bottom', bottom=None, top=None, legend='upper right', labels=None, xlim=None, colors=None, *args, **kwargs)¶ Value by time plot for UTS data
Parameters: - y : (list of) NDVar
Uts data to plot.
- xax : None | categorial
Make separate axes for each category in this categorial model.
- 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.
- ds : None | Dataset
If a Dataset is specified, all data-objects can be specified as names of Dataset variables.
- sub : str | array
Specify a subset of the data.
- xlabel, ylabel : str | None
X- and y axis labels. By default the labels will be inferred from the data.
- 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 ofint
for multiple specific axes, orbool
for all/none.- bottom, top : scalar
Y-axis limits.
- legend : str | int | ‘fig’ | None
Matplotlib figure legend location argument or ‘fig’ to plot the legend in a separate figure.
- labels : dict
Alternative labels for legend as
{cell: label}
dictionary (preserves order).- xlim : scalar | (scalar, scalar)
Initial x-axis view limits as
(left, right)
tuple or aslength
scalar (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 up↓
: scroll down←
: scroll left→
: scroll righthome
: scroll to beginningend
: scroll to endf
: x-axis zoom in (reduce x axis range)d
: x-axis zoom out (increase x axis range)r
: y-axis zoom in (reduce y-axis range)c
: y-axis zoom out (increase y-axis range)
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 |
add_vspans (self, intervals[, axes]) |
Draw vertical bars over 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 |
get_time (self) |
Retrieve the current time |
get_xlim (self) |
|
get_ylim (self) |
|
image (self[, name, format]) |
Create FMTXT Image from the figure |
link_time_axis (self, other) |
Link the time axis of this figure with another figure |
play_movie (self[, time_dilation]) |
Cycle through the time axis |
plot_legend (self[, loc, labels]) |
Plot the legend (or remove it from the figure). |
save (self, *args, **kwargs) |
Short-cut for Matplotlib’s savefig() |
save_legend (self, *args, **kwargs) |
Save the legend as image file |
save_movie (self[, filename, time_dilation]) |
Save the figure with moving time axis as movie |
set_name (self, name) |
Set the figure window title |
set_time (self, time) |
Set the time point to display |
set_xlabel (self, label[, ax]) |
Set the label for the x-axis |
set_xlim (self[, left, right]) |
Set the x-axis limits for all axes |
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 |
set_ylim (self[, bottom, top]) |
Set the y-axis limits |