serpentTools.utils.plot.setAx_xlims¶
-
serpentTools.utils.plot.
setAx_xlims
(ax, xmin, xmax, pad=10)¶ Set the x limits on an Axes object
- Parameters
ax (
matplotlib.axes.Axes
) – Ax to be updatedxmin (float) – Current minimum extent of x axis
xmax (float) – Current maximum extent of x axis
pad (float, optional) – Padding, in percent, to apply to each side of the current min and max