DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

color indexing

 
Post new topic   Reply to topic    DPlot Forum Index -> C, C++, C#
View previous topic :: View next topic  
Author Message
nilsoberg



Joined: 01 Mar 2005
Posts: 5

PostPosted: Tue Mar 01, 2005 1:14 pm    Post subject: color indexing Reply with quote

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
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue Mar 01, 2005 1:35 pm    Post subject: Reply with quote

[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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nilsoberg



Joined: 01 Mar 2005
Posts: 5

PostPosted: Tue Mar 01, 2005 2:07 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Tue Mar 01, 2005 2:19 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> C, C++, C# All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group