_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:
SOLID_COLOR_KWARGS— used when no scalar data is supplied (solid color).COLORMAP_KWARGS— used when scalar data is supplied (colormap render).
Geometry defaults — merged after the coloring defaults to fix render-style flags that depend on the geometry type (points, splines, slices):
Fieldline-specific defaults:
FIELDLINE_KWARGS— baseline colormap limits for fieldline scalars.FL_POLARITY_COLORING_DEFAULTS— five-category polarity colormap.RANDOM_COLORING_DEFAULTS— random per-fieldline hue assignment.
Attributes
Base PyVista kwargs applied when rendering geometry with scalar data. |
|
Default colormap discretisation and limits for fieldline scalar data. |
|
Full PyVista kwargs for polarity-colored fieldline rendering. |
|
Scalar-bar annotations for the five magnetic fieldline polarity states. |
|
Default render-style kwargs for 1-D line geometry (tube rendering). |
|
Default render-style kwargs for 2-D surface geometry (flat surface rendering). |
|
Default render-style kwargs for point-cloud geometry (sphere glyphs at each point). |
|
PyVista kwargs for randomly hue-assigned fieldline rendering. |
|
Default render-style kwargs for 2-D slice geometry (flat surface, no tube/sphere glyphs). |
|
Base PyVista kwargs applied when rendering geometry without scalar data. |
|
Default render-style kwargs for spline/line geometry (tube rendering). |