[ncl-talk] reducing margins panelplots
Mary Haley
haley at ucar.edu
Tue Nov 10 09:45:57 MST 2015
Noelia,
There are many ways to increase the size of each paneled plot.
[1] Set the panel resources "gsnPanelYWhiteSpacePercent" and/or
"gsnPanelYWhiteSpacePercent" to something smaller than 5, but larger than
0. This sets the percentage of white space between each plot, based on the
width and height of the frame. The default is 5%. Setting these to 0 will
make your plots almost touch.
[2] Use a different configuration of plots, instead of 7 rows and 2
columns. You could try 4 rows and 4 columns, which will give you one row
with fewer plots, but they will all be larger.
[3] Don't set gsnPanelBottom or else set it to something smaller than
0.06. I think by setting it to 0.06 you are actually increasing the amount
of white space for the labelbar, which decreases the white space for the
plot area, hence making the plots smaller.
[4] Turn off tickmarks and/and or tickmark labels for the inside sides of
the plots, giving the plots room to grow a little. If you do this, you will
likely need to set gsnPanelScalePlotIndex to be something other than plot
#0. This tells gsn_panel which plot to base all the scaling on, and you
usually want this to be one of your smaller plots.
I've attached a couple of scripts, based on "panel_28.ncl" on our panel
examples page:
http://www.ncl.ucar.edu/Applications/panel.shtml#ex28
(which I mostly used just to generate some dummy plots).
The panel_28_orig.ncl script is very close to the script you attached,
except it uses dummy data. I added a second call to panel the plots using
a 4x4 PNG, which I attached.
The panel_28_ticks.ncl script is the same script, but with some tickmarks
turned off, and more customization of the paneled plots, in order to make
them larger. I've attached an image from this as well.
--Mary
On Tue, Nov 10, 2015 at 8:47 AM, Noelia otero <noeli1680 at gmail.com> wrote:
> Hi,
>
> I am trying to make some plots by using gsn_panel. My question is, how can
> I get the plots bigger? I have been looking at several examples and I am
> already using the option gsnMaximize, however, when I check the pdf file,
> it looks like too small..(I would like to reduce the margins and make
> bigger every plot). I am not sure what is best way.
> I would like to attach the plot that I got and the script I'm using.
>
> Many thanks in advance,
>
> cheers,
>
> Noelia
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151110/02fec3af/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: panel.tickmarks.png
Type: image/png
Size: 327448 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151110/02fec3af/attachment-0003.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: panel.4x4.png
Type: image/png
Size: 416407 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151110/02fec3af/attachment-0004.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: panel.orig.png
Type: image/png
Size: 289486 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151110/02fec3af/attachment-0005.png
More information about the ncl-talk
mailing list