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

Home » Public Forums » archive » Re: Place a colorbar under each plot whose position is determined by !p.multi
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: Place a colorbar under each plot whose position is determined by !p.multi [message #53890] Wed, 09 May 2007 09:09 Go to next message
teich is currently offline  teich
Messages: 33
Registered: May 2007
Member
Hi David, thanks, I learn something new every day!

Howard



On May 9, 10:22 am, t...@atmsci.msrc.sunysb.edu wrote:
> Hi all,
>
> I have always been confused by this:
>
> If I want to put a colorbar under each of 4 plots where the positions
> are determined by !p.multi=[0,2,2], I need to know the position of
> each plot. When I print !p.position, I always get [0.0,0.0,0.0,0.0].
> Basically, how do I find out the position of each plot after each are
> plotted? I need this information to feed into my colorbar module.
>
> Thanks,
>
> How
Re: Place a colorbar under each plot whose position is determined by !p.multi [message #53896 is a reply to message #53890] Wed, 09 May 2007 07:36 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
teich@atmsci.msrc.sunysb.edu writes:

> If I want to put a colorbar under each of 4 plots where the positions
> are determined by !p.multi=[0,2,2], I need to know the position of
> each plot. When I print !p.position, I always get [0.0,0.0,0.0,0.0].
> Basically, how do I find out the position of each plot after each are
> plotted? I need this information to feed into my colorbar module.

After you draw each plot, consult !X.Window and !Y.Window
to tell you where the corners of the axes are in normalized
coordinates. Base your colorbar location off of these points
and you should be golden. :-)

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: Place a colorbar under each plot whose position is determined by !p.multi [message #53988 is a reply to message #53890] Wed, 09 May 2007 09:23 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
teich@atmsci.msrc.sunysb.edu writes:

> Hi David, thanks, I learn something new every day!

Well, me, too. That's how I know I'm still hanging in there. :-)

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: Re: KMean Clustering of RGB Images
Next Topic: math in graph title

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

Current Time: Sat Oct 11 05:40:59 PDT 2025

Total time taken to generate the page: 1.28089 seconds