I need to plot a sequence of y values against a sequence of x values. The x values varies in a very large range. pyplot seems using a linear x-axis. So the following code gives me a bad figure.
def bad_plot():
x=[1,2,10,100,1000]
y=[5,10,6,7,9]
plt.plot(x,y,'rs')
plt.show()

The first three points (1,5), (2,10), (10,6) are so close. I want the x-axis only have 5 ticks [1,2,10,100,100] and they are uniformly scattered in the x-axis. How can I achieve that? Thanks a lot.
