Re: Expressing values in the legend in terms of original data
- To: mathgroup at smc.vnet.net
- Subject: [mg92472] Re: Expressing values in the legend in terms of original data
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Wed, 1 Oct 2008 18:30:31 -0400 (EDT)
- Organization: Uni Leipzig
- References: <gbvlva$bdf$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
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! >