|
From: gnu-jeff <gnu...@sp...> - 2007-10-25 19:57:22
|
Doh! I didn't even think of that. Thanks for the explaination. Jeff Thomas Sefzick wrote: > > set logscale y > and zeros as y-values, this cannot work, log(0) is undefined > > > gnu-jeff wrote: >> >> Hi. I'm using gnuplot 4.0 patchlevel 0, and running into a problem. >> >> When running, I get an error message: >> >> gnuplot> plot 'g.csv' using 1:2 title 'Series1' with lines 2, '' using >> 1:3 title 'Series 2' with lines 3 >> ^ >> "g.pcmd", line 12: all points y value undefined! >> >> >> This is because all of the data values happen to be zero for this >> particular graph >> >> My source data is: >> 20071022_133502,0,0 >> 20071022_135003,0,0 >> 20071022_140502,0,0 >> 20071022_142008,0,0 >> >> >> and I'm running gnuplot with: >> set terminal png small >> set timestamp >> set datafile separator "," >> set output 'g.png' >> set ylabel "YY" >> set format y "%.0f" >> set xdata time >> set timefmt "%Y%m%d_%H%M%S" >> set format x "%b %d\n%H:%M" >> set logscale y >> set title "Title" >> plot 'g.csv' using 1:2 title 'Series1' with lines 2, '' using 1:3 title >> 'Series 2' with lines 3 >> >> >> What can be done to allow this to work when all of the data points are >> the same? >> >> If they're all the same value but non-zero, gnuplot only gives a warning; >> Warning: empty y range [1:1], adjusting to [0.99:1.01] >> >> Thanks, >> >> Jeff >> >> >> >> > > -- View this message in context: http://www.nabble.com/Error%3A-%22all-points-y-value-undefined%21%22-tf4692436.html#a13414818 Sent from the Gnuplot - User mailing list archive at Nabble.com. |