title: How to get the width of a matplotlib text, including the padded bounding box?
body: <p>I know how to get the width of the text:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  from matplotlib.patches import BoxStyle
  
  xpos, ypos = 0, 0
  text = 'blah blah'
  
  boxstyle = BoxStyle("Round", pad=1)
  props = {'boxstyle': boxstyle,
           'facecolor': 'white',
           'linestyle': 'solid',
           'linewidth': 1,
           'edgecolor': 'black'}
  
  textbox = plt.text(xpos, ypos, text, bbox=props)
  plt.show()
  textbox.get_bbox_patch().get_width() # 54.121092459652573
  </code></pre>
  
  <p>However, this does not take into account the padding. Indeed, if I set the padding to 0, I get the same width.</p>
  
  <pre><code>boxstyle = BoxStyle("Round", pad=0)
  props = {'boxstyle': boxstyle,
           'facecolor': 'white',
           'linestyle': 'solid',
           'linewidth': 1,
           'edgecolor': 'black'}
  
  textbox = plt.text(xpos, ypos, text, bbox=props)
  plt.show()
  textbox.get_bbox_patch().get_width() # 54.121092459652573
  </code></pre>
  
  <p>My question is: how can I get the width of the surrounding box? or how can I get the size of the padding in the case of a FancyBoxPatch? </p>