       Re: Expressing values in the legend in terms of original data

• To: mathgroup at smc.vnet.net
• Subject: [mg92514] Re: Expressing values in the legend in terms of original data
• From: er <erwann.rogard at gmail.com>
• Date: Thu, 2 Oct 2008 04:36:25 -0400 (EDT)
• References: <gbvlva\$bdf\$1@smc.vnet.net> <gc0tm2\$9ef\$1@smc.vnet.net>

```On Oct 1, 6:30 pm, Jens-Peer Kuska <ku... at informatik.uni-leipzig.de>
wrote:
> Hi,
>
> the legend here is complete right, try
> Plot3D[2 Sin[x y], {x, -\[Pi]/2, \[Pi]/2}, {y, -\[Pi]/2, \[Pi]/2}]
>
> and so, simply remove the 2
>
> Plot3D[Sin[x y], {x, -\[Pi]/2, \[Pi]/2}, {y, -\[Pi]/2, \[Pi]/2}]
>
> and the problem is fixed.
>
> Regards
>    Jens
>
> er wrote:
> > Hi,
>
> > Considering
>
> > contourPlotFun=
> >     ContourPlot[2 Sin[x y],{x,-\[Pi]/2,\[Pi]/2},{y,-\[Pi]/2,\[Pi]/2=
},
> >       DisplayFunction\[Rule]Identity];
>
> > ShowLegend[
> >     contourPlotFun,{GrayLevel[1-#]&,10," 1","-1",
> >       LegendPosition\[Rule]{1.1,-.4}}];
>
> > The legend here is misleading, because the min and max values are -2
> > and 2, respectively, not -1 and 1. So how can I modify the input to
> > ShowLegend to reflect that?
>
> > Thanks!

Thanks, but perhaps I did not make myself clear. I chose 2 Sin[x y]
precisely because the range is [-2,2]. I'm not trying to fit the data
to the legend, but rather the legend to the data.

```

• Prev by Date: Re: Font size in plot coordinates?
• Next by Date: Re: Comparison between Mathematica and other symbolic systems
• Previous by thread: Re: Expressing values in the legend in terms of original data
• Next by thread: Re: Expressing values in the legend in terms of original data