Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #12801 > unrolled thread

Re: Problem with PlotLegends

Started bySebastián Araya <xebamadeus@gmail.com>
First post2012-12-15 10:48 +0000
Last post2012-12-15 10:48 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Problem with PlotLegends Sebastián Araya <xebamadeus@gmail.com> - 2012-12-15 10:48 +0000

#12801 — Re: Problem with PlotLegends

FromSebastián Araya <xebamadeus@gmail.com>
Date2012-12-15 10:48 +0000
SubjectRe: Problem with PlotLegends
Message-ID<kahkhj$d81$1@smc.vnet.net>
Hi!! well, I'm using Mathematica 8 and really I need to create a legend for
especific functions where exist unkonwn range (in the above example of sin
or cos, the max and min range are -1 and 1).

The mathematica tutorials learn that for create legends in densityplot, you
can using PlotLegends where previously Needs["PlotLegends`"] is excecuted.
But it's not working.

I need you help please. Is very important solve it

Thank you for you atention


2012/12/14 Bob Hanlon <hanlonr357@gmail.com>

> Prior to v9 use ShowLegend
>
> $Version
>
> "8.0 for Mac OS X x86 (64-bit) (October 5, 2011)"
>
> Needs["PlotLegends`"]
>
> ShowLegend[
>  DensityPlot[Sin[x] Sin[y], {x, -4, 4}, {y, -3, 3},
>   ColorFunction -> "SunsetColors",
>   ImageSize -> 400],
>  {ColorData["SunsetColors"][1 - #1] &, 32, " 1", "-1",
>   LegendPosition -> {1.1, -0.75},
>   LegendShadow -> None,
>   LegendSize -> {.2, 1.5}}]
>
> In V9 the functionality is built-in
>
> $Version
>
> "9.0 for Mac OS X x86 (64-bit) (November 20, 2012)"
>
> DensityPlot[
>  Sin[x] Sin[y], {x, -4, 4}, {y, -3, 3},
>  ColorFunction -> "SunsetColors",
>  PlotLegends -> Automatic]
>
>
> Bob Hanlon
>
>
> On Fri, Dec 14, 2012 at 3:00 AM,  <xebamadeus@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!
> >
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web