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


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

Re: how to add color legend bar to a ListContourPlot

Started byTed Sariyski <tsariysk@craft-tech.com>
First post2012-02-06 07:45 +0000
Last post2012-02-06 07:45 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#8359 — Re: how to add color legend bar to a ListContourPlot

FromTed Sariyski <tsariysk@craft-tech.com>
Date2012-02-06 07:45 +0000
SubjectRe: how to add color legend bar to a ListContourPlot
Message-ID<jgo0f7$a30$1@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}}]

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web