MathGroup Archive 1998

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

Search the Archive

Re: ColorFunction in DensityPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14101] Re: ColorFunction in DensityPlot
  • From: Selwyn Hollis <shollis at peachnet.campus.mci.net>
  • Date: Fri, 25 Sep 1998 03:15:26 -0400
  • Organization: fair
  • References: <6u87rm$4p3@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

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
way?

sh

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
<http://www.math.armstrong.edu/faculty/hollis/>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



  • 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