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 

Ability to Choose color of each series in 3D plots

 
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions
View previous topic :: View next topic  
Author Message
Ashi



Joined: 30 Dec 2007
Posts: 28

PostPosted: Wed Aug 18, 2010 11:22 am    Post subject: Ability to Choose color of each series in 3D plots Reply with quote

I am using the 3D plot feature of DPlot to graph the change of a spectrum with time. Very similar to the following image:

http://sicyon.com/spectrino/screenshots/plot1.gif

However, what I am -actually- doing is comparing 2 sets of spectra across time. So I would like to make one set red, and one set blue (for example).

Unfortunately, I cannot find a way to edit the colors of individual data series directly!

Fortunately, found that just using the rainbow option with grayscale will probably be good enough for my meeting with my Boss's Boss on Monday...

http://farm5.static.flickr.com/4099/4904963482_512321e24c_b.jpg

But, I would really like it if we can change the colors of the individual series by hand! And I hope that we'll get that capability before I have to submit this for publication, otherwise I will have to figure out how to do this in origin : P
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


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

PostPosted: Wed Aug 18, 2010 4:34 pm    Post subject: Reply with quote

Looking at your second example... umm... how did you do that? Smile Is that the product of copy/pasting into a paint program? Otherwise I'm at a loss.
_________________
Visualize Your Data
support@dplot.com


Last edited by DPlotAdmin on Thu Aug 19, 2010 11:28 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ashi



Joined: 30 Dec 2007
Posts: 28

PostPosted: Thu Aug 19, 2010 1:41 am    Post subject: Reply with quote

I will tell you how I did it, but only if you agree to add the feature Smile

I am just kidding, the way I did it was like this, I made an excel file with the following format:

Z1 X1 Y1 Z2 X2 Y2
1 ..... ..... 2 ..... .....
1 ..... ..... 2 ..... .....
1 ..... ..... 2 ..... .....
1 ..... ..... 2 ..... .....


So x was "time" and z was "intensity"
Then I made it into an xyz scatter plot in dplot. From there I made the plot style the smallest symbols, with connecting lines. In order to get 2 spectra on the same Z, after the first series was done, I started with Z=1 again. So I had 14 series in that image, two sets of 7. If it is stlll not clear, just reply and I will email you the excel and dplot files.

Btw, a swap Z and X (or Y) would be useful too, it was strange having to put Z first.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


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

PostPosted: Thu Aug 19, 2010 11:24 am    Post subject: Reply with quote

Ah! Fooled me Smile

OK, on the Scatter Plot Options dialog under "Color Based on" select "Data set". Under Colors select Custom, then click the adjacent >> button. Set the number of colors to 2. The "low" color will be used for the first data set; the "high" color will be used for the second data set.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ashi



Joined: 30 Dec 2007
Posts: 28

PostPosted: Thu Aug 19, 2010 11:29 am    Post subject: Reply with quote

Oh you are right! I did not think of just making them into two series instead of 14. However, in the future you should still give us the ability to assign the colors manually for multiple series!

[In the mean time, this will still look good for my meeting once I change it]
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


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

PostPosted: Thu Aug 19, 2010 11:50 am    Post subject: Reply with quote

Quote:
Oh you are right! I did not think of just making them into two series instead of 14.


OK, I didn't understand that part, and that explains how you avoided a connecting line between each column. But 2 or 14, it doesn't matter. If you have 14 data sets, set the number of colors to 14.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ashi



Joined: 30 Dec 2007
Posts: 28

PostPosted: Thu Aug 19, 2010 1:46 pm    Post subject: Reply with quote

OH! I finally see what you mean!

Separate issue: When the color scheme is based on z values, the connecting lines are always black (unless there is an option I don't see).

Among other things, this means that printing in grayscale can look terrible unless you remove the lines (and of course, sometimes you want to keep the lines). I can see how this could be a problem since you might have to change a line color mid-line -- but even making the line the color of the previous point would be useful in some cases.
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


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

PostPosted: Thu Aug 19, 2010 2:01 pm    Post subject: Reply with quote

That's a good point; I just never envisioned scatter plots being used this way. I'll add an option to set the line color to the color of the "from" symbol.
_________________
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 -> Suggestions/Questions 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