title: Adjusting the distance between x axis and y axis intervals simultaneously
body: <p>I'm trying to to draw a plot with Matplotlib, but I have a problem in adjusting the distance between two axes intervals simultaneously. I have written a very simple code like the one <a href="https://stackoverflow.com/questions/12608788/changing-the-tick-frequency-on-x-or-y-axis-in-matplotlib">by ubuntu</a>:</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  x = [0,5,9,10,15]
  y = [0,1,2,3,4]
  plt.plot(x,y)
  plt.xticks(np.arange(min(x), max(x)+1, 1.0))
  plt.yticks(np.arange(min(y), max(y)+1, 1.0))
  plt.show()
  </code></pre>
  
  <p>I got this <a href="http://uupload.ir/files/vlnv_1.bmp" rel="nofollow noreferrer">plot</a>. I am wondering if there is a way to program the distance between intervals in y and x axes simultaneously. I need to adjust the distance between xticks and yticks simultaneously according their interval distance not the axis alone. Here I need to change the first plot to a new plot like this <a href="http://uupload.ir/files/jwg4_2.bmp" rel="nofollow noreferrer">one</a>. Although in the first plot the distance between xticks and yticks are both 1.0, but we can see that the distance is longer in y axis but shorter in x axis. I need y and x axis distances to be like each other. For example, if the intervals between xticks is 1.0 and yticks is 2.0, the interval between yticks gets twice distance comparing to xticks. Is there anyone having a solution for this problem?</p>