color indexing

Q&A for C, C++, and/or C# developers using DPlot

Moderator: DPlotAdmin

Post Reply
nilsoberg
Posts: 5
Joined: Tue Mar 01, 2005 1:06 pm

color indexing

Post 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
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
nilsoberg
Posts: 5
Joined: Tue Mar 01, 2005 1:06 pm

Post 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
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
Post Reply