Re: Place a colorbar under each plot whose position is determined by !p.multi [message #53890] |
Wed, 09 May 2007 09:09  |
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   |
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.")
|
|
|
|