[ncl-talk] Histogram Legend without lgLineLabelStrings

Adam Phillips asphilli at ucar.edu
Wed Oct 7 10:22:46 MDT 2020


Hi LSL,
Looking at the documentation:
http://www.ncl.ucar.edu/Document/Graphics/Resources/lg.shtml#lgLabelJust
It looks like lgLabelJust needs to be set to (in your case) "CenterRight".
Adam

On Wed, Oct 7, 2020 at 6:02 AM LSL via ncl-talk <ncl-talk at mailman.ucar.edu>
wrote:

> Thanks for the indication. However, after change from "Right" to "right",
> there is still no legend name with prompt information:
>
> fatal:NhlCvtStringToEnum: Unable to convert string "right" to requested
> type
> warning:Error retrieving resource lgLabelJust from args - Ignoring Arg
> fatal:NhlCvtStringToEnum: Unable to convert string "right" to requested
> type
> warning:Error retrieving resource lgLabelJust from args - Ignoring Arg
> fatal:NhlCvtStringToEnum: Unable to convert string "right" to requested
> type
> warning:Error retrieving resource lgLabelJust from args - Ignoring Arg
>
> LSL
>
> On 2020/10/5 下午10:57, Rick Brownrigg wrote:
>
> Hi,
>
> I believe the strings are case-sensitive; it would be "right" rather than
> "Right".
>
> Rick
>
> On Mon, Oct 5, 2020 at 7:58 AM LSL via ncl-talk <ncl-talk at mailman.ucar.edu>
> wrote:
>
>> Dear NCL community,
>>
>> I have met a problem when plotting density probability. The histogram
>> legend is shown without correct lgLineLabelStrings.
>>
>> Warnings prompted up at the end of the screen after executing the script
>> as follows.
>>
>> fatal:NhlCvtStringToEnum: Unable to convert string "Right" to requested
>> type
>> warning:Error retrieving resource lgLabelJust from args - Ignoring Arg
>> fatal:NhlCvtStringToEnum: Unable to convert string "Right" to requested
>> type
>> warning:Error retrieving resource lgLabelJust from args - Ignoring Arg
>> fatal:NhlCvtStringToEnum: Unable to convert string "Right" to requested
>> type
>> warning:Error retrieving resource lgLabelJust from args - Ignoring Arg
>>
>>
>> The figure and NCL script were attached. Thanks in advance.
>>
>> LSL
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at mailman.ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> https://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at mailman.ucar.edu
> List instructions, subscriber options, unsubscribe:
> https://mailman.ucar.edu/mailman/listinfo/ncl-talk



-- 
Adam Phillips
Associate Scientist,  Climate and Global Dynamics Laboratory, NCAR
www.cgd.ucar.edu/staff/asphilli/   303-497-1726

<http://www.cgd.ucar.edu/staff/asphilli>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20201007/d90621dc/attachment.html>


More information about the ncl-talk mailing list