Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: John Edwards Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Varying colour of a line plot, using a palette Date: Fri, 11 Nov 2016 10:23:12 +0000 Lines: 24 Message-ID: References: Reply-To: johned0@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net edTkONKFzbYakkUStOwoeAmHNQRwtrAuFxmw/FqIcd7S7rFhcL Cancel-Lock: sha1:ulmK/nrcdmSfpiZ4cTW9sNZQNv4= User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 In-Reply-To: Xref: csiph.com comp.graphics.apps.gnuplot:3445 On 10/11/2016 17:32, Karl Ratzsch wrote: > Am 10.11.2016 um 12:03 schrieb John Edwards: >> Dear all, >> I was wondering if anyone can think of a neat trick to vary the >> color of a line according to magnitude. E.g. If I plot sin(x) I'd >> like the color to vary with signal matnitude. >> >> To explain further what I am trying to do, I'd like to use a palette >> of greens and reds so that when the signal goes over a threshold >> then the plot would vary (slowly) from green to red to highlight >> specific issues. > > please answer in the newsgroup, not via email > Hi Karl, Thanks very much, for the very quick and useful response. Also apologies for the reply via email - user error on my part. It has made me wonder if I can tweak your technique to implement a "set palette rgb" type of function as used in splot etc. All the best, John