Re: ListDensityPlot Legend?
- To: mathgroup at smc.vnet.net
- Subject: [mg58665] Re: [mg58653] ListDensityPlot Legend?
- From: "Jose Luis Gomez" <jose.luis.gomez at itesm.mx>
- Date: Wed, 13 Jul 2005 03:28:56 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Juergen:
I hope this is useful for you:
datos=Table[Sin[ i * j], {i,0,3,.1},{j,0,3,.1}];
<<Graphics`Legend`;
ShowLegend[
ListDensityPlot[datos,
DisplayFunction->Identity],{GrayLevel[1-#]&,10," 1","-1",
LegendPosition->{1.1,-.4}}]
Jose Luis
http://homepage.cem.itesm.mx/lgomez/
-----Mensaje original-----
De: juejung [mailto:juejung at indiana.edu]
Enviado el: Martes, 12 de Julio de 2005 04:22 a.m.
Para: mathgroup at smc.vnet.net
Asunto: [mg58653] ListDensityPlot Legend?
dear mathgroup,
how does one add a legend to a ListDensityPlot.
i've a matrix that contains only 0,1 or 2 entries. ListDensityPlot plots
the regions in three different colors. i would like to add a legend that
indicates the colors and their corresponding numbers (0,1, or 2).
Tom Wickham-Jones' ExtendGraphics package is doing almost what i want for
ListContourPlot, however, for ListDensityPlot it's not working.
Any ideas?
thanks
juergen