PlotStyleConfig
Matplotlib plot rendering options for GRADIEND visualizations.
GRADIEND always appends \usepackage{amsmath} and \usepackage{amssymb} when
text.usetex is enabled (required for \rightleftarrows transition arrows).
Set only your extra packages in latex_preamble_extra.
from_env
classmethod
Build config from GRADIEND_PLOT_* environment variables.
Source code in gradiend/visualizer/plot_style_config.py
Apply GRADIEND matplotlib defaults (idempotent unless force).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
Optional[PlotStyleConfig]
|
Style options. Defaults to :meth: |
None
|
force
|
bool
|
Re-apply usetex, font, and preamble even when already configured. |
False
|
Returns:
| Type | Description |
|---|---|
PlotStyleStatus
|
Summary of the active matplotlib text settings. |
Source code in gradiend/visualizer/plot_style.py
Replace transition delimiters with matplotlib-appropriate arrows.
When use_latex is omitted, follows :func:resolve_transition_arrow_mode.
Idempotent for labels that already contain $...$ math segments.
Source code in gradiend/visualizer/labels.py
Bidirectional transition arrow for matplotlib labels (GRADIEND pair notation).
Source code in gradiend/visualizer/labels.py
Directed transition arrow for matplotlib labels (source to target).