Re: Set color of points in PGN term?



In article <25f77c73-d584-4e4b-a143-c6cda794c908@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
jhc0033@xxxxxxxxx <jhc0033@xxxxxxxxx> wrote:

If it is on a pre-defined scale, then it is even easier than the
general case. Set your color mapping

What do you mean by "set color mapping" and which commands in the demo
did that? Does specifying the color box do that implicitly? The
problem with using demos instead of documentation is that it's like
listening to strangers speaking Chinese - try to learn the language
from that, e.g. what does "(1)" mean? I can't look up "(" in the
help. /rant

I assume you've already refered to the documentation, which is quite
extensive. It is not reasonable to expect anyone to dump man pages
or documentation sections for you to read on the newsgroup.
I point to the demos because they give concrete examples
over and above what is in the documentation. This is particularly
true for example of color use, since the docs are not in color :-)

I suggest you start with the following sections of the documentation:

help set palette
help colorspec


All the demos mentioned use splot.
splot "my.data" lt palette
does work, but I just want a 2D plot. However, when I do
plot "my.data" lt palette
I get an error saying 2D plots can not color by Z value (huh?)

Gnuplot considers any plot with x, y, and z coordinates to be 3D,
even if you are viewing only a 2D slice or projection. So use

set view map
splot "my.data' lt palette

And yes, you can use color info in 2D plots also.
The very first demo I pointed to does exactly that:
http://gnuplot.sourceforge.net/demo_4.3/rgb_variable.html
But in this case the colors are not being generated via a
z-coordinate mapped palette.
--
Ethan A Merritt
.



Relevant Pages

  • Re: cgm filledcurve output problems
    ... Both custom colors and filled curves are working. ... using explicit rgb values, named colors, or color values ... that refer to the current PM3D palette. ... plot sinlt rgb "violet" # one of gnuplot's named colors ...
    (comp.graphics.apps.gnuplot)
  • Re: cgm filledcurve output problems
    ... Both custom colors and filled curves are working. ... using explicit rgb values, named colors, or color values ... that refer to the current PM3D palette. ... plot sinlt rgb "violet" # one of gnuplot's named colors ...
    (comp.graphics.apps.gnuplot)
  • Re: Point color as a function of additional data
    ... but with the rgb color as a function of a single number. ... See second plot in "rainbow.dem", which uses the HSV palette mapping ... particle hydrodynamics simulation, where each particle has x,y,z ...
    (comp.graphics.apps.gnuplot)
  • Re: Mesh with different color at x=0 and y=0
    ... plot 'foo' using 1:2:3:) with lines lc palette ... I didn't understand the meaning of all commands, ...
    (comp.graphics.apps.gnuplot)
  • Re: Can 5.2 Mathematica book be installed in 6?
    ... Even without updates it would be nice, ... documentation, it is just not arranged nicely into sections. ... someone has posted to MathGroup a palette with ... search the MathGroup archives for it. ...
    (sci.math.symbolic)