From: Ajay G. <aja...@gm...> - 2007-10-01 11:05:05
|
Hi All. 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: [211 16:22:15] python plotseries.py Traceback (most recent call last): File "plotseries.py", line 212, in ? myPlot = Gnuplot.Data(arange(maxDays), myDataPoints, title='my series data', with="linespoints") File "/usr/lib/python2.4/site-packages/Gnuplot/PlotItems.py", line 526, in Data set = utils.float_array(set) File "/usr/lib/python2.4/site-packages/Gnuplot/utils.py", line 38, in float_array return Numeric.asarray(m, Numeric.float32) File "/usr/lib64/python2.4/site-packages/numpy/oldnumeric/functions.py", line 87, in asarray return mu.array(a, dtype, copy=0) ValueError: setting an array element with a sequence. Thanks in anticipation, Ajay |