|
From: Thomas S. <t.s...@fz...> - 2009-09-29 12:59:58
|
there are several ways:
a) ternary operator in 'using' option:
plot "datafile" using 0:($1>0?$1:0/0) with linespoints
b) specifying "0" as missing character:
set datafile missing "0"
plot "datafile" with linespoints
c) filtering outside of gnuplot:
plot "< awk '{if ($1 > 0) print $0}' datafile" with linespoints
BUT this will change the numbering of your points
febty wrote:
>
> Hi everyone,
>
> I am working with gnuplot now. I have some data like below:
>
> 1
> 2
> 3
> 4
> 0
> 0
> 0
> 0
> 6
> 7
> 8
>
> I want to plot the data without 0 value(from line 5 to line 8). Are there
> some tricks to plot it? I used the trick on
> http://t16web.lanl.gov/Kawano/gnuplot/datafile3-e.html#7.7, but for my
> case it didn't work.
>
> Any helps is appreciated.
>
>
> best regards,
> febty
>
--
View this message in context: http://www.nabble.com/plotting-wthout-certain-value-tp25658828p25662613.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|