Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: ListDensityPlot Legend?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg58662] Re: [mg58653] ListDensityPlot Legend?
  • From: yehuda ben-shimol <bsyehuda at gmail.com>
  • Date: Wed, 13 Jul 2005 03:28:54 -0400 (EDT)
  • References: <200507120921.FAA27249@smc.vnet.net>
  • Reply-to: yehuda ben-shimol <bsyehuda at gmail.com>
  • Sender: owner-wri-mathgroup at wolfram.com

Small correction for the labels of the legend
<< Graphics`Legend`
t = Table[Random[Integer, 2], {5}, {5}];
ShowLegend[ListDensityPlot[t, ColorFunction -> (
      Hue[#/3] &), DisplayFunction -> Identity], {Hue[#/3] &, 3, " 0", "2",
     LegendPosition -> {1.1, -.3}}]
Sorry for the trouble
yehuda


On 7/12/05, juejung <juejung at indiana.edu> wrote:
> 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
> 
>


  • Prev by Date: Re: ListDensityPlot Legend?
  • Next by Date: Re: ListDensityPlot Legend?
  • Previous by thread: Re: ListDensityPlot Legend?
  • Next by thread: Simplify