Re: contour plot - HighLabel with value display format

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Mon, 12 Oct 2009 10:08:28 -0600

Hi John,
Slight correction: I pushed the numbers farther to the right
as opposed to centering them underneath the H/L. Remove the
spaces and insert ~H~-10~, which moves the text 10 units to
the left as was described in example 4 from the equations page:

res_at_cnHighLabelString = "H~B~~C~~H-10~$ZDV$~E~"
res_at_cnLowLabelString = "L~B~~C~~H-10~$ZDV$~E~"
You may have to adjust the -10 to suit your needs.
Best regards,
Adam

Adam Phillips wrote:
> Hi John,
> Yes there is. You need to alter the
> cnHighLabelString/cnLowLabelString resources.
> http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnHighLabelString
> http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLowLabelString
>
>
> Assuming your function code has been changed to a : to a ~
> via your .hluresfile, you could do something like this:
>
> res_at_cnHighLabelString = "H~B~~C~ $ZDV$~E~"
> res_at_cnLowLabelString = "L~B~~C~ $ZDV$~E~"
>
> Decoding the HighLabelString: H is the letter to be used,
> ~B~ = use subscript
> ~C~ = insert carriage return
> (Spaces are added to shift the number to the right.)
> $ZDV$ = The high value
> ~E~ = end of subscripting
>
> http://www.ncl.ucar.edu/Document/Graphics/function_code.shtml
>
> Another way to do this is to use the ~H~ and ~V~ function
> codes to drop the numbers down a level and shift them over
> (if necessary). See example 4 here:
> http://www.ncl.ucar.edu/Applications/eqn.shtml#ex4
>
> Good luck,
> Adam
>
> ÇöÁ¾ÈÆ wrote:
>> Dear all,
>>
>> I am trying to draw the surface weather chart with High Low mark.
>>
>> Actaully it works well except the value printing postion for High Low mark.
>>
>> I want to print big High mark and then print the high value at
>> bottom-middle of High mark.
>>
>> it means like the followings.
>>
>> H
>> 1024
>>
>> But current H mark and value like H1024. ( Ofcause value number use
>> smaller font in NCL ploting but still not enough. )
>>
>> Is there anyway to make this ?
>>
>> Best regards,
>>
>> John Hyun
>>
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

-- 
__________________________________________________
Adam Phillips
    asphilli_at_ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
Climate and Global Dynamics Division         fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Oct 12 2009 - 10:08:28 MDT

This archive was generated by hypermail 2.2.0 : Thu Oct 15 2009 - 09:30:48 MDT