Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'DensityPlot ColorFunction' topicStudent Support Forum > General > Archives > "DensityPlot ColorFunction"

Next Comment >Help | Reply To Topic
Author Comment/Response
Brett M
05/29/09 3:15pm

Hello. I am having a problem mapping the ColorFunction to DensityPlot correctly. Assume we have a function f[x,y,t]. We can say DensityPlot[f[x,y,sometimeT],{x,-10,10},{y,-10,10},ColorFunction->"TemperatureMap"].

This is easy to do. My problem, however, is when I try to animate the DensityPlot.
Animate[DensityPlot[f[x,y,sometimeT],{x,-10,10},{y,-10,10},ColorFunction->"TemperatureMap"],{t,0,10}]
As time, t, increases, f[x,y,t] is obviously going to change. Each iteration it does in time, t, the ColorFunction will scale it differently. I want to set maximum and minimum bounds of the ColorFunction and "map" this to my data set. Any help?

URL: ,

Subject (listing for 'DensityPlot ColorFunction')
Author Date Posted
DensityPlot ColorFunction Brett M 05/29/09 3:15pm
Re: DensityPlot ColorFunction Ash 03/01/11 3:00pm
Next Comment >Help | Reply To Topic