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

Home » Public Forums » archive » colorbar to display the 0 in the middle
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: colorbar to display the 0 in the middle [message #81506 is a reply to message #47399] Sun, 30 September 2012 16:47 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
larsonej writes:

> I have a very simple question that I am having trouble finding an answer to. It is related to this post however. I have a contour map with defined contours in log scale. that go from -4 to 4. I want to make a colorbar to go with it. However, putting the min range = -4 and the max range = 4 and setting /log or /ylog gives me a colorbar that stays positive. Any thoughts? Is there an easy way to do this, or do I have to create a positive and negative colorbar next to each
other?
>

I suppose you could do this:

IDL> cgcolorbar, range=[1./1e4,1e4], /xlog

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("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
Read Message
Previous Topic: Re: idl workbench: not working properly (plot, buttons and console)
Next Topic: Re: How to change ENVI tmp folder in IDL

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

Current Time: Mon Dec 01 16:14:47 PST 2025

Total time taken to generate the page: 1.35602 seconds