multiplot and margins [message #70760] |
Thu, 29 April 2010 17:55 |
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
|
|
|