Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #8359

Re: how to add color legend bar to a ListContourPlot

From Ted Sariyski <tsariysk@craft-tech.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: how to add color legend bar to a ListContourPlot
Date 2012-02-06 07:45 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jgo0f7$a30$1@smc.vnet.net> (permalink)
References <201202010846.DAA15093@smc.vnet.net> <201202030709.CAA11987@smc.vnet.net>

Show all headers | View raw


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}}]

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: how to add color legend bar to a ListContourPlot Ted Sariyski <tsariysk@craft-tech.com> - 2012-02-06 07:45 +0000

csiph-web