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


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

2d plot with varying line color

From antia <antia.lamas@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject 2d plot with varying line color
Date 2011-06-01 09:38 -0700
Organization http://groups.google.com
Message-ID <eb8fee93-9b6a-4482-8d65-e18e3c014e33@l26g2000yqm.googlegroups.com> (permalink)

Show all headers | 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