gana.utils.draw#
Plotting Utilities
Functions
|
Plot the variable set |
|
Set the current .rcParams. group is the grouping for the rc, e.g., for |
- draw(element: V | P, data: list[float] | None = None, kind: str = 'line', font_size: float = 16, fig_size: tuple[float, float] = (12, 6), linewidth: float = 0.7, color: str = 'blue', grid_alpha: float = 0.3, usetex: bool = True, str_idx_lim: int = 10)[source]#
Plot the variable set
- Parameters:
kind (str, optional) – Type of plot [‘line’, ‘bar’]. Defaults to ‘line’.
font_size (float, optional) – Font size for the plot. Defaults to 16.
fig_size (tuple[float, float], optional) – Size of the figure. Defaults to (12, 6).
linewidth (float, optional) – Width of the line in the plot. Defaults to 0.7.
color (str, optional) – Color of the line in the plot. Defaults to ‘blue’.
grid_alpha (float, optional) – Transparency of the grid lines. Defaults to 0.3.
usetex (bool, optional) – Use LaTeX for text rendering. Defaults to True.
str_idx_lim (int, optional) – Limit for string indices display. Defaults to 10.