eelbrain.plot.UTS
- class eelbrain.plot.UTS(y, xax=None, axtitle=True, data=None, sub=None, xlabel=True, ylabel=True, xticklabels='bottom', yticklabels='left', bottom=None, top=None, legend=None, labels=None, xlim=None, clip=None, colors=None, color=None, stem=False, **kwargs)
Value by time plot for UTS data
- Parameters
y ((list of) NDVar) – Uts data to plot.
xax (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.
data (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 (Union[bool, str]) – X-axis label. By default the label is inferred from the data.
ylabel (Union[bool, str]) – Y-axis label. By default the label is inferred from the data.
xticklabels (Union[str, int, Sequence[int]]) – Specify which axes should be annotated with x-axis tick labels. Use
int
for a single axis, a sequence ofint
for multiple specific axes, or one of'left' | 'bottom' | 'all' | 'none'
.yticklabels (Union[str, int, Sequence[int]]) – Specify which axes should be annotated with y-axis tick labels. Use
int
for a single axis, a sequence ofint
for multiple specific axes, or one of'left' | 'bottom' | 'all' | 'none'
.bottom (float) – The lower end of the plot’s y axis.
top (float) – The upper end of the plot’s y axis.
legend (Optional[Union[str, int, Tuple[float, float], bool]]) – Matplotlib figure legend location argument or ‘fig’ to plot the legend in a separate figure.
labels (Dict[Union[str, Tuple[str, ...]], str]) – Alternative labels for legend as
{cell: label}
dictionary (preserves order).xlim (Union[float, Tuple[float, float]]) – Initial x-axis view limits as
(left, right)
tuple or aslength
scalar (default is the full x-axis in the data).clip (bool) – Clip lines outside of axes (the default depends on whether
frame
is closed or open).colors (Union[Any, dict]) – Dictionary mapping
y
names to color, or a single color to use for all lines.stem (bool) – Plot as stem-plot (default is a line-plot).
tight (bool) – Use matplotlib’s tight_layout to expand all axes to fill the figure (default True)
... – Also accepts General layout parameters.
color (Any) –
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
|
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 |
|
|
|
|
|
Create FMTXT Image from the figure |
|
Link the time axis of this figure with another figure |
|
Cycle through the time axis |
|
Plot the legend (or remove it from the figure). |
|
Short-cut for Matplotlib's |
|
Save the legend as image file |
|
Save the figure with moving time axis as movie |
|
Set the figure window title |
|
Set the time point to display |
|
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 |
|
Set the y-axis limits |