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

Home » Public Forums » archive » Re: Position keyword
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: Position keyword [message #61663 is a reply to message #61655] Thu, 24 July 2008 05:57 Go to previous message
David Fanning is currently offline  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.")
[Message index]
 
Read Message
Read Message
Previous Topic: Animated FSC_Surface
Next Topic: Re: reading *.shp

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

Current Time: Sun Oct 12 09:39:21 PDT 2025

Total time taken to generate the page: 2.00121 seconds