MathGroup Archive 2008

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

Search the Archive

Expressing values in the legend in terms of original data


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!



  • Prev by Date: Variable question
  • Next by Date: Re: Avoiding Null output marker from a function
  • Previous by thread: Re: Variable question
  • Next by thread: Re: Expressing values in the legend in terms of original data