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

Home » Public Forums » archive » multiplot and margins
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
multiplot and margins [message #70760] Thu, 29 April 2010 17:55
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
I was just trying to add some space for titles to the result of using
idlsastro's multiplot, in the same way David suggested for a simple !
p.multi:

http://www.dfanning.com/tips/omargin.html

And found that !x.omargin and !y.omargin had no effect when multiplot
was used.

Digging around in its code, I found that it could account for those
with a simple change, in the section:

margins = [min(!x.window)-min(!x.region) $ ; in normlized coordinates
,min(!y.window)-min(!y.region) $
,max(!x.region)-max(!x.window) $
,max(!y.region)-max(!y.window)]

To

margins = [min(!x.window)-min(!x.region)+!d.x_ch_size*!x.omargin[0]/
double(!d.x_vsize) $
,min(!y.window)-min(!y.region)+!d.y_ch_size*!y.omargin[0]/do uble(!
d.y_vsize) $
,max(!x.region)-max(!x.window)+!d.x_ch_size*!x.omargin[1]/do uble(!
d.x_vsize) $
,max(!y.region)-max(!y.window)+!d.y_ch_size*!y.omargin[1]/do uble(!
d.y_vsize)]

I put the resulting modified file at

http://www.ppenteado.net/idl/multiplot_pp.pro
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: AO, SAO
Next Topic: Re: Writing *.csv files

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

Current Time: Wed Oct 08 17:52:13 PDT 2025

Total time taken to generate the page: 0.00510 seconds