|
From: BBands <bb...@gm...> - 2015-04-01 20:44:30
|
The ternary operator is your friend.
plot "ColumnData.dat" u 1:($2 < 0 ? NaN : $2)
John
On Wed, Apr 1, 2015 at 12:22 PM, theozh <th...@gm...> wrote:
> Hi John,
>
> it is absolutely clear to me that negative values cannot be displayed in
> log scale. If I wanted them to be displayed I would use the absolute
> value abs(x). That should work for column data:
> plot "ColumnData.dat" u 1:(abs($2))
>
> Actually, I couldn't tell how one could do abs(x) on matrix data???
>
> Nevertheless, I want to *ignore* negative values. And I do not want to
> change all datafiles.
> Why is gnuplot displaying negative values in log scale as maximum value?
>
> Theo.
>
|