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 

controlling color gradient of surface plot

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



Joined: 09 Nov 2009
Posts: 9

PostPosted: Wed Dec 23, 2009 5:28 pm    Post subject: controlling color gradient of surface plot Reply with quote

how do you lock the color use in a surface plot. I found the ContourCustomColors and CustomLevels. Are these what you use for that.
Do you have some examples of these being used.

The problem I am having is when making movies, I need the scale to stay constant for each plot, such that you get a nice smooth change in each time step. I tried with ManualScale(xlo,ylo,xhi,yhi,zlo,zhi), but that does not keep the color gradient bar constant.

Merry xmas
god jul -(norwegian)

Tom
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


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

PostPosted: Wed Dec 23, 2009 6:59 pm    Post subject: Reply with quote

ContourCustomColors and either ContourCustomLevels with [ContourColorScheme(2)] or ContourLevels is certainly one way to do it, but custom levels/colors should not be necessary if you know beforehand what the maximum and minimum Z values will be. If you do, just use ContourLevels with the same parameters for each plot.

If you do not know the max/min Z values before creating your plots... well, you're pretty much at DPlot's mercy for determining the contour intervals, and I really don't see any other way to handle this.

And, thanks much. Merry Christmas to you, as well.
_________________
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