title: How can I save histogram plot in python?
body: <p>I have following code that generates a histogram. How can I save the histogram automatically using the code? I tried what we do for other plot types but that did not work for histogram.a is a 'numpy.ndarray'.</p>
  
  <pre><code>a = [-0.86906864 -0.72122614 -0.18074998 -0.57190212 -0.25689268 -1.
       0.68713553  0.29597819  0.45022949  0.37550592  0.86906864  0.17437203
       0.48704826  0.2235648   0.72122614  0.14387731  0.94194514 ]
  
  fig = pl.hist(a,normed=0)
  pl.title('Mean')
  pl.xlabel("value")
  pl.ylabel("Frequency")
  pl.savefig("abc.png")
  </code></pre>