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

Home » Public Forums » archive » Re: Q: Selection of specific plot regions
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: Q: Selection of specific plot regions [message #7776] Wed, 15 January 1997 00:00
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
> Is there a possibility to select a specific plot region when using
> multiple plots like the "wset" command for the selection of a plot
> window?
>

If you use !p.multi to do this, then manipulating !p.multi(0)
gives you lots of options. Give it a try be incrementing
this array position when you need to back-up.
Re: Q: Selection of specific plot regions [message #7787 is a reply to message #7776] Tue, 14 January 1997 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Lothar Schueller <lothar@amor.met.fu-berlin.de> writes:

> Is there a possibility to select a specific plot region when using
> multiple plots like the "wset" command for the selection of a plot
> window?

Yes. Suppose, for example, that you wanted three columns and
two rows of plots, and that you wanted the plots to be displayed
in column order (i.e., the first column is filled, then the second,
and so forth). The order of the plots would look something like
this:

1 3 5
2 4 6

To set this up, you set !P.MULTI like this:

!P.MULTI = [0, 3, 2, 0, 1]

The first element in the !P.MULTI system variable tells
you how many plots *REMAIN* on the page to plot. The default
value is "0", meaning that no more plots exist on the page
to plot. Thus, the *next* plot goes into the number 1 slot
in the diagram above.

But suppose you wanted to plot into slot number 3, above.
In the normal course of things, you would do the first plot,
then the second, and you would be ready to plot into slot
number 3. If you examined !P.MULTI(0) after you plotted
the second plot, you would see that it has a value of 4.
That is, four plots *remain* to be plotted. Thus, the *next*
plot goes into slot 3.

If you want to plot into slot 3 without first plotting into
slots 1 and 2, you simply set !P.MULTI(0) appropriately,
like this:

!P.MULTI(0) = 4
PLOT, data

The plot above goes into slot 3. If I want now to draw a
plot into slot 5, I do this:

!P.MULTI(0) = 2
PLOT, data

and so on.

The trick is to remember that !P.MULTI(0) is always set to
the number of plots *remaining* on the page of plots.

Yours,

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
2642 Bradbury Court, Fort Collins, CO 80521
Phone: 970-221-0438 Fax: 970-221-4762
E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
-----------------------------------------------------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: MINOR PROGRESS
Next Topic: Re: * Some long filenames do work on NT4.0 !!! *

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

Current Time: Thu Oct 09 15:11:06 PDT 2025

Total time taken to generate the page: 0.60253 seconds