gana.utils.draw

Contents

gana.utils.draw#

Plotting Utilities

Functions

draw(element[, data, kind, font_size, ...])

Plot the variable set

rc(group, **kwargs)

Set the current .rcParams. group is the grouping for the rc, e.g., for lines.linewidth the group is lines, for axes.facecolor, the group is axes, and so on. Group may also be a list or tuple of group names, e.g., (xtick, ytick). kwargs is a dictionary attribute name/value pairs, e.g.,::.

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.