set_lims_if_provided

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

sets plt.xlim and/or plt.ylim, if they are non-None in plot_settings.

ax: None or matplotlib axis object

the Axes on which to set the lims. None –> ax=plt.gca().
returns (bool, bool) indicating whether xlim, ylim were set.