Re: how to add color legend bar to a ListContourPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg124782] Re: how to add color legend bar to a ListContourPlot
- From: Ted Sariyski <tsariysk at craft-tech.com>
- Date: Mon, 6 Feb 2012 02:38:29 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201202010846.DAA15093@smc.vnet.net> <201202030709.CAA11987@smc.vnet.net>
Hi Bob,
I still have difficulties how to make it. The function I use,
imsUnstructuredContourPlotis, is based on ListContourPlot and is a
function from the IMTEK package. imsUnstructuredContourPlot returns a
Graphics and has Options set to:
Options[imsUnstructuredContourPlot]={Contours->10,Mesh->False,ColorFunction->(Hue[(#1
2)/3]&),ColorFunctionScaling->True,ContourShading->True}
I do not feel comfortable to mess up with IMTEK. Given a Graphics object
built with ColorFunction -> Hue[#1]& how can I append a legend?
Thanks in advance,
--Ted
On 02/03/2012 02:09 AM, Bob Hanlon wrote:
> 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}}]
- References:
- Announcement: New Mathematica questions and answers site launched!
- From: Szabolcs HorvÃt <szhorvat@gmail.com>
- Re: how to add color legend bar to a ListContourPlot
- From: Bob Hanlon <hanlonr357@gmail.com>
- Announcement: New Mathematica questions and answers site launched!