class_docstr: Create a path from the text.
docstr: update the path if necessary.
  
  The path for the text is initially create with the font size
  of FONT_SCALE, and this path is rescaled to other size when
  necessary.
docstr_tok: ["update","the","path","if","necessary",".","The","path","for","the","text","is","initially","create","with","the","font","size","of","FONT_SCALE",",","and","this","path","is","rescaled","to","other","size","when","necessary","."]
code: def _revalidate_path(self):
      """
      update the path if necessary.
  
      The path for the text is initially create with the font size
      of FONT_SCALE, and this path is rescaled to other size when
      necessary.
  
      """
      if self._invalid or (self._cached_vertices is None):
          tr = (
              Affine2D()
              .scale(
                  self._size / text_to_path.FONT_SCALE,
                  self._size / text_to_path.FONT_SCALE,
              )
              .translate(*self._xy)
          )
          self._cached_vertices = tr.transform(self._vertices)
          self._invalid = False
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  from collections import OrderedDict
  import six
  from six.moves import zip
  import warnings
  import numpy
  from matplotlib.path import Path
  from matplotlib import rcParams
  import matplotlib.font_manager
  from matplotlib.ft2font import KERNING_DEFAULT, LOAD_NO_HINTING
  from matplotlib.ft2font import LOAD_TARGET_LIGHT
  from matplotlib.mathtext import MathTextParser
  import matplotlib.dviread
  from matplotlib.font_manager import FontProperties, get_font
  from matplotlib.transforms import Affine2D
  from six.moves.urllib.parse import quote
label_desc: Use image node_id 6 for calling the TextPath obj's underlying member method code with example usage: obj._revalidate_path() without return types