eelbrain.plot.ColorList
- class eelbrain.plot.ColorList(colors, cells=None, labels=None, size=None, h=None, shape='box', markersize=None, **kwargs)
Plot colors with labels
- Parameters
colors (
Dict
[Union
[str
,Tuple
[str
,...
]],Any
]) – Colors for cells.cells (
Optional
[Sequence
[Union
[str
,Tuple
[str
,...
]]]]) – Cells for which to plot colors (default iscolors.keys()
).labels (
Optional
[Dict
[Union
[str
,Tuple
[str
,...
]],str
]]) – Condition labels that are used instead of the keys incolors
. This is useful ifcolors
uses abbreviated labels, but the color legend should contain more intelligible labels.size (
Optional
[float
]) – Size (width and height) of the color squares (the default is to scale them to fit the font size).h (
Optional
[float
]) – Height of the figure in inches (default is chosen to fit all labels).shape (
Literal
[‘box’, ‘line’, ‘marker’]) – Shape for color samples (default ‘box’).... – Also accepts General layout parameters.
- Variables
labels (list of
matplotlib.text.Text
) – Color labels.
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 |
|
Draw the outline of the figure |
|
Create FMTXT Image from the figure |
|
Short-cut for Matplotlib's |
|
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 |