[ncl-talk] About modifying the font of UnitLable and TimeLabel
Rick Brownrigg
brownrig at ucar.edu
Thu Feb 11 11:08:12 MST 2016
Hi,
The "@" is notation for adding or setting "attributes" to a variable. A
variable has a type and a value, but can also have associated an arbitrary
number of attributes, that in turn have type and value. More specifically,
it is an idiom in NCL for setting various graphical parameters to be passed
into functions that generate plots. Attributes in that context are often
referred to as "resources".
The specific resources you mention look like they are specific to WRF
plotting routines. They are found in the script you must have included in
your script:
$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl
I don't know for certain, but from a casual glance at that code, it looks
like you might be able to control font height by adding one or more of the
following resources:
FontHeightF
txFontHeightF
lbFontHeightF
The values these take are in NDC coordinates, where NDC space ranges from 0
to 1 along the longest dimension of your plot. So small values, on the
order of 0.01, etc, are appropriate.
Hope that helps...
Rick
On Thu, Feb 11, 2016 at 1:25 AM, Tao Lu <hakufu.asano at gmail.com> wrote:
> Dear NCL
>
> When plot some graph using NCL, I found the command line :
> res at TimeLabel = time(it) ; time(it) is like 2016-02-11_09:00:00
> res at UnitLabel= "m/h"
>
> But I could find the sources of TimeLable and UnitLable and do not know
> how to change the font size of those labels.
> And I also do not know the meaning of @ in the above lines.
>
> Please help me.
>
> --
> ******************************************************
> 盧 涛 (ル タオ) 修士課程1年
>
> 〒112-8551 東京都文京区春日1-13-27
>
> 中央大学理工学研究科都市環境学専攻
>
> 河川・水文研究室(山田正教授)
>
>
> TEL: 03-3817-3406; Phone: 070-2188-7509
> Email1: hakufu.asano at gmail.com <mail%3Amet.yamos at gmail.com>
> Email2: lutao at civil.chuo-u.ac.jp <mail%3Ayamoto at civil.chuo-u.ac.jp>
> *******************************************************
> ******************************************************
> Tao Lu (M. Eng)
> Laboratory of River Engineering and Hydrology,
> Dept. of Civil and Environmental Engineering,
> Graduate School of Science and Engineering,
> Chuo University
>
> 1-13-27,Kasuga,Bunkyo-ku,Tokyo
> 112-8551, Japan
> TEL: 03-3817-1805; Phone: 070-2188-7509
> Email1: hakufu.asano at gmail.com <mail%3Amet.yamos at gmail.com>
> Email2: lutao at civil.chuo-u.ac.jp <mail%3Ayamoto at civil.chuo-u.ac.jp>
> *****************************************************
>
> _______________________________________________
> 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/20160211/c29c514b/attachment.html
More information about the ncl-talk
mailing list