eelbrain.plot.Scatter¶
-
class
eelbrain.plot.
Scatter
(y, x, color=None, size=None, sub=None, ds=None, colors=None, vmin=None, vmax=None, markers=None, legend='upper right', labels=None, alpha=1.0, xlabel=True, ylabel=True, **kwargs)¶ Scatter-plot
- Parameters
color (
Union
[Factor
,Interaction
,NestedEffect
,str
,Var
,None
]) – Plot the correlation separately for different categories.sub (
Union
[Var
,ndarray
,str
,None
]) – Use a subset of the data.ds (
Optional
[Dataset
]) – If a Dataset is specified, all data-objects can be specified as names of Dataset variablescolors (
Union
[str
,dict
,None
]) – Ifcolor
is continuous, a colormap to assign color to values. Ifcolor
is discrete, a dictionary of colors for values incolor
.markers (
Optional
[str
]) – Marker shape (seematplotlib.markers
).legend (
Union
[str
,int
,bool
]) – Matplotlib figure legend location argument, or'fig'
to plot the legend in a separate figure.labels (
Optional
[dict
]) – Alternative labels for legend as{cell: label}
dictionary (preserves order).xlabel (
Union
[bool
,str
]) – Labels for x-axis; the default is determined from the data.ylabel (
Union
[bool
,str
]) – Labels for y-axis; the default is determined from the data... – Also accepts General layout parameters.
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 |
|
Close the figure. |
|
(Re-)draw the figure (after making manual changes). |
|
Draw crosshairs under the cursor |
|
Create FMTXT Image from the figure |
|
Plot a colorbar corresponding to the displayed data |
|
Plot the legend (or remove it from the figure). |
|
Short-cut for Matplotlib’s |
|
Save the legend as image file |
|
Set the figure window title |
|
Set the label for the x-axis |
|
Rotate every x-axis tick-label by an angle (counterclockwise, in degrees) |
|
Set the label for the y-axis |