title: Matplotlib draw line on image and set axis val
body: <p>Can anyone show me how to create image like that using Python?
  I did draw a line but I dont know how to change x and y value.</p>
  <h5>Input:</h5>
  <p><a href="https://i.stack.imgur.com/a0pmI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a0pmI.png" alt="enter image description here" /></a></p>
  <h5>Output:</h5>
  <p><a href="https://i.stack.imgur.com/Y7iDd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y7iDd.png" alt="enter image description here" /></a></p>
  <pre class="lang-py prettyprint-override"><code>from matplotlib import image
  from matplotlib import pyplot as plt
  
  
  # to read the image stored in the working directory
  data = image.imread('Darwin_Maps.png')
  
  # to draw a line from (200, 300) to (500, 100)
  x = [200, 500]
  y = [300, 100]
  plt.plot(x, y, color=&quot;white&quot;, linewidth=3)
  plt.imshow(data)
  plt.show()
  </code></pre>