[ncl-talk] Panel plot tickmarks and labelbars

g.graffino at tim.it g.graffino at tim.it
Fri May 19 04:34:30 MDT 2017


Dear NCL folks,
I'm trying to modify some properties of several panel plots.

I'd like to enlarge both tickmarks and labelbar fonts, but if I do it the labelbar covers much of the tickmarks. Moreover, if I try to move down the labelbar to show up the tickmarks, labels disapper. You can the results in the attached plot.
Looking for a solution, I found the panel plots example page (https://www.ncl.ucar.edu/Applications/panel.shtml). Example 20 looked promising, but playing with vpHeightF didn't do the trick.
Is there something I haven't try yet? Any help is appreciated. 

I copied and pasted the plot resources I employed, together with the plot instructions.

Thanks a lot.
Giorgio

 filename = "RegCM_PR_analysis"
 type = "PNG"
 wks = gsn_open_wks(type,filename)

 res1 at gsnAddCyclic = False
 res1 at gsnDraw = False
 res1 at gsnFrame = False
 res1 at gsnLeftString = ""
 res1 at gsnCenterString = ""
 res1 at gsnRightString = "" 
 res1 at cnLineLabelsOn = False
 res1 at cnLinesOn = False
 res1 at cnFillOn = True
 res1 at cnInfoLabelOn = False        ; Turn off plot info
 res1 at cnLevelSelectionMode = "ExplicitLevels"
 res1 at cnLevels = (/1,2,4,8,12,16,24/)
 res1 at cnFillPalette = "MPL_BuGn"
 res1 at cnFillDrawOrder = "Draw"  
 res1 at cnFillMode = "RasterFill"
 res1 at lbLabelBarOn = True
 res1 at lbLabelPosition = "Bottom"
 res1 at lbLabelFontHeightF = 2.
 res1 at tmXBLabelFontHeightF = 0.01 
 res1 at tmYLLabelFontHeightF = 0.01
 res1 at pmLabelBarOrthogonalPosF = 0.2
 res1 at mpFillOn = True
 res1 at mpOutlineOn = True
 res1 at mpLimitMode = "LatLon"
 res1 at mpMinLatF   = min(lat)
 res1 at mpMinLonF   = min(lon)
 res1 at mpMaxLatF   = max(lat)
 res1 at mpMaxLonF   = max(lon)
 res1 at mpCenterLonF = 179.625
 res1 at mpCenterLatF = 0.0
 res1 at sfXArray = lon   
 res1 at sfYArray = lat  
 res2 at gsnAddCyclic = False
 res2 at gsnDraw = False
 res2 at gsnFrame = False
 res2 at gsnLeftString = ""
 res2 at gsnCenterString = ""
 res2 at gsnRightString = "" 
 res2 at cnLineLabelsOn = False
 res2 at cnLinesOn = False
 res2 at cnFillOn = True
 res2 at cnInfoLabelOn = False        ; Turn off plot info
 res2 at cnLevelSelectionMode = "ExplicitLevels"
 res2 at cnLevels = (/1,2,4,8,12,16,24/)
 res2 at cnFillPalette = "MPL_BuGn" 
 res2 at cnFillDrawOrder = "Draw"  
 res2 at cnFillMode = "RasterFill"
 res2 at lbLabelBarOn = True
 res2 at lbLabelPosition = "Bottom"
 res2 at lbLabelFontHeightF = 2.
 res2 at tmXBLabelFontHeightF = 0.01 
 res2 at tmYLLabelFontHeightF = 0.01
 res2 at mpFillOn = True
 res2 at mpOutlineOn = True
 res2 at mpLimitMode = "LatLon"
 res2 at mpMinLatF   = min(lat)
 res2 at mpMinLonF   = min(lon)
 res2 at mpMaxLatF   = max(lat)
 res2 at mpMaxLonF   = max(lon)
 res2 at mpCenterLonF = 179.625
 res2 at mpCenterLatF = 0.0
 res2 at sfXArray = lon   
 res2 at sfYArray = lat  
 res3 at gsnAddCyclic = False
 res3 at gsnDraw = False
 res3 at gsnFrame = False
 res3 at gsnLeftString = ""
 res3 at gsnCenterString = ""
 res3 at gsnRightString = "" 
 res3 at cnLineLabelsOn = False
 res3 at cnLinesOn = False
 res3 at cnFillOn = True
 res3 at cnInfoLabelOn = False        ; Turn off plot info
 res3 at cnLevelSelectionMode = "ExplicitLevels"
 res3 at cnLevels = (/-24,-16,-8,-4,-2,-1,1,2,4,8,16,24/)
 res3 at cnFillColors = (/45,50,55,60,65,0,0,0,75,85,95,105,115,125/)
 res3 at cnFillDrawOrder = "Draw"  
 res3 at cnFillMode = "RasterFill"
 res3 at lbLabelBarOn = True
 res3 at lbLabelPosition = "Bottom"
 res3 at lbLabelFontHeightF = 2.
 res3 at tmXBLabelFontHeightF = 0.01 
 res3 at tmYLLabelFontHeightF = 0.01
 res3 at mpFillOn = True
 res3 at mpOutlineOn = True
 res3 at mpLimitMode = "LatLon"
 res3 at mpMinLatF   = min(lat)
 res3 at mpMinLonF   = min(lon)
 res3 at mpMaxLatF   = max(lat)
 res3 at mpMaxLonF   = max(lon)
 res3 at mpCenterLonF = 179.625
 res3 at mpCenterLatF = 0.0
 res3 at sfXArray = lon   
 res3 at sfYArray = lat  
 panel_res at gsnMaximize = True
 panel_res at gsnPaperOrientation = "Landscape" 
 panel_res at gsnPanelFigureStrings = (/"Model","GPCP","Bias"/)
 panel_res at gsnPanelFigureStringsFontHeightF = 0.01
 panel_res at gsnPanelYWhiteSpacePercent = 5.
 panel_res at txString = "Rainfall (mm/day) - Average - January"

 plot1 = gsn_csm_contour_map(wks,pri_int_mon,res1)
 plot2 = gsn_csm_contour_map(wks,pre_mon,res2)
 plot3 = gsn_csm_contour_map(wks,pri_int_mon-pre_mon,res3)
 gsn_panel(wks,(/plot1,plot2,plot3/),(/3,1/),panel_res1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170519/b2f69fa6/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: RegCM_PR_analysis.000001.png
Type: image/png
Size: 164278 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170519/b2f69fa6/attachment.png 


More information about the ncl-talk mailing list