serpentTools.utils.plot.setAx_ylims

serpentTools.utils.plot.setAx_ylims(ax, ymin, ymax, pad=10)

Set the y limits on an Axes object

Parameters
  • ax (matplotlib.axes.Axes) – Ax to be updated

  • ymin (float) – Current minimum extent of y axis

  • ymax (float) – Current maximum extent of y axis

  • pad (float, optional) – Padding, in percent, to apply to each side of the current min and max