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.

visualization.plot.plot_waterfall

visualization.plot.plot_waterfall

Classes

NameDescription
WaterfallConfigConfiguration object for controlling the aesthetics of xmris Waterfall Plots.

Functions

NameDescription
plot_waterfallGenerate a publication-ready waterfall plot (2D stacked series) of 1D spectra.

plot_waterfall

visualization.plot.plot_waterfall.plot_waterfall(
    da,
    x_dim=None,
    stack_dim=None,
    ax=None,
    config=None,
)

Generate a publication-ready waterfall plot (2D stacked series) of 1D spectra.

This function automatically normalizes the array amplitude, applies configured styling, and safely resolves missing dimensions.

Parameters

NameTypeDescriptionDefault
daxr.DataArrayThe N-dimensional DataArray containing the spectroscopic data.required
x_dimstrThe dimension to plot along the horizontal axis. If None, attempts to auto-resolve (prefers ‘chemical_shift’ or ‘frequency’).None
stack_dimstrThe dimension to stack vertically. If None, attempts to auto-resolve based on remaining dimensions.None
axplt.AxesA pre-existing matplotlib Axes object to plot onto. If None, a new Figure and Axes will be created.None
configPlotWaterfallConfigA configuration dataclass defining all aesthetic parameters. If None, default styling is applied.None

Returns

NameTypeDescription
plt.AxesThe matplotlib Axes object containing the rendered waterfall plot.