title: Matplotlib Pie Chart Mathtext Label/Autopct
body: <p>So I've been fooling around with the pyplot pie() function and it works well and all except for when I try to use mathtext in the wedge labeling (as in the autopct labeling, where I'd like the number, a \pm (+-) sign and some relevant number). Is it possible to do this simply? Would I have to pull out all the wedge objects and manipulate their text (perhaps itself being a series of Text objects) or is there some simpler way? I don't mind some complexity, I'd just really like to be able to do this.</p>
  
  <p>edit: an example would be the first pie chart example in the matplotlib code gallery:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  
  
  # The slices will be ordered and plotted counter-clockwise.
  labels = 'Frogs', 'Hogs', 'Dogs', 'Logs'
  sizes = [15, 30, 45, 10]
  colors = ['yellowgreen', 'gold', 'lightskyblue', 'lightcoral']
  explode = (0, 0.1, 0, 0) # only "explode" the 2nd slice (i.e. 'Hogs')
  
  plt.pie(sizes, explode=explode, labels=labels, colors=colors,
          autopct='%1.1f%%', shadow=True, startangle=90)
  # Set aspect ratio to be equal so that pie is drawn as a circle.
  plt.axis('equal')
  
  plt.show()
  </code></pre>
  
  <p>The idea would be to have the numbers generated by the autopct format keyword ended with a +- and some number.</p>