Page 1 of 1

color indexing

Posted: Tue Mar 01, 2005 1:14 pm
by nilsoberg
Hi!

Is there any way to manually set the color for an individual curve? I have many curves that are one of two kinds on the same plot, and I need to distinguish them by color. I looked throught the developers reference, but I couldn't see anything. Thought I'd check in case there was any other way to do it.

Thanks!

Nils

Posted: Tue Mar 01, 2005 1:35 pm
by DPlotAdmin
[Color(index,r,g,b)]

though this might not do exactly what you want. This will change the color used by the index'th curve as well as the (index+16)th, (index+32)th, etc.

Eventually I'll get rid of the 16-color limitation and you'll be able to have unique colors for all curves.

Posted: Tue Mar 01, 2005 2:07 pm
by nilsoberg
DPlotAdmin wrote:[Color(index,r,g,b)]

though this might not do exactly what you want. This will change the color used by the index'th curve as well as the (index+16)th, (index+32)th, etc.

Eventually I'll get rid of the 16-color limitation and you'll be able to have unique colors for all curves.
What I actually meant was the 16-color limitation. I know that I can assign colors as you mentioned. What I really need is a way to set curves 1-50 as black, and 51-100 as green or something like that. It sounds like Dplot can't do that yet.

Thanks!

Nils

Posted: Tue Mar 01, 2005 2:19 pm
by DPlotAdmin
You're welcome. The 16-color limitation dates back to 16-color display modes; something that should have been changed long ago. This limit will definitely be removed, and hopefully soon.