class_docstr: Strip text background box
docstr: Update the location and the size of the bbox.
docstr_tok: ["Update","the","location","and","the","size","of","the","bbox","."]
code: def update_position_size(self, renderer: RendererBase):
      """
      Update the location and the size of the bbox.
      """
      if self._update:
          return
  
      text = self.text
      posx, posy = text.get_transform().transform((text._x, text._y))
      x, y, w, h = _get_textbox(text, renderer)
  
      self.set_bounds(0.0, 0.0, w, h)
      self.set_transform(
          Affine2D()
          .rotate_deg(text.get_rotation())
          .translate(posx + x, posy + y)
      )
      fontsize_in_pixel = renderer.points_to_pixels(
          text.get_size()  # type: ignore
      )
      self.set_mutation_scale(fontsize_in_pixel)  # type: ignore
      self._update = True
  
file_path: plotnine/plotnine/_mpl/patches.py
imports: from __future__ import annotations
  import typing
  from matplotlib.patches import FancyBboxPatch
  from matplotlib.text import _get_textbox
  from matplotlib.transforms import Affine2D
label_desc: Use image node_id 2 for calling the SFancyBboxPatch obj's underlying member method code with example usage: obj.update_position_size(renderer) without return types