From: Michael H. <mh...@al...> - 2007-10-01 13:24:51
|
Ajay Gupta wrote: > I want to plot a series where some of the data points are missing. I > have come to know that gnuplot support 'set datafile missing' command > using which you can specify a missing y value with any character like > '?', or '-' in the datafile input. > > How do i do this when using gnuplot.py? If I set one of the elements of > the input array to '?', it gives the following error: There is no support in Gnuplot.py for missing data, but you can easily define your own PlotItem that knows about missing values. It might make sense to use numpy's masked arrays for this purpose. Or you can just write the values to a file (with question marks where appropriate) and plot it from there. Michael |