我在Mathematica的罐头里有一个温度的ListDensityPlot。我正在为其随时间的发展设置动画,但ColorFunction始终将当前步骤的最高温度设置为与红色相对应。我希望我的总体最高温度对应于红色,我该怎么做(我假设它与ColorFunctionScaling有关)?
这是我的代码
Animate[ListDensityPlot[Dev[[m, All, All]],
ColorFunction -> (ColorData["TemperatureMap"])], {m, 1, t, 1},
AnimationRunning -> False]发布于 2011-10-17 23:05:35
设置ColorFunctionScaling -> False并手动缩放颜色函数,使用如下所示
ColorFunction -> (ColorData["TemperatureMap"][Rescale[#, {min, max}, {0,1}]&)其中min和max是总的最小值和最大值(可能是Through[{Min,Max}[Dev]]。)
https://stackoverflow.com/questions/7795342
复制相似问题