Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

Re: (List)DensityPlot and coloring...

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

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


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

        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 
> with ListDensityPlot. I see it defaults with a linear grayscale, but 
> like to have different coloring scheme (e.g. blue is the lowest value, 
> 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