[ncl-talk] gsnPanelMainPosYF
Adam Phillips
asphilli at ucar.edu
Wed Feb 6 14:27:20 MST 2019
Hi Laura,
The behavior you described puzzles me as well. A developer will have to
speak to that. As an alternative, you can completely get around the issue
of using gsnPanelMainPosYF with a call to gsn_text_ndc:
resP = True
resP at gsnFrame = False
....
gsn_panel(wks,plots(0:3),(/nrows,ncols/),resP)
txres = True
txres at txFontHeightF = 0.018
dum = gsn_add_text(wks,"DECEMBER 2015 - INCIDENCE OF SHALLOW CONVECTION
",0.5,0.95,txres)
frame(wks)
Adam
On Tue, Feb 5, 2019 at 3:32 PM Laura Fowler <laura at ucar.edu> wrote:
> Hello:
>
> I am still kind of confused on how to use gsnPanelMainYF to move the
> position of the main title in a panel plot. Hope you can help me. When I do
> not set gsnPanelMainPosYF and use gsnPanelDebug = True, then the result of
> the resources below gives me(also see test1.png):
>
> resP = True
>
> resP at gsnDraw = True
>
> resP at gsnFrame = False
>
> resP at gsnMaximize = True
>
> resP at gsnPanelDebug = True
>
> resP at gsnPaperOrientation = "portrait"
>
>
> resP at gsnPanelTop = 1.0 ; Make sure each
> set of plots gets a
>
> resP at gsnPanelBottom = resP at gsnPanelTop - plot_height ; third of the
> total height.
>
> ;resP at gsnPanelMainPosYF = 0.95
>
> resP at gsnPanelMainString = "DECEMBER 2015 - INCIDENCE OF SHALLOW
> CONVECTION "
>
> gsn_panel(wks,plots(0:3),(/nrows,ncols/),resP)
>
>
> (0) -------min/max X,Y viewport positions for plots-------
>
> (0) min/max x viewport position = 0.155409/0.540376
>
> (0) min/max y viewport position = 0.694126/0.914126
>
> (0) -------Panel title values-------
>
> (0) title = DECEMBER 2015 - INCIDENCE OF SHALLOW
> CONVECTION
>
> (0) top of paneled plots = 0.937843
>
> (0) y location of title = 0.967843
>
> (0) -------min/max NDC values for all objects in panel-------
>
> (0) min/max x position = 0.110249/0.889751
>
> (0) min/max y position = 0.502157/0.978343
>
> To move the location closer to the plots, I added: "resP at gsnPanelMainPosYF
> = 0.95" to the resources above to move the title from y location of title
> = 0.967843
>
> (0) -------min/max X,Y viewport positions for plots-------
>
> (0) min/max x viewport position = 0.171072/0.538541
>
> (0) min/max y viewport position = 0.685302/0.895302
>
> (0) -------Panel title values-------
>
> (0) title = DECEMBER 2015 - INCIDENCE OF SHALLOW
> CONVECTION
>
> (0) top of paneled plots = 0.917941
>
> (0) y location of title = 0.95
>
> (0) -------min/max NDC values for all objects in panel-------
>
> (0) min/max x position = 0.110249/0.889751
>
> (0) min/max y position = 0.502059/0.9605
>
>
> test2,png shows that the entire panel plot moved down while I was
> expecting that only the title would move. So I am totally confused. Can
> somebody tell me what I can try next. If interested, the test.ncl script is
> in
> /gpfs/fs1/scratch/laura/MPASprojects2018/MPAS.cu_shallow/novemberPUBLICATION/precipitation_figs
>
>
> Thanks,
> Laura
>
>
>
> --
>
> !-------------------------------------------------------------------------------------------------------------
> Laura D. Fowler
>
> Mesoscale and Microscale Meteorology Division (MMM)
> National Center for Atmospheric Research
> P.O. Box 3000, Boulder CO 80307-3000
>
> e-mail: laura at ucar.edu
> phone: 303-497-1628
>
>
> !-------------------------------------------------------------------------------------------------------------
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
--
Adam Phillips
Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/ 303-497-1726
<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190206/efc8e746/attachment.html>
More information about the ncl-talk
mailing list