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

Home » Public Forums » archive » Re: 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 #47397] Thu, 09 February 2006 20:01 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
vigeesh@gmail.com writes:

> I'm working on a simulation stuff, computationally speaking, its
> nothing but generating images for each instant of time.:-)
> Each image is accompanied by a colorbar( I use D.Fanning's colorbar
> program).
>
> Now my problem is......
> At each instant of time, the array that has to be displayed has a
> negative minimum value and a positive maximum value. I want my colorbar
> to display the 0 in the middle of the bar for all the time instant and
> scale the rest according to the min and max value.
> There could be a simple solution for this, please help.

How about this:

minVal = -30
maxVal = 30
Colorbar, Range=[minVal, maxVal]

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Previous Topic: Re: IDLWave documentation generation
Next Topic: IDL oo programming with ENVI

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

Current Time: Fri Oct 10 03:48:07 PDT 2025

Total time taken to generate the page: 0.31736 seconds