|
Re: Using both !p.multi and the position keyword (help?) [message #79298 is a reply to message #79288] |
Mon, 13 February 2012 19:35  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
A J writes:
> For a specific data set, I have created a single display of two plots
> using the position keyword to cgplot. I have a multitude of data sets,
> so I wanted to print ('ps') two displays per page. I used p.multi to
> set my output to 1 column, two rows. Of course this doesn't work
> because position overrides p.multi, and I get two full-page displays
> printed over each other on each page.
>
> Is there any way to do this? To make IDL use the position keyword
> relative to the page position given by p.multi? The only way I can
> think to do it is to make two sets of position keywords, one for the
> top half of the page, and one for the bottom half, and set a
> conditional 'if num (data set) is odd, use top half positions, if even
> use bottom positions.' Or soemthing like that. I would really prefer
> not to do this if there is a more flexible solution.
In IDL, you really have to decide if you are going
to turn control over to !P.Multi (or WMulti, if you
are using cgWindow), or you are going to position
plots yourself with !P.Position. You can't
have your cake and eat it, too.
Another alternative, of course, is to use the Layout
keyword. You have a LOT more flexibility with Layout,
as long as you realize you can NEVER erase anything
when using it!
In this case, you probably have to choose your poison. :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|