顾名思义,title源是用来设置各字符串标题的属性的。
通过NCL官网给出的title详细源信息可以看出,总共可分为三类,即 Main, XAxis, YAxis。(其实算是两类,一个是图的主标题,一个是坐标轴字符串,坐标轴字符串又分为X和Y轴)
Main 和 Axis 两类拥有相同的子源属性。
AngleF 用于控制字符串的旋转角度
ConstantSpacingF 设置字符间距
Direction 控制文本方向 (Down 或 Across)
Font 设置字体
AspectF Color HeightF Quality ThicknessF FuncCode 用于界定不同符号的字符。默认是 ~
Just 设置参考点
On 控制文本开关
OffsetXF/OffsetYF 偏移值
Position 字符串位置 (Left Center Right)
Side 位于参考点Top, Bottom
String 字符串内容
额外源:
tiDeltaF Sets the default offset for all of the titles. 三类共享源。
tiUseMainAttribute
When this boolean resource is set True, the
Title
object copies the value of Main title resources that set most of the
text attributes to the corresponding X-Axis and Y-Axis title
resources. The resources copied include
tiMainFont,
tiMainFontHeightF,
tiMainFontAspectF,
tiMainConstantSpacingF,
tiMainFontThicknessF,
tiMainFuncCode,
tiMainFontColor,
tiMainFont,
tiMainJust, and
tiMainFontQuality.
Default: False