set_margins_if_provided

PlasmaCalcs.plotting.plot_tools.lims.set_margins_if_provided(plot_settings, *, ax=None)

sets the margins for a plot, if they are non-None in plot_settings.

see also: plt_set_margin.
ax: None or matplotlib axis object
the Axes on which to set the margin. None –> ax=plt.gca().