MathGroup Archive 2012

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

Search the Archive

Re: Defining a value-specific ColorFunction for use in ListDensityPlot

  • To: mathgroup at smc.vnet.net
  • Subject: [mg125825] Re: Defining a value-specific ColorFunction for use in ListDensityPlot
  • From: Bill Rowe <readnews at sbcglobal.net>
  • Date: Wed, 4 Apr 2012 04:29:57 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com

On 4/3/12 at 4:46 AM, adeyoung at andrew.cmu.edu (Andrew DeYoung) wrote:

>I would like to create a ListDensityPlot in which the color is
>"deep" blue for function values of -10 and "deep" red for function
>values of +10, and varies linearly for function values in between
>-10 and +10. (I'm plotting the electric potential on a surface of
>points (x,y); the voltage ranges from -10 V to +10 V.)  Is there a
>way that I can create such a ColorFunction for use in several
>ListDensityPlot plots?

Yes, use Blend to create your ColorFunction. Look up Blend in
the documentation center




  • Prev by Date: Re: Find common elements in a list of sublists
  • Next by Date: Re: Find common elements in a list of sublists
  • Previous by thread: Re: Defining a value-specific ColorFunction for use in ListDensityPlot
  • Next by thread: Mathematica loop