Re: Position keyword [message #61655] |
Thu, 24 July 2008 10:50 |
Jeff[2]
Messages: 18 Registered: November 2007
|
Junior Member |
|
|
On Jul 24, 9:57 am, David Fanning <n...@dfanning.com> wrote:
> Jeff writes:
>> I'm not sure if this post is quite new... I'm trying to make a color
>> bar using:
>
>> colorbar = Obj_New("COLORBAR", Range=[0,255],$
>> NCOLORS=256, COLOR=0, POSITION=[p1, p2, p3, p4], CHARSIZE=0.5)
>
>> The position is expressed in normalized range. It works fine, but I
>> would like to know if I can do the same thing without using normalized
>> range. Suppose I want to define the size of the colorbar using pixels
>> units. Is it possible?
OK... If it is not possible, that's the best solution.
Thanks!
>
> No, it's not possible. But I would point out that
> if you divide your pixel units by the size of the
> window you are putting the color bar in you have
> normalized units! ;-)
>
> 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: Position keyword [message #61663 is a reply to message #61655] |
Thu, 24 July 2008 05:57  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Jeff writes:
> I'm not sure if this post is quite new... I'm trying to make a color
> bar using:
>
> colorbar = Obj_New("COLORBAR", Range=[0,255],$
> NCOLORS=256, COLOR=0, POSITION=[p1, p2, p3, p4], CHARSIZE=0.5)
>
> The position is expressed in normalized range. It works fine, but I
> would like to know if I can do the same thing without using normalized
> range. Suppose I want to define the size of the colorbar using pixels
> units. Is it possible?
No, it's not possible. But I would point out that
if you divide your pixel units by the size of the
window you are putting the color bar in you have
normalized units! ;-)
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.")
|
|
|