Expressing values in the legend in terms of original data

*To*: mathgroup at smc.vnet.net*Subject*: [mg92476] Expressing values in the legend in terms of original data*From*: er <erwann.rogard at gmail.com>*Date*: Wed, 1 Oct 2008 18:31:15 -0400 (EDT)

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!