Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #351

2d plot with varying line color

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!l26g2000yqm.googlegroups.com!not-for-mail
From antia <antia.lamas@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject 2d plot with varying line color
Date Wed, 1 Jun 2011 09:38:21 -0700 (PDT)
Organization http://groups.google.com
Lines 17
Message-ID <eb8fee93-9b6a-4482-8d65-e18e3c014e33@l26g2000yqm.googlegroups.com> (permalink)
NNTP-Posting-Host 132.163.11.141
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
X-Trace posting.google.com 1306946301 15905 127.0.0.1 (1 Jun 2011 16:38:21 GMT)
X-Complaints-To groups-abuse@google.com
NNTP-Posting-Date Wed, 1 Jun 2011 16:38:21 +0000 (UTC)
Complaints-To groups-abuse@google.com
Injection-Info l26g2000yqm.googlegroups.com; posting-host=132.163.11.141; posting-account=dF6xbAoAAAAxO7Ewhadk3pgkjxwxpimt
User-Agent G2/1.0
X-Google-Web-Client true
X-Google-Header-Order HNKRUAELSC
X-HTTP-UserAgent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/534.24 (KHTML, like Gecko) Chrome/11.0.696.57 Safari/534.24,gzip(gfe)
Xref x330-a1.tempe.blueboxinc.net comp.graphics.apps.gnuplot:351

Show key headers only | View raw


Hi all,
I would like to make an ordinary 2D plot of a function where the line
color smoothly changes along a gradient or palette. Is this possible?
I know similar things can be done for 3D plots ...

A minimal code of what I am trying to plot is:

--
trans(x) = erf(x)
plot erf(x) notitle with lines
--

I would like the erf function to be red for low values of x and move
towards blue on high values of x, i.e. I would like a temperature-like
scale.

Thanks for any help!

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

2d plot with varying line color antia <antia.lamas@gmail.com> - 2011-06-01 09:38 -0700
  Re: 2d plot with varying line color sfeam <sfeam@users.sourceforge.net> - 2011-06-01 11:19 -0700

csiph-web