class_docstr: A cell is a Rectangle with some associated text.
class_docstr_tok: ["A","cell","is","a","Rectangle","with","some","associated","text","."]
docstr: Shrink font size until text fits. 
code: def auto_set_font_size(self, renderer):
      """Shrink font size until text fits."""
      fontsize = self.get_fontsize()
      required = self.get_required_width(renderer)
      while fontsize > 1 and required > self.get_width():
          fontsize -= 1
          self.set_fontsize(fontsize)
          required = self.get_required_width(renderer)
  
      return fontsize
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  from six.moves import xrange
  import warnings
  from .None import artist
  from .artist import Artist, allow_rasterization
  from .patches import Rectangle
  from matplotlib import docstring
  from .text import Text
  from .transforms import Bbox
  from matplotlib.path import Path
label_desc: Use image node_id 7 for calling the Cell obj's underlying member method code with example usage: obj.auto_set_font_size(renderer) and returns: fontsize