[ncl-talk] contour line label format

Wei Huang whuang at univ-wea.com
Fri Aug 21 12:11:37 MDT 2015


Hi, there,

I am doing contour lines, and want to label those lines properly.
I need the line label's to have one decimal, so I set.
res at cnLineLabelFormat      = "%6.1f"
But it seems it did not work well, but only have the integers.

Here is the part of the resource:

   res at cnMinLevelValF            = 1010.0
  res at cnMaxLevelValF            = 1020.0
  res at cnLineLabelInterval     = 1
  res at cnLevelSpacingF           = 0.5
  res at cnLineLabelFormat      = "%6.1f"

What I hope to get the line labels to have:
1015.0, 1015.5, 1016.0
Not (as it happens now):
1015 1015 1016.

Thanks,

Wei Huang
whuang at univ-wea.com




More information about the ncl-talk mailing list