views:

43

answers:

1
+1  A: 

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