|
From: Lehmann, E. {TR-I~Penzberg} <eck...@Ro...> - 2004-11-12 13:55:35
|
That works as well - thank you. After a bit of playing I figured out as
well, that I can set the color palette by plscmap0 in the following way:
.f cmd n #col1 #col2 #col3 ...
where n is the number of colors. That is different from the C API
documentation too, but I believe I remember the Tcl interface docu of
Plplot saying something about this...
Eckhard ;)
> -----Original Message-----
> From: Arj...@wl... [mailto:Arj...@wl...]=20
> Sent: Friday, November 12, 2004 9:00 AM
> To: Lehmann, Eckhard {TR-I~Penzberg}
> Cc: Plplot-general mailing list
> Subject: Re: [Plplot-general] RE: Colors (was: no subject)
>=20
>=20
> "Lehmann, Eckhard {TR-I~Penzberg}" wrote:
> >=20
> > > This is documented in
> > >
> >=20
> http://plplot.sourceforge.net/docbook-manual/plplot->
html-5.3.1/color.h
> > tm
> > l .
> >=20
> > I've read this documentation already and tried to set up the colors=20
> > according to this:
> >=20
> > tclsh> package require Plplotter
> > tclsh> plframe .f
> > tclsh> .f cmd plscol0 0 255 255 255 ;# set color at index 0 to white
> > Couldn't parse color 255
> > tclsh> .f cmd plscol0 0 {255 255 255} ;# try the same with list
> > arguments
> > Couldn't parse color 255 255 255
> >=20
> > But - Now I found out that one should set the colors by their Tcl=20
> > names, as in
> >=20
> > tclsh> .f cmd plscol0 0 white
> > ...
> >=20
> > This doesn't come out of the documentation, however - and that=20
> > confused me.
> >=20
> > Thanks for pointing me to try this out again -
> >=20
> > Eckhard ;)
> >=20
>=20
> Hm, have you tried:
>=20
> .f cmd plscol0 #f0f000
>=20
> (the kind of colour codes one normally uses in Tcl, when not=20
> using names)?
>=20
> Regards,
>=20
> Arjen
>=20
>=20
|