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

Home » Public Forums » archive » Re: Using both !p.multi and the position keyword (help?)
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: Using both !p.multi and the position keyword (help?) [message #79288] Tue, 14 February 2012 10:09
A J is currently offline  A J
Messages: 11
Registered: February 2012
Junior Member
Poison it is! At least now I can stop looking for a way to do both...
Thanks :)
Re: Using both !p.multi and the position keyword (help?) [message #79298 is a reply to message #79288] Mon, 13 February 2012 19:35 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: cgImage Update
Next Topic: Our JD Smith Tying Flies?

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

Current Time: Sat Oct 11 09:14:05 PDT 2025

Total time taken to generate the page: 1.60095 seconds