On 11 January 2012 15:13, Petro <x.pi...@gmail.com> wrote: > I want to make a plot with two xticks. Lets say at -3051 and 2011 > position. How can I do it?
One way to do it: import numpy as np import matplotlib.pyplot as plt x = np.linspace(-3100, 2025, num=50) y = np.random.random(50) plt.plot(x, y) plt.xticks([-3051, 2011]) plt.show() Cheers, Scott ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users