Page 1 of 1

controlling color gradient of surface plot

Posted: Wed Dec 23, 2009 5:28 pm
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

Posted: Wed Dec 23, 2009 6:59 pm
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.