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


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

how to add color legend bar to a ListContourPlot

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

Show all headers | View raw


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

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


Thread

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

csiph-web