MathGroup Archive 2000

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

Search the Archive

Re: (List)DensityPlot and coloring...

  • To: mathgroup at smc.vnet.net
  • Subject: [mg25817] Re: [mg25779] (List)DensityPlot and coloring...
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Sat, 28 Oct 2000 01:41:09 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Use ColorFunction. I give you two examples just to illustrate what 
happens. Tom Wickham-Jones's book Mathematica Graphics is a splendid 
reference.

In[1]:=


     ListDensityPlot[
        Table[x y, {x, 0, 2 [Pi, Pi/8}, {y, 0,
            2  Pi, Pi/8}], ColorFunction -> Hue];


In[2]:=
     ListDensityPlot[
        Table[x y, {x, 0, 2  Pi, Pi/8}, {y, 0,
            2  Pi, Pi/8}],
    ColorFunction -> (If[# < 0.5, RGBColor[0, 2#, 0],
            RGBColor[2 (# - 0.5), 0, 0]] &)];

Tomas Garza
Mexico City


  Fabio Cavaliere wrote: 
> Hi. I have to use Mathematica to import a array of 3D data and plot 
them
> with ListDensityPlot. I see it defaults with a linear grayscale, but 
I'd
> like to have different coloring scheme (e.g. blue is the lowest value, 
red
> is the highest). How could I do it ? Thank you in advance,


  • Prev by Date: Linear system (symbolic, 10 vars): cannot handle
  • Next by Date: Re: better copied graphics
  • Previous by thread: Re: (List)DensityPlot and coloring...
  • Next by thread: A simple problem