[ncl-talk] Not able to Resize Panel Plots
Mary Haley
haley at ucar.edu
Sun Jan 21 09:45:41 MST 2018
Yanting,
I can't tell from your code snippet if you are actually trying to panel the
individual plots using gsn_panel, or if you are just drawing the plots
yourself? Since these two plots are very different in size, I recommend NOT
using gsn_panel, and just using vpXXXX resources.
Meanwhile, when you set gsnMaximize to True, it will actually resize your
plots to make them fit in the window. It will keep the same aspect ratio,
but it is effectively change vpWidthF and vpHeightF under the hood.
Try not setting gsnMaximize at all, and let the vp resources do the work.
You might also try using maximize_output, which only works for PS and PDF
output. PNG output will not rotate the image, but PS/PDF output will.
See examples panel_20 and panel_23 at:
http://www.ncl.ucar.edu/Applications/panel.shtml
--Mary
On Fri, Jan 19, 2018 at 3:45 AM, Yan-Ting Chen via ncl-talk <
ncl-talk at ucar.edu> wrote:
> Hi all,
>
> I have a problem on how to resize panel plots on NCL v6.4. I want to put
> several plots in a panel. In order to enlarge to plots, I set res at wkHeight
> and res at wkWidth to get a larger workstation. Although I do get a larger
> window, the plots are as small as they are in a default 1024x1024 window.
> What I get is, a panel with lots of white margin. How can I really get
> larger chart?
>
> I've tried several methods:
> - figtype = "x11", figtype at wkWidth = 1600, figtype at wkHeight = 1600 (I
> tried several combination, like 1024, 1200, 1600, 2000)................much
> margin left. Figure is the same size as 1024x1024 one. (see attachment)
> - resL at vpXF = 0.08; resR at vpXF=0.53................still much margin left.
> - resL at vpHeightF=0.7.................aspect ratio changed but basically
> it doesn't cross the implicit border.
> - resP at gsnMaximize = True..............Although the tutorial suggests
> this way, I found it not change result.
>
> The figures I attach are with following settings related to resize:
> res at wkHeight = 1024
> res at wkWidth = 1024
> (and another one with height 1200 and width 1600. 1600x1600 one's output
> looks same 1024x1024 on png file.)
>
> resL at vpXF = 0.08
> resL at vpHeightF = -0.5
> resL at vpWidthF = 0.6
>
> resR at vpXF = -.53
> resR at vpHeightF = -0.5
> resR at vpWidthF = 0.6
> resP at gsnMaximize = True
>
> Non of them work. How can I squeeze the margins?
>
> Thanks for your kind reply.
>
> Yanting
>
> _______________________________________________
> 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/20180121/d3658271/attachment.html>
More information about the ncl-talk
mailing list