class_docstr: An instance whose size is a *fraction* of the *ref_size*.
  
  >>> s = Fraction(0.3, AxesX(ax))
class_docstr_tok: ["An","instance","whose","size","is","a","*","fraction","*","of","the","*","ref_size","*",".",">",">",">","s","=","Fraction","(","0.3",",","AxesX","(","ax",")",")"]
code: def __init__(self, fraction, ref_size):
      _api.check_isinstance(Real, fraction=fraction)
      self._fraction_ref = ref_size
      self._fraction = fraction
  
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 Fraction object from inherited base classes: _Base with example: obj = Fraction(fraction, ref_size)