title: removing leading 0 from matplotlib tick label formatting
body: <p>How can I change the ticklabels of numeric decimal data (say between 0 and 1) to be "0", ".1", ".2" rather than "0.0", "0.1", "0.2" in matplotlib? For example,</p>
  
  <pre><code>hist(rand(100))
  xticks([0, .2, .4, .6, .8])
  </code></pre>
  
  <p>will format the labels as "0.0", "0.2", etc. I know that this gets rid of the leading "0" from "0.0" and the trailing "0" on "1.0":</p>
  
  <pre><code>from matplotlib.ticker import FormatStrFormatter
  majorFormatter = FormatStrFormatter('%g')
  myaxis.xaxis.set_major_formatter(majorFormatter) 
  </code></pre>
  
  <p>That's a good start, but I also want to get rid of the "0" prefix on "0.2" and "0.4", etc. How can this be done?</p>