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

Home » Public Forums » archive » Re: !p.multi[0] = ? What's the first element of !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: !p.multi[0] = ? What's the first element of !p.multi ? [message #52801] Sat, 03 March 2007 16:09 Go to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
R.G. Stockwell writes:

>> I've been trying to look for the purpose of the first element of !
>> p.multi ... can somebody help?
>>
>> I know that the
>> !p.multi[1] is for no. of column
>> !p.multi[2] is for no. of row
>> !p.multi[3] is for ..... what?
>> !p.multi[4] is for direction (either column-major or row-major)
>>
>> So .. !p.multi[0] = ?
>>
>
> It is the current plot window, starting from the end.
> Except for the value 0, which is the first plot window.

Humm. "Starting from the end"!? Never thought of it that way. :-)

I think of it as the number of plots still to be plotted
in the current "cycle" of plots, before a plot erases
the window and the cycle starts over. Normally, we start
with this value set to 0, so that the "cycle" starts with
erasing the window, but this is not necessary, and you
can start with any number you like, as long as you understand
that only when the value of !P.MULTI[0] is 0 is the window
erased before the next plot is drawn.

!p.multi[0] is the number of plots remaining in a "cycle"
!p.multi[1] is for no. of column
!p.multi[2] is for no. of row
!p.multi[3] is for no. of plots in the Z dim. (must have 3D coords)
!p.multi[4] is for direction (either column-major or row-major)

You can set the value of !P.MULTI[0] while drawing plots
if, for example, you wanted to skip a plot in the plot cycle.

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: !p.multi[0] = ? What's the first element of !p.multi ? [message #52802 is a reply to message #52801] Sat, 03 March 2007 15:40 Go to previous messageGo to next message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
<win.trivit@gmail.com> wrote in message
news:1172962697.950826.306850@v33g2000cwv.googlegroups.com.. .
> I've been trying to look for the purpose of the first element of !
> p.multi ... can somebody help?
>
> I know that the
> !p.multi[1] is for no. of column
> !p.multi[2] is for no. of row
> !p.multi[3] is for ..... what?
> !p.multi[4] is for direction (either column-major or row-major)
>
> So .. !p.multi[0] = ?
>

It is the current plot window, starting from the end.
Except for the value 0, which is the first plot window.
!p.multi = [0,3,3] ; makes 9 plot windows, and will
plot in the top left window.

!p.multi = [8,3,3] ; plots in top middle.
!p.multi = [7,3,3] ; top right
...
!p.multi = [1,3,3] ; bottom right.

By the way, I can't stress how useful it would have been
for you to put a number in there and see what happens,
or read the help files. :)


From the help:
The first element of !P.MULTI is a counter that reports how many plots
remain on the page.
The second element of !P.MULTI is the number of columns per page.
The third element is the number of rows per page.

Cheers,
bob
Re: !p.multi[0] = ? What's the first element of !p.multi ? [message #52938 is a reply to message #52801] Mon, 05 March 2007 06:27 Go to previous message
news.qwest.net is currently offline  news.qwest.net
Messages: 137
Registered: September 2005
Senior Member
"David Fanning" <news@dfanning.com> wrote in message
news:MPG.2053bc1048cb4bff989eaf@news.frii.com...
> R.G. Stockwell writes:
...
>> It is the current plot window, starting from the end.
>> Except for the value 0, which is the first plot window.
>
> Humm. "Starting from the end"!? Never thought of it that way. :-)

Yes, but if you think of it my way, then it makes no sense! :)
Of course, your description is the correct one and it is how it is
described in the help.

I was just mentionin it from a practical point of view, where if you
want to place a plot in a certain place, you count backwards from the end.
I do this all the time to change the number of plots in a row (2 plots
in the first row, and 3 in the second row for instance). I guess it comes
from my aversion to interactive uses of IDL (isn't it ironic) and my
penchant for creating single figure output for inclusion in manuscripts.

Cheers,
bob

PS .... so, in PS mode, !P,multi=[0,1,2] does not give an
erase command before plotting the first plot. The erase
command would create a blank page, wouldn't it?
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: How to create GUI with Menus in other languages like Japanese, Chines in IDL
Next Topic: hist_nd question

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

Current Time: Fri Oct 10 23:12:20 PDT 2025

Total time taken to generate the page: 0.40116 seconds