sysplot.set_xmargin#
- set_xmargin(ax=None, use_margin=True)[source]#
Toggle x-axis margins for an axes.
Applies either Matplotlib’s default
axes.xmarginvalue or the current project-configuredaxes.xmarginvalue, then refreshes autoscaling.- Parameters:
ax (
Axes|None) – Target axes to modify. IfNone, usesmatplotlib.pyplot.gca().use_margin (
bool) – IfTrue, applies Matplotlib’s default x-margin. IfFalse, applies the currently active/project x-margin.
- Return type:
None
Examples using
sysplot.set_xmargin#- rtype:
None