title: How to save a manipulated numpy array (annotated image) as an image, using python?
body: <p>I have loaded an image, converted it to an array and annotated it (56.01). Now I want to save it back as an image.
  How can I do that?</p>
  <p>With this code, the image is annotated. But I want to remove the axes and save it as an image.</p>
  <pre><code>from matplotlib import image
  import matplotlib.pyplot as plt
  
  
  ax=plt.gca()
  
  # load image as pixel array
  data = image.imread('yellow.jpg')
  
  ax.annotate('56.05',xy=(1000, 500), xycoords='data')
  
  
  # display the array of pixels as an image
  plt.imshow(data)
  plt.savefig('imagenet1.png', bbox_inches='tight', dpi = 1000)
  plt.show()
  </code></pre>
  <p>ANNOTATED ARRAY</p>
  <p><a href="https://i.stack.imgur.com/t83jA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/t83jA.png" alt="enter image description here" /></a></p>
  <p>I WANT THIS, BUT THE ANNOTATION IS NOT HERE
  <a href="https://i.stack.imgur.com/VCvZr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VCvZr.jpg" alt="enter image description here" /></a></p>