Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

WaterfallConfig

Configuration object for controlling the aesthetics of xmris Waterfall Plots.

Parameters

Figure Setup

ParameterTypeDefaultDescription
figsizetuple(8, 6)Dimensions of the figure in inches (width, height).
stylestrseaborn-v0_8-whiteMatplotlib style sheet used for the underlying canvas.
fontfamilystrsans-serifFont family used for all plot text (e.g., ‘sans-serif’, ‘serif’).

Stack Geometry

ParameterTypeDefaultDescription
stack_offsetfloat0.5Vertical baseline shift between stacked spectra(in normalized amplitude units).
stack_scalefloat10.0Height multiplier for individual spectra to control visual overlap (baseline max is 1.0).
stack_skewfloat-20.0Horizontal skew angle in degrees (strictly between -89.0 and 89.0). 0 is vertically straight.

Stack Aesthetics

ParameterTypeDefaultDescription
cmapstr | NonemagmaMatplotlib colormap string. Set to None to disable filled areas.
cmap_startfloat0.8Top color boundary sampled from the colormap (0.0 to 1.0).
cmap_endfloat0.1Bottom color boundary sampled from the colormap (0.0 to 1.0).
alphafloat0.75Transparency (alpha) of the colored filled area under spectra.
linewidthfloat0.8Thickness in points of standard spectrum outlines.
linewidth_highlightfloat1.3Thickness in points for labeled/highlighted spectrum outlines.

Stack Labels

ParameterTypeDefaultDescription
stack_label_stepint10Interval at which to add a stack y-axis label (e.g., every 10th spectrum).
stack_label_x_offsetfloat-0.25Horizontal adjustment for stack labels (in x-axis data units).
stack_label_y_offsetfloat0.0Vertical adjustment for stack labels (as a fraction of stack_offset).

Axes & Ticks

ParameterTypeDefaultDescription
xlabelstr | NoneNoneExplicit x-axis string label. If None, uses the formatted xarray dimension name.
labelsizeint12Font size in points applied to the primary axis labels.
ticklabelsizeint10Font size in points applied to the axis tick marks and stack labels.
pad_leftfloat0.0Empty padding space on the high-value (left) side in x-axis data units.
pad_rightfloat0.0Empty padding space on the low-value (right) side in x-axis data units.
xminor_locatorint5Number of sub-intervals between major x-axis ticks.

Annotations

ParameterTypeDefaultDescription
annotationstr | NoneAbsorption ModeText annotation placed in the top left corner. Set to None to hide entirely.