MathGroup Archive 2012

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

Search the Archive

Re: how to add color legend bar to a ListContourPlot


Needs["PlotLegends`"]

xyDat = Table[Sin[i + j^2],
   {i, 0, 3, 0.1}, {j, 0, 3, 0.1}];

ShowLegend[ListContourPlot[xyDat],
 {ColorData["LakeColors"][1 - #1] &, 10, "1", "-1",
  LegendPosition -> {1.1, -.4}}]


Bob Hanlon


On Thu, Feb 2, 2012 at 4:58 AM, Ted Sariyski <tsariysk at craft-tech.com> wrote:
> Hi,
> I want to add a color legend to a ListContourPlot. I tried ShowLegend e.g.
>
> ShowLegend[ ListContourPlot[xyDat, {ColorData["LakeColors"][#1] &, 10, "
> 1", "-1"]
>
> but I don't know how to make the ColorFunction of ListContourPlot
> consistent with ColorData of ShowLegend.  Or may be there is a different
> way of doing this?
>
> Any help will be greatly appreciated.
> Thanks,
> --Ted
>



  • Prev by Date: Derivative of experimental data
  • Next by Date: Funny Behavior of Module
  • Previous by thread: how to add color legend bar to a ListContourPlot
  • Next by thread: Re: how to add color legend bar to a ListContourPlot