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.

PlotRidgeConfig

Configuration object for controlling the aesthetics of xmris Ridge Plots.

Modify these attributes to customize the publication-ready output.

Parameters

Figure & Canvas

ParameterTypeDefaultDescription
figsizetuple(8, 6)Dimensions of the figure (width, height).
stylestrseaborn-v0_8-whiteMatplotlib style sheet used for the underlying canvas.
fontfamilystrsans-serifFont family used for all plot text.

Stacking & Colors

ParameterTypeDefaultDescription
offset_stepfloat1.5Vertical shift between consecutive stacked spectra.
cmapstrmagmaMatplotlib colormap used for the stack gradient.
cmap_startfloat0.8Top color boundary from the colormap (0 to 1).
cmap_endfloat0.1Bottom color boundary from the colormap (0 to 1).
fill_alphafloat0.75Transparency of the colored filled area under spectra.

Line Aesthetics

ParameterTypeDefaultDescription
linewidthfloat0.8Thickness of standard spectrum outlines.
linewidth_highlightfloat1.3Thickness for labeled/highlighted spectrum outlines.

Stack Labels

ParameterTypeDefaultDescription
label_every_nint10Interval at which to add a stack label (every Nth spectrum).
label_x_nudgefloat-0.25Horizontal adjustment/offset for stack labels.
label_y_nudge_fracfloat0.0Vertical adjustment for stack labels (fraction of offset_step).
labelsizeint12Font size applied to the axis labels.
ticklabelsizeint10Font size applied to the axis tick marks.

x-Axis

ParameterTypeDefaultDescription
xlabelstr | NoneNonex-axis label. If None (default), uses the xarray dimension name.

Axes Padding & Ticks

ParameterTypeDefaultDescription
pad_leftfloat0.0Empty padding space on the high-value (left) side.
pad_rightfloat0.0Empty padding space on the low-value (right) side.
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.