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 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Position keyword [message #61655] Thu, 24 July 2008 10:50
Jeff[2] is currently offline  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 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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Animated FSC_Surface
Next Topic: Re: reading *.shp

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

Current Time: Wed Oct 08 19:25:06 PDT 2025

Total time taken to generate the page: 0.00569 seconds