Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: ColorFunction Range (Mathematica v7)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99976] Re: [mg99920] ColorFunction Range (Mathematica v7)
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Wed, 20 May 2009 05:03:38 -0400 (EDT)
  • Reply-to: hanlonr at cox.net

Names["ColorFunction*"]

{ColorFunction,ColorFunctionScaling}

?ColorFunctionScaling

ColorFunctionScaling is an option for graphics functions which specifies whether arguments supplied to a color function should be scaled to lie between 0 and 1. =C2 >>

Options[DensityPlot, ColorFunctionScaling]

{ColorFunctionScaling->True}

DensityPlot[Sin[x] Sin[y],
 {x, -4, 4}, {y, -3, 3},
 ColorFunction -> "TemperatureMap"]

DensityPlot[6 Sin[x] Sin[y] + 3,
 {x, -4, 4}, {y, -3, 3},
 ColorFunction -> "TemperatureMap"]

DensityPlot[6 Sin[x] Sin[y] + 3,
 {x, -4, 4}, {y, -3, 3},
 ColorFunction -> "TemperatureMap",
 ColorFunctionScaling -> False]


Bob Hanlon

---- Constantinos <physicist_gr at yahoo.gr> wrote:

=============
Hi All,

Does anyone know how I can change the "Range" value of a preset
ColorFunction (e.g. "TemperatureMap") in DensityPlot?

I am facing the following problem:

Let's say that the min and max values of your plotting function (not the
color one) are fmin and fmax, respectively. Let's also assume that you set
PlotRange->{pmin,pmax}.
If pmax is lower than fmax then the highest valued color (Red) corresponds
to pmax but if pmax is higher than fmax the highest valued color (Red)
corresponds to fmax. Note that we have similar situation for the minimum
values fmin and pmin.

How can I assign the highest (lowest) valued color of a preser ColorFunction
to the desired value whatever it is.


Thanks in advance.

Constantinos




  • Prev by Date: Re: ColorFunction Range (Mathematica v7)
  • Next by Date: Re: Filenames with ToString
  • Previous by thread: Re: ColorFunction Range (Mathematica v7)
  • Next by thread: Iterative solution difficulty