[SciPy-User] pylab

பழநி சே palaniappan.chetty@gmail....
Mon Jul 19 18:04:33 CDT 2010


hi,
I have a question about pylab/matplotlib, I am interested in plots and
I want to know if I can have some data points in a data sets missing
but still create a plot using pylab? For example (assuming all modules
have been imported)

>x = [1,2,3,4]
>y=[10,20,30,40]
>pylab.plot(x,y)
>pylab.show()

works fine. But what if I have one or more data points missing in my y
data set? like this

>x = [1,2,3,4]
>y=[10,20, ,40]
>pylab.plot(x,y)
>pylab.show()
I know that I cannot have an empty element in my list and this does not work

Thanks
--
Palani


More information about the SciPy-User mailing list