[ncl-talk] Changing title font size of panel plot

Toni Klemm toni-klemm at tamu.edu
Wed Oct 31 15:47:04 MDT 2018


Thanks, Adam! gsnPanelMainFontHeightF <http://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnPanelMainFontHeightF> was what I needed to use for a paneled plot, not tiMainFontHeightF.

Toni


Toni Klemm, Ph.D.
Postdoctoral Research Associate
Department of Ecosystem Science and Management
College of Agriculture and Life Sciences
Texas A&M University, College Station, TX
Contributor to the Early Career Climate Forum <http://www.eccforum.org/>
www.toni-klemm.de <http://www.toni-klemm.de/> | @toniklemm <http://twitter.com/toniklemm>








> On Oct 31, 2018, at 2:06 PM, Adam Phillips <asphilli at ucar.edu> wrote:
> 
> Hi Barry/Toni,
> As Toni's issue has to do with setting the font size of a panel title, I think what he needs to do is set set gsnPanelMainFontHeightF <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.ncl.ucar.edu_Document_Graphics_Resources_gsn.shtml-23gsnPanelMainFontHeightF&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=si_RF4BLSzC8NnfJ4AfHqj9C76aUwYUd8ix6cc8REbY&s=N-EYMe9Os5XPVzNjpOWdSFYmPr7MaDQsSFh-lIYU0wg&e=> or set txFontHeightF <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.ncl.ucar.edu_Document_Graphics_Resources_tx.shtml-23txFontHeightF&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=si_RF4BLSzC8NnfJ4AfHqj9C76aUwYUd8ix6cc8REbY&s=QsvQ4QOMuiEeWk5qCvzGj-c8-DJwpgdtmtuLq8L24rI&e=> (older resource that still works for this) in his panel resource list.  Note that there are a few other gsnPanelMainFont* resources that also can be used to modify the panel title.
> Adam
> 
> On Wed, Oct 31, 2018 at 12:08 PM Barry Lynn <barry.h.lynn at gmail.com <mailto:barry.h.lynn at gmail.com>> wrote:
> Hi:
> 
> If you are somehow using this function (but not on WRF data), then you are using WRFUserARW.ncl (which is loaded automatically).
> 
> This WRFUserARW.ncl program sets fontsizes within that override those in your main program.
> 
> Barry
> 
> On Wed, Oct 31, 2018 at 4:27 PM Toni Klemm <toni-klemm at tamu.edu <mailto:toni-klemm at tamu.edu>> wrote:
> Hi Barry,
> 
> I’m not sure whether I use WRF_NCL. What is that? I found this webpage, but I couldn’t make much of it: https://www.ncl.ucar.edu/Document/Functions/wrf.shtml <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ncl.ucar.edu_Document_Functions_wrf.shtml&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=si_RF4BLSzC8NnfJ4AfHqj9C76aUwYUd8ix6cc8REbY&s=0478PQqqnbsvPq34o-gDPlRju1g4XsvLQVI5Lf6sB9Q&e=>
> With this particular script I’m plotting decadal averages of projected changes in plant carbon stored in grasslands compared to historic averages. It doesn’t have to do with weather or climate (WRF stands for Weather Research and Forecast model, doesn’t it?).
> 
> Thanks,
> Toni
> 
> 
> Toni Klemm, Ph.D.
> Postdoctoral Research Associate
> Department of Ecosystem Science and Management
> College of Agriculture and Life Sciences
> Texas A&M University, College Station, TX
> Contributor to the Early Career Climate Forum <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.eccforum.org&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=si_RF4BLSzC8NnfJ4AfHqj9C76aUwYUd8ix6cc8REbY&s=pI8sxiZbrN-3mmRLP8tFbrwpvIm1fNwMCbSE6zcLT54&e=>
> www.toni-klemm.de <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toni-2Dklemm.de&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=si_RF4BLSzC8NnfJ4AfHqj9C76aUwYUd8ix6cc8REbY&s=86PmaVyRgv-u29NMJrfYX9GOi8ztQaRjLMOZTcg0gxU&e=> | @toniklemm <https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_toniklemm&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=si_RF4BLSzC8NnfJ4AfHqj9C76aUwYUd8ix6cc8REbY&s=FhFaWU4DtLXbIdMh32IkMIHZW4RFXpXG1WQNLKeju6o&e=>
> 
> 
> 
> 
> 
> 
> 
> 
>> On Oct 30, 2018, at 9:07 PM, Barry Lynn <barry.h.lynn at gmail.com <mailto:barry.h.lynn at gmail.com>> wrote:
>> 
>> Hi:
>> 
>> Just to double check, are you using WRF_NCL resources at all?  If so, you need to go to WRFUserARW.ncl and find the same variable you use to set the font size within and change there.
>> 
>> Barry
>> 
>> On Tue, Oct 30, 2018 at 8:59 PM Toni Klemm <toni-klemm at tamu.edu <mailto:toni-klemm at tamu.edu>> wrote:
>> Hello!
>> 
>> I am creating a panel plot and need to change the title font size because it is too long (see plot attached). 
>> 
>> However, changing the value of tiMainFontHeightF in the script doesn’t change the font height. Is the paneling preventing me from changing the font size, or do I need to add another command to enable it? I checked “Title Resources” (https://www.ncl.ucar.edu/Document/Graphics/Resources/ti.shtml#tiMainFontHeightF <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ncl.ucar.edu_Document_Graphics_Resources_ti.shtml-23tiMainFontHeightF&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=CHBd7SKnQmiBWhh8PZLTZm2AbL5DSJKSfLAfxn8f8KM&s=0i4gV2B5n-IBYFh8DAymuV2lQGw9u8LrA6y8_6AaEmQ&e=>) and “PlotManager” (https://www.ncl.ucar.edu/Document/HLUs/Classes/PlotManager.shtml <https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ncl.ucar.edu_Document_HLUs_Classes_PlotManager.shtml&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=CHBd7SKnQmiBWhh8PZLTZm2AbL5DSJKSfLAfxn8f8KM&s=ILBao45yw862Ny9MemFkSoEpGIpv9oVVera4w8XwiGk&e=>) which sounded like under some circumstances the font size might not be changeable. But I didn’t really understand what it meant or what to do. 
>> 
>> I also included the part of my script about the paneling of the individual plots (4) below. I appreciate any help!
>> 
>> Thank you,
>> Toni
>> 
>> 
>> 
>> ;***********************************************
>> ; panel plots together
>> ;***********************************************
>> 
>> 	print("5 - Create plot matrix")
>> 
>>   pres                 = True
>>   pres at gsnMaximize     = False
>>   pres at gsnPanelRowSpec = True
>>   pres at gsnPanelCenter  = False
>>   pres at gsnFrame        = False
>>   pres at gsnPanelXWhiteSpacePercent	= 10	; horizontal white space between columns in percent
>>   pres at gsnPanelYWhiteSpacePercent	= 5		; vertical white space between rows in percent
>>   pres at gsnPanelMainString = RCP_title[h](0) + " | " + fs_title[i](0) + " | " + variable_title[k](0) + " | " + group_title[l](0) + " | Change from 1981-2010 Avg."
>>   pres at tiMainFontHeightF  = 0.035
>>   pres at tiMainFont         = 21
>> ;  pres at gsnPanelXF  = (/-1,0.6,0.6,0.6/)
>> 
>>   gsn_panel(wks,plot,(/4,1/),pres)		; EP, NP, CP, and SP horizontally next to each other
>> 
>>   frame(wks)
>> 
>> 
>> 
>> Toni Klemm, Ph.D.
>> Postdoctoral Research Associate
>> Department of Ecosystem Science and Management
>> College of Agriculture and Life Sciences
>> Texas A&M University, College Station, TX
>> Contributor to the Early Career Climate Forum <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.eccforum.org&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=CHBd7SKnQmiBWhh8PZLTZm2AbL5DSJKSfLAfxn8f8KM&s=j5D2UldJUUAPfSdcOaBBV-9-leYBh-jeUqtTrYSIOyM&e=>
>> www.toni-klemm.de <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.toni-2Dklemm.de&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=CHBd7SKnQmiBWhh8PZLTZm2AbL5DSJKSfLAfxn8f8KM&s=fXpE5QHeP9BWloElBN050KX34s2ORhRf6D-9Xjp9_Xw&e=> | @toniklemm <https://urldefense.proofpoint.com/v2/url?u=http-3A__twitter.com_toniklemm&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=CHBd7SKnQmiBWhh8PZLTZm2AbL5DSJKSfLAfxn8f8KM&s=khjpKfG6BDLOwqnPmvp9Qkm3XPxMEAyKHffDgHnUmYo&e=>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk <https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=CHBd7SKnQmiBWhh8PZLTZm2AbL5DSJKSfLAfxn8f8KM&s=RZ7pPZ-KxFFuc5PAQb7ig0RaqJ_jGm7Qz3MtNWKJt58&e=>
>> 
>> 
>> -- 
>> Barry H. Lynn, Ph.D
>> Senior Associate Scientist, Lecturer,
>> The Institute of the Earth Science, 
>> The Hebrew University of Jerusalem, 
>> Givat Ram, Jerusalem 91904, Israel 
>> Tel: 972 547 231 170
>> Fax: (972)-25662581
>> 
>> C.E.O, Weather It Is, LTD
>> Weather and Climate Focus
>> http://weather-it-is.com <https://urldefense.proofpoint.com/v2/url?u=http-3A__weather-2Dit-2Dis.com&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=CHBd7SKnQmiBWhh8PZLTZm2AbL5DSJKSfLAfxn8f8KM&s=qhwp0WHqUkwmsLLEqy9DxBra17jo3ZvCjVaZUbp_tPo&e=>
>> Jerusalem, Israel
>> Local: 02 930 9525
>> Cell: 054 7 231 170
>> Int-IS: x972 2 930 9525
>> 
>> <rcp_45_fs_VTYPE_G_decadal_model_comparison_change.png><rcp_45_fs_VTYPE_G_decadal_model_comparison_change.png>
> 
> 
> 
> -- 
> Barry H. Lynn, Ph.D
> Senior Associate Scientist, Lecturer,
> The Institute of the Earth Science, 
> The Hebrew University of Jerusalem, 
> Givat Ram, Jerusalem 91904, Israel 
> Tel: 972 547 231 170
> Fax: (972)-25662581
> 
> C.E.O, Weather It Is, LTD
> Weather and Climate Focus
> http://weather-it-is.com <https://urldefense.proofpoint.com/v2/url?u=http-3A__weather-2Dit-2Dis.com&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=si_RF4BLSzC8NnfJ4AfHqj9C76aUwYUd8ix6cc8REbY&s=3NFCUtBwPzAdD1-QnQhQbvJ4I_3GFSypz5tcOtW3Lkw&e=>
> Jerusalem, Israel
> Local: 02 930 9525
> Cell: 054 7 231 170
> Int-IS: x972 2 930 9525
> 
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk <https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=si_RF4BLSzC8NnfJ4AfHqj9C76aUwYUd8ix6cc8REbY&s=OM6lSHw3dc4M5rWqeeZ5N5jM2So0OgsJ2GUP84QttU4&e=>
> 
> 
> -- 
> Adam Phillips 
> Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
> www.cgd.ucar.edu/staff/asphilli/ <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cgd.ucar.edu_staff_asphilli_&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=si_RF4BLSzC8NnfJ4AfHqj9C76aUwYUd8ix6cc8REbY&s=SRGbM2mYrTCcBXs93rSLp2jBaK1SJgbSIdwYsaAuyPE&e=>   303-497-1726
> 
>  <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cgd.ucar.edu_staff_asphilli&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=WsLJ5ywbW3XnTzqo_ETV62H6s1a5bcGgnrpl7xPRfic&m=si_RF4BLSzC8NnfJ4AfHqj9C76aUwYUd8ix6cc8REbY&s=gJiv72V1ZTMO4W8spwb_fGobkuvHF8kTDWQ46rRTpDk&e=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20181031/9afc424c/attachment.html>


More information about the ncl-talk mailing list