MathGroup Archive 1998

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

Search the Archive

Re: ColorFunction in DensityPlot

  • To: mathgroup at
  • Subject: [mg14101] Re: ColorFunction in DensityPlot
  • From: Selwyn Hollis <shollis at>
  • Date: Fri, 25 Sep 1998 03:15:26 -0400
  • Organization: fair
  • References: <6u87rm$>
  • Sender: owner-wri-mathgroup at

I forgot to mention:
Hue alone doesn't do the job. It always scales to the range of the data.

Also, Hue[2/3(1- # Max[data])]&  seems to work, but is there a better


I previously wrote:

> 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

  • Prev by Date: Compiled programs
  • Next by Date: Bad error messages
  • Previous by thread: Re: ColorFunction in DensityPlot
  • Next by thread: Cut and paste edits misaligned with screen image