[ncl-talk] A question about Panel Title Font Height

Mary Haley haley at ucar.edu
Tue May 30 09:12:58 MDT 2017


Hi Barry,

As I tell most people that are working with the wrf_xxxx plotting
functions, they are really meant to be used in a "black box" fashion,
producing plots customized for a 8.5 x 11  output.  They were never really
intended to be used with paneling and such.

You unfortunately can't modify the size of titles in wrf_xxxx, because they
are hard-coded to be a scaled size based on some base font height size. I
created a trouble ticket to track this issue to see if we can improve this.

Meanwhile, one thing you might try is before calling wrf_contour, set the
gsnCenterString resource to the desired title, and then you can use
gsnStringFontHeightF to control the size. This resource also automatically
centers the title over your plot.

Let ncl-talk know if gsnCenterString doesn't work.

--Mary




On Sun, May 28, 2017 at 12:55 AM, Barry Lynn <barry.h.lynn at gmail.com> wrote:

> and: how do I center these titles....
>
> Thank you for addressing both of my questions.
>
> On Sun, May 28, 2017 at 8:41 AM, Barry Lynn <barry.h.lynn at gmail.com>
> wrote:
>
>> Hi:
>>
>> I have been trying to adjust (shrink a bit) the height of the font on my
>> panel plots (attached).
>>
>> I have tried numerous commands, but none of them have an effect. I have
>> attached the code, and here is where I tried to make changes.
>>
>> Thank you,
>>
>>      ; Overlay contours on a map
>>
>>         ;pltres at NoTitles = True
>>
>>         pltres at CommonTitle = True
>>
>> ;       pltres at PlotTitleHeightF = 0.0008
>>
>> ;       pltres at gsnMainFontHeight = 0.001
>>
>>         pltres at tiMainFontHeightF = 0.01
>>
>> ;       pltres at PlotTitle =  times(itime)
>>
>> ;       pltres at PlotTitle = date + " Ensemble " + i_loop
>>
>>         print("i_loop = " + i_loop)
>>
>>         ii_loop = (i_loop+1)*4-4
>>
>>         print("ii_loop = " + ii_loop)
>>
>>         pltres at PlotTitle = date + " ZDR (all)"
>>
>>         plots(ii_loop) = wrf_map_overlays(a,wks,(/contour/),pltres,mpres)
>>
>>         ii_loop = (i_loop+1)*4-3
>>
>>         pltres at PlotTitle = date + " ZDR (liquid)"
>>
>>         plots(ii_loop) = wrf_map_overlays(a,wks,(/conto
>> ur_s/),pltres,mpres)
>>
>>         ii_loop = (i_loop+1)*4-2
>>
>>         pltres at PlotTitle = date + " ZDR (snow)"
>>
>>         plots(ii_loop) = wrf_map_overlays(a,wks,(/conto
>> ur_l/),pltres,mpres)
>>
>>         ii_loop = (i_loop+1)*4-1
>>
>>         pltres at PlotTitle = date + " ZDR (graupel)"
>>
>> --
>> Barry H. Lynn, Ph.D
>> Senior 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
>> US 914 432 3108 <(914)%20432-3108>
>>
>
>
>
> --
> Barry H. Lynn, Ph.D
> Senior 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
> US 914 432 3108 <(914)%20432-3108>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170530/488e95bd/attachment.html 


More information about the ncl-talk mailing list