gana.block.solution#
Solution
Functions
|
Add dunder methods based on the fields defined in the class. |
|
Set the current .rcParams. group is the grouping for the rc, e.g., for |
Classes
|
Set of index elements (X). |
|
A State with its variables filled in |
|
Ordered set of variables (Var). |
- class Solution(name: str = ' ')[source]#
Bases:
objectA State with its variables filled in
- Parameters:
name (str) – Name of the solution
- name: str = ' '#
- draw(variable: V, kind: str = 'line', font_size: float = 16, fig_size: tuple[float, float] = (10, 6), linewidth: float = 0.7, color: str = 'blue', grid_alpha: float = 0.3, usetex: bool = True, x_ticks_lim: int = 20)[source]#
Plot the variable set
- Parameters:
variable (V) – The variable to plot
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
x_ticks_lim (int, optional) – Maximum number of x-ticks to display, defaults to 20