_styling

_styling#

Immutable default render-kwargs dictionaries for each pyvisual render type.

Every constant in this module is a MappingProxyType (read-only view of a dict), preventing accidental mutation of package-level defaults at runtime. Caller-supplied keyword arguments are merged on top of these defaults using the | operator, so any key can be overridden without modifying the originals.

The constants fall into two groups:

Coloring defaults — merged before geometry kwargs when data arrays are present or absent:

Geometry defaults — merged after the coloring defaults to fix render-style flags that depend on the geometry type (points, splines, slices):

Fieldline-specific defaults:

Attributes

COLORMAP_KWARGS

Base PyVista kwargs applied when rendering geometry with scalar data.

FIELDLINE_KWARGS

Default colormap discretisation and limits for fieldline scalar data.

FL_POLARITY_COLORING_DEFAULTS

Full PyVista kwargs for polarity-colored fieldline rendering.

FL_STATE_ANNOTATIONS

Scalar-bar annotations for the five magnetic fieldline polarity states.

PLOT1D_KWARGS

Default render-style kwargs for 1-D line geometry (tube rendering).

PLOT2D_KWARGS

Default render-style kwargs for 2-D surface geometry (flat surface rendering).

POINTS_KWARGS

Default render-style kwargs for point-cloud geometry (sphere glyphs at each point).

RANDOM_COLORING_DEFAULTS

PyVista kwargs for randomly hue-assigned fieldline rendering.

SLICES_KWARGS

Default render-style kwargs for 2-D slice geometry (flat surface, no tube/sphere glyphs).

SOLID_COLOR_KWARGS

Base PyVista kwargs applied when rendering geometry without scalar data.

SPLINES_KWARGS

Default render-style kwargs for spline/line geometry (tube rendering).