Re: Legend with ListDensityPlot
- To: mathgroup at smc.vnet.net
 - Subject: [mg85878] Re: Legend with ListDensityPlot
 - From: markus.roellig at googlemail.com
 - Date: Tue, 26 Feb 2008 07:48:45 -0500 (EST)
 - References: <fpucqo$ma9$1@smc.vnet.net>
 
Hi Olalla,
David Park gave one example solution recently (I just changed
ListPlot3D with ListDensityPlot)
data = Table[Exp[-(x^2 + y^2)], {x, -3, 3, 0.1}, {y, -3, 3, 0.1}];
Row[{ListDensityPlot[data, PlotRange -> All, Axes -> False,
   ColorFunction -> "TemperatureMap", Mesh -> False,
   ImageSize -> 350],
  ContourPlot[y, {x, 0, .1}, {y, 0, 1},
   ColorFunction -> "TemperatureMap", AspectRatio -> Automatic,
   PlotRange -> {{0, 0.1}, {0, 1}}, PlotRangePadding -> 0,
   FrameTicks -> {{Automatic, None}, {None, None}}, ImageSize -> 35]},
  Spacer[5]]
There has been a number of posts on this list concerning this topic.
Search for the
topic
Equivalent functionality to colorbar in Mathematica?
Cheers
Markus
>On 25 Feb., 13:37, olalla <operez... at ikasle.ehu.es> wrote:
> Hi everybody,
>
> I have a very large list of data representing the value of a scalar
> field at the point (x0,y0). I represent these data with
> ListDensityPlot and I would like to show a legend with the scale of
> colours and the values.
> How can I do this?
>
> Thanks in advance
>
> Olalla P=E9rez
> Bilbao, UPV/EHU