sysplot.get_style#

get_style(index=None, ax=None)[source]#

Return a style entry from the sysplot custom cycler PlotStyle.

This is useful to synchronize different plotting elements like plot(), scatter(), and stem() to share style progression. Use one of two modes: - index for deterministic access to a specific style. - ax to consume the next style from an axes color cycle.

Parameters:
  • index (int | None) – Fixed style index of the cycler.

  • ax (Axes | None) – Target axes to read the next style from.

Return type:

PlotStyle

Returns:

PlotStyle – Dictionary with color and linestyle.

Examples using sysplot.get_style#

Get Style Example

Get Style Example

Matplotlib Cycler

Matplotlib Cycler

Quick Start Example

Quick Start Example