comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » cgcontour colours for 2 panel plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: cgcontour colours for 2 panel plot [message #84822 is a reply to message #84810] Wed, 12 June 2013 06:04 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
ej writes:

> I want to plot a 2 panel figure of a density field with cgcontour. I would like to display just one colour bar. Is there a good way to make sure that the colours in each panel correspond to the same density? At the moment I use "clip" to adjust the colour range used by the second contour plot so that the colours in each panel correspond to the same density but I was hoping there is a better way.

Yeah, I can understand why you might be looking for a better way, since
I can't imagine how your method can possibly work. :-)

To get two contour plots to use the same colors for their fill values,
you simple use the same LEVELS and C_COLOR values for both. Simple as
that, really. You probably also have to take care to set the minimum
level to the minimum of the two data sets.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Polyfill overlap issue
Next Topic: dialog_pickfile - multiple directories

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:02:54 PDT 2025

Total time taken to generate the page: 0.00454 seconds