Re: colorbar - annotation isn't equally spaced... [message #52257] |
Thu, 25 January 2007 06:03  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Yikes writes:
> I am using David Fanning's colobar.pro but the text annotations aren't
> equally spaced.. e.g. 0.2,0.3,0.4,0.6,0.7,0.8,0.9
>
> Does anyone know why this is the case?
Can you show us how you are calling it?
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: colorbar - annotation isn't equally spaced... [message #52379 is a reply to message #52257] |
Tue, 30 January 2007 03:56   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Yikes writes:
> This is how I call the colorbar.. colorbar, /right, format =
> '(f5.1)',range = [0., 1.], /vertical
Ah, well, your format doesn't contain enough precision
to *show* that the values are equally spaced! Try something
like this:
Colorbar, /Right, /Vertical, Range=[0,1], $
Format='(F5.3)', Position=[0.7, 0.1, 0.75, 0.9]
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
|
|