|
From: Dave H. <da...@ho...> - 2014-11-11 18:20:42
|
On Mon, 10 Nov 2014, Dave Horsfall wrote:
> So, is there an elegant way to redefine "0" as "0.1", or do I have to
> pollute the "plot" command?
I found a method that satisfies my requirement for elegance, so for the
benefit of the archives:
#
# Gnuplot doesn't have max()?
#
max(x, y) = (x > y) ? x : y
[...]
plot datafile using 1:(max($7, 0.1)) lt rgb "dark-pink" title 'Spam'
I should make "0.1" a variable such as "epsilon" or something.
--
Dave Horsfall DTM (VK2KFU) "Bliss is a MacBook with a FreeBSD server."
http://www.horsfall.org/spam.html (and check the home page whilst you're there)
|