controlling color gradient of surface plot

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

Moderator: DPlotAdmin

Post Reply
thorthebrave
Posts: 9
Joined: Mon Nov 09, 2009 5:47 pm

controlling color gradient of surface plot

Post by thorthebrave »

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

Post by DPlotAdmin »

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
Post Reply