[ncl-talk] gsnPanelMainPosYF

Laura Fowler laura at ucar.edu
Tue Feb 5 15:32:07 MST 2019


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

!-------------------------------------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190205/69794da8/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test2.png
Type: image/png
Size: 226518 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190205/69794da8/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test1.png
Type: image/png
Size: 239272 bytes
Desc: not available
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190205/69794da8/attachment-0003.png>


More information about the ncl-talk mailing list