sigpyproc.viz.styles#
Plotting styles for sigpyproc.
This module contains the Matplotlib/Seaborn style utilities for plotting in sigpyproc.
Classes
A class to plot text tables in matplotlib using relative positions. |
|
Single entry in the PlotTable with optional unit. |
Functions
Set seaborn style with custom rc parameters. |
- class sigpyproc.viz.styles.PlotTable(col_offsets=None, top_margin=None, line_height=None, font_size=None, font_family=None)[source]#
Bases:
objectA class to plot text tables in matplotlib using relative positions.
- Parameters:
- col_offsets
dict[str,float] |None, optional Dictionary of column names to x-positions (0-1), by default None.
- top_margin
float|None, optional Top margin as a fraction of the axis height, by default None.
- line_height
float|None, optional Height of each line as a fraction of the axis height, by default None.
- font_size
int|None, optional Font size, by default None.
- font_family
str|None, optional Font family, by default monospace.
- col_offsets
Methods
add_entry(name, value[, unit, color])Add an entry to the table.
plot(ax)Plot the table on the given axis.
Add a blank line to the table.
- DEFAULTS = {'col_offsets': {'name': 0.4, 'unit': 0.85, 'value': 0.8}, 'font_family': 'monospace', 'font_size': 12, 'line_height': 0.05, 'top_margin': 0.05}#
- class sigpyproc.viz.styles.TableEntry(name, value, unit=attr_dict['unit'].default, color=attr_dict['color'].default)[source]#
Bases:
objectSingle entry in the PlotTable with optional unit.
- Attributes:
- color
- name
- unit
- value
- name#
- value#
- unit#
- color#