Make a list of the X values,
x = [5,6,7,8,9]
and use
ax.plot(x, data2, ...)
Note that you could also use range(5,10)
or numpy's arange(5,10)
or linspace(5,9,5)
to generate the X values.
David Zaslavsky
2010-07-10 04:09:19