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 get_size(self, renderer):
      if self._fraction_ref is None:
          return self._fraction, 0.0
      else:
          r, a = self._fraction_ref.get_size(renderer)
          rel_size = r * self._fraction
          abs_size = a * self._fraction
          return rel_size, abs_size
  
imports: from numbers import Real
  from matplotlib import _api
  from matplotlib.axes import Axes
label_desc: Use image node_id 2 for calling the Fraction obj's underlying member method code with example usage: obj.get_size(renderer) and returns: self,  int, rel_size,  abs_size