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

Home » Public Forums » archive » !p.multi and tv
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: !p.multi and tv [message #11869 is a reply to message #11753] Thu, 28 May 1998 00:00 Go to previous messageGo to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
David Fanning wrote:

[...]

example code:

< [...]
> !P.Multi = multi
> !X.OMargin = [2, 2]
> !Y.OMargin = [2, 2]
> FOR j=0, multi[1]*multi[2]-1 DO BEGIN
> Plot, Findgen(11), Color=!P.Background
> x1 = !X.Region[0] + 0.05
> x2 = !X.Region[1] - 0.05
> y1 = !Y.Region[0] + 0.05
> y2 = !Y.Region[1] - 0.05
> TVImage, image, Position=[x1, y1, x2, y2]
> Plot, Findgen(11), position=[x1, y1, x2, y2], xticklen=-0.02, $
> yticklen=-0.02, xtitle='latitude', ytitle='longitude', $
> /nodata, /noerase
> ENDFOR
> END
>

And this works ?? You amaze me, David! Have they changed this? Here is
what the online help of IDL 5.02 says:

OMARGIN
A 2-element array specifying the "outer" margin on the left (bottom) and
right (top) sides of a multi-plot window, in units of character size. A
multi-plot window is created by setting the !P.MULTI system variable
field. OMARGIN controls the amount of space around the entire plot area,
including individual plot margins set with !X.MARGIN and !Y.MARGIN.
[...]
Setting !P.POSITION, or specification of the POSITION parameter
overrides the effect of this field.

^^^^^^^^^

Regards,
Martin.

------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Earth&Planetary Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
------------------------------------------------------------ -------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: PostScript and IDL, why object graphics ?
Next Topic: PostScript and IDL,

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

Current Time: Fri Oct 10 20:29:09 PDT 2025

Total time taken to generate the page: 0.48003 seconds