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.

CarpetConfig

Configuration object for controlling the aesthetics of xmris Carpet Plots.

Parameters

Figure Setup

ParameterTypeDefaultDescription
figsizetuple(8, 5)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’).

Colormap Aesthetics

ParameterTypeDefaultDescription
cmapstrmagmaMatplotlib colormap string used for the 2D intensity.
cmap_startfloat0.1Lower color boundary sampled from the colormap (0.0 to 1.0) to avoid extremes.
cmap_endfloat0.8Upper color boundary sampled from the colormap (0.0 to 1.0) to avoid extremes.

Axes & Labels

ParameterTypeDefaultDescription
xlabelstr | NoneNoneExplicit x-axis string label. If None, uses the formatted xarray dimension name.
ylabelstr | NoneNoneExplicit y-axis string label. If None, uses the stacking dimension name.
labelsizeint12Font size in points applied to the primary axis labels.
ticklabelsizeint10Font size in points applied to the axis tick marks.

Ticks & Grid

ParameterTypeDefaultDescription
tick_colorstrlightgrayColor string for the inward-facing tick marks.
tick_len_majorfloat5.0Length of major ticks in points.
tick_wid_majorfloat1.0Width of major ticks in points.
tick_len_minorfloat2.0Length of minor ticks in points.
tick_wid_minorfloat0.8Width of minor ticks in points.
xminor_locatorint5Number of sub-intervals between major x-axis ticks.
yminor_locatorint4Number of sub-intervals between major y-axis ticks.
grid_onboolTrueToggle the visibility of the overlay coordinate grid.
grid_colorstrlightgrayColor of the overlay grid lines.
grid_alphafloat0.2Transparency of the overlay grid lines.
grid_linewidthfloat0.6Thickness of the overlay grid lines.

Colorbar

ParameterTypeDefaultDescription
cbar_onboolTrueToggle the visibility of the colorbar legend.
cbar_labelstr | NoneSignal Intensity (a.u.)Text label appended to the side of the colorbar.