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

Home » Public Forums » archive » Advancing !p.multi after drawing a map
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Advancing !p.multi after drawing a map [message #84064] Thu, 25 April 2013 12:18
Andy Sayer is currently offline  Andy Sayer
Messages: 127
Registered: February 2009
Senior Member
Hi all,

I'm not sure whether I am overlooking something obvious or not...

Suppose I want to set up a window containing 2x2 plots in it. I might do this:

window,0
!p.multi=[0,2,2]

The first element of !p.multi has the number of remaining plots for the window. So, if I type this 4 times:

print,!p.multi[0] & plot,findgen(3) & print,!p.multi[0] & print,' '

then I get as output:
0
3

3
2

2
1

1
0

and a line is plotted each time (in each of the four corners of the screen, starting from top left).

However, if I do this instead four times (to draw a box from a map):

print,!p.multi[0] & map_set & print,!p.multi[0] & print,' '

Then I get

0
3

3
3

3
3

3
3

i.e. !p.multi[0] is not advancing, and the map boxes are plotted directly over one another. Same behaviour if I add a map_continents command in there, too. If I try to force it to advance, it starts to, but then stops, e.g. using this four times:

print,!p.multi[0] & map_set & print,!p.multi[0] & !p.multi[0]=!p.multi[0]-1 & print,' '

0
3

2
3

2
3

2
3

... does anyone know what I'm doing wrong? I just want, when I draw a map on the screen, !p.multi=[0] to advance in recognition of the fact I've made a plot in the window.

Thanks,

Andy
[Message index]
 
Read Message
Previous Topic: Re: How to calculate the slope of a line in a graph ?
Next Topic: Re: Advancing !p.multi after drawing a map

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

Current Time: Wed Oct 08 15:32:50 PDT 2025

Total time taken to generate the page: 0.00444 seconds