Skip to main content

Module style

Module style 

Source
Expand description

MATLAB-style plot style string parsing.

A style string combines an optional color code, an optional marker code, and an optional line-style code in any order:

CodeMeaning
r g b c m y k wColor
. o x + * s d ^Marker
- -- -. :Line style

Structs§

StyleColor
RGB color triple (red, green, blue).
StyleSpec
Combined plot style parsed from a MATLAB-style format string.
Theme
Coordinated colour preset for a figure.

Enums§

AxisMode
Axis display mode set via axis(...).
LinestyleKind
Line drawing style.
MarkerKind
Marker symbol kind.
YAxis
Active Y axis for new series in a dual-axis (yyaxis) figure.

Functions§

looks_like_style_str
Returns true when s looks like a MATLAB-style format string.
parse_color_token
Tries to parse token as a color: single letter, full name, or #RRGGBB hex.
parse_style_str
Parses a MATLAB-style format string into a StyleSpec.