MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

ColorFunction in DensityPlot


Let's say we're solving the heat equation on [0,1]x[0,1] numerically
with an initial temperature distribution with values in [0,1], and
we're displaying the solution with ListDensityPlot as it evolves over
time. How can one specify the ColorFunction option in ListDensityPlot
so that a temperature of 1 _always_ shows as red and a temperature of 0
always shows as blue (with green, yellow, orange in between)? In other
words, I need a fixed mapping between function values and color.

Thanks!

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
Dr. Selwyn Hollis
Associate Professor of Mathematics
Armstrong Atlantic State University
Savannah, GA 31419 USA
<http://www.math.armstrong.edu/faculty/hollis/>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



  • Prev by Date: Limit glitch
  • Next by Date: Cut and paste edits misaligned with screen image
  • Previous by thread: Re: Limit glitch
  • Next by thread: Re: ColorFunction in DensityPlot