class_docstr: Divider based on the preexisting axes.
class_docstr_tok: ["Divider","based","on","the","preexisting","axes","."]
docstr: Helper method for ``append_axes("top")`` and ``append_axes("bottom")``.
  
  See the documentation of `append_axes` for more details.
  
  :meta private:
code: def new_vertical(self, size, pad=None, pack_start=False, **kwargs):
      """
      Helper method for ``append_axes("top")`` and ``append_axes("bottom")``.
  
      See the documentation of `append_axes` for more details.
  
      :meta private:
      """
      if pad is None:
          pad = mpl.rcParams["figure.subplot.hspace"] * self._yref
      pos = "bottom" if pack_start else "top"
      if pad:
          if not isinstance(pad, Size._Base):
              pad = Size.from_any(pad, fraction_ref=self._yref)
          self.append_size(pos, pad)
      if not isinstance(size, Size._Base):
          size = Size.from_any(size, fraction_ref=self._yref)
      self.append_size(pos, size)
      locator = self.new_locator(
          nx=self._xrefindex,
          ny=0 if pack_start else len(self._vertical) - 1,
      )
      ax = self._get_new_axes(**kwargs)
      ax.set_axes_locator(locator)
      return ax
  
imports: import functools
  import numpy
  import matplotlib
  from matplotlib import _api
  from matplotlib.gridspec import SubplotSpec
  import matplotlib.transforms
  from .None import axes_size
label_desc: Use image node_id 4 for calling the AxesDivider obj's underlying member method code with example usage: obj.new_vertical(size, pad, pack_start) and returns: ax