[ncl-talk] Changing title font size of panel plot
Adam Phillips
asphilli at ucar.edu
Wed Oct 31 13:06:00 MDT 2018
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
<http://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnPanelMainFontHeightF>
or
set txFontHeightF
<http://www.ncl.ucar.edu/Document/Graphics/Resources/tx.shtml#txFontHeightF>
(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> 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> 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
>> 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 <http://www.eccforum.org>
>> www.toni-klemm.de | @toniklemm <http://twitter.com/toniklemm>
>>
>>
>>
>>
>>
>>
>>
>>
>> On Oct 30, 2018, at 9:07 PM, Barry Lynn <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> 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
>>> 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
> 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
> 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/20181031/0263eabf/attachment.html>
More information about the ncl-talk
mailing list