sysplot.set_xmargin#

set_xmargin(ax=None, use_margin=True)[source]#

Toggle x-axis margins for an axes.

Applies either Matplotlib’s default axes.xmargin value or the current project-configured axes.xmargin value, then refreshes autoscaling.

Parameters:
  • ax (Axes | None) – Target axes to modify. If None, uses matplotlib.pyplot.gca().

  • use_margin (bool) – If True, applies Matplotlib’s default x-margin. If False, applies the currently active/project x-margin.

Return type:

None

Examples using sysplot.set_xmargin#

X-Margin Example

X-Margin Example
rtype:

None