MathGroup Archive 2005

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

Search the Archive

Re: ListDensityPlot Legend?

  • To: mathgroup at
  • Subject: [mg58665] Re: [mg58653] ListDensityPlot Legend?
  • From: "Jose Luis Gomez" <jose.luis.gomez at>
  • Date: Wed, 13 Jul 2005 03:28:56 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

I hope this is useful for you:

datos=Table[Sin[ i * j], {i,0,3,.1},{j,0,3,.1}];
    DisplayFunction->Identity],{GrayLevel[1-#]&,10," 1","-1",

Jose Luis
-----Mensaje original-----
De: juejung [mailto:juejung at] 
Enviado el: Martes, 12 de Julio de 2005 04:22 a.m.
Para: mathgroup at
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?


  • Prev by Date: Re: ListDensityPlot Legend?
  • Next by Date: Re: //N bug, but WHY?
  • Previous by thread: Re: ListDensityPlot Legend?
  • Next by thread: Re: ListDensityPlot Legend?