class_docstr: Scaled size whose relative part corresponds to the data height
  of the *axes* multiplied by the *aspect*.
class_docstr_tok: ["Scaled","size","whose","relative","part","corresponds","to","the","data","height","of","the","*","axes","*","multiplied","by","the","*","aspect","*","."]
code: def __init__(self, axes, aspect=1.0, ref_ax=None):
      self._axes = axes
      self._aspect = aspect
      if aspect == "axes" and ref_ax is None:
          raise ValueError("ref_ax must be set when aspect='axes'")
      self._ref_ax = ref_ax
  
imports: from numbers import Real
  from matplotlib import _api
  from matplotlib.axes import Axes
label_desc: Use image node_id 1 to create a new AxesY object from inherited base classes: _Base with example: obj = AxesY(axes, aspect, ref_ax)