Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2012

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

Search the Archive

Re: Problem with PlotLegends

  • To: mathgroup at smc.vnet.net
  • Subject: [mg129103] Re: Problem with PlotLegends
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Sat, 15 Dec 2012 05:50:44 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-newout@smc.vnet.net
  • Delivered-to: mathgroup-newsend@smc.vnet.net
  • References: <20121214080058.F0B35692D@smc.vnet.net>

If you're using Mathematica 9, don't load the now-obsolete PlotLegends 
package; the option PlotLegends for DensityPlot, among other types of 
plots, will automatically be available. And your DensityPlot expression 
will correctly evaluate.

On Dec 14, 2012, at 3:00 AM, xebamadeus at gmail.com wrote:

> Hi! I need your help!!. I don't understand why not working PlotLegends 
when I use DensityPlot.
>
> This is my problem:
>
> Needs["PlotLegends`"]
>
> DensityPlot[Sin[x] Sin[y], {x, -4, 4}, {y, -3, 3},
> ColorFunction -> "SunsetColors", PlotLegends -> Automatic]
>
> DensityPlot::optx: Unknown option PlotLegends in DensityPlot[Sin[x] 
Sin[y],{x,-4,4},{y,-3,3},ColorFunction->SunsetColors,PlotLegends->Automatic]. >>
>
> DensityPlot[Sin[x] Sin[y], {x, -4, 4}, {y, -3, 3},
> ColorFunction -> "SunsetColors", PlotLegends -> Automatic]
>
> $Packages
>
> {"PlotLegends`", "ResourceLocator`", "DocumentationSearch`", \
> "GetFEKernelInit`", "JLink`", "PacletManager`", "WebServices`", \
> "System`", "Global`"}
>
> Thank you for you attention!

---
Murray Eisenberg                                    
murray at math.umass.edu
Mathematics & Statistics Dept.      
Lederle Graduate Research Tower            phone 413 549-1020 (H)
University of Massachusetts                               413 545-2838 (W)
710 North Pleasant Street                         fax   413 545-1801
Amherst, MA 01003-9305








  • Prev by Date: ask about the mathematica warning
  • Next by Date: Re: silly question on formatting tables
  • Previous by thread: Re: Problem with PlotLegends
  • Next by thread: Re: Problem with PlotLegends