mathxlab.viz.mpl¶
Matplotlib visualization backend wrappers.
Stability
Status: Experimental.
This project treats the documented names as the public surface, but details may still evolve.
If you need strict API guarantees, add __all__ = [...] to each module and version releases accordingly.
Design notes¶
Keep figure styling consistent across experiments.
Prefer small helpers over copy/pasted plotting code.
Examples¶
Apply consistent styling to the current figure¶
from mathxlab.viz.mpl import finalize_figure
finalize_figure("Prime density", "x", "y")
Public API¶
Name |
Kind |
Summary |
|---|---|---|
|
function |
Apply consistent Matplotlib styling to the current figure. |
Reference¶
Functions¶
- mathxlab.viz.mpl.finalize_figure(title, xlabel, ylabel, grid=True)[source]¶
Apply consistent Matplotlib styling to the current figure.
- Parameters:
title – Figure title.
xlabel – X-axis label.
ylabel – Y-axis label.
grid – Whether to enable a grid.
See also
mathxlab.plots.helpers.finalize_figure: Figure-level finalization for object-oriented Matplotlib usage.
Examples
>>> import matplotlib.pyplot as plt >>> from mathxlab.viz.mpl import finalize_figure >>> finalize_figure("Demo", "x", "y")