<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">Hi David, thanks, it solves my problem.<br><br>Best<br>Cheung<br><br><br><br><br><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><br><pre><br>At 2015-07-22 10:21:30, "David Brown" <dbrown@ucar.edu> wrote:
>Hi Cheung,
>Try using cnLevelFlags
>(http://www.ncl.ucar.edu/Document/Graphics/Resources/cn.shtml#cnLevelFlags).
>To use it you will need to know which level index represents the 0
>contour level.
> -dave
>
>
>On Tue, Jul 21, 2015 at 7:25 PM, zuibeidemei <zuibeidemei@126.com> wrote:
>> Hi Adam:
>>
>> Thanks for your reply.
>>
>> The disired figure is a contour figure with color
>> filled and only one zero line visible, (cnFillOn =True& cnLinesOn=True)
>>
>> Just setting cnlevels = 0 may hurt the display of the
>> color part.
>>
>> I tried to minimize the cnLineThickness (like 1e-10)
>> and make it unvisible,
>>
>> but maximize the zero line thickness (10), with the
>> following res.
>>
>> res@cnLineThicknessF = 1e-10
>>
>> res@gsnContourZeroLineThicknessF =10
>>
>> But this combination fails.
>>
>>
>> ¡ª
>> Best
>>
>> Cheung
>>
>>
>>
>>
>>
>> At 2015-07-21 23:42:36, "Adam Phillips" <asphilli@ucar.edu> wrote:
>>
>> Hi Cheung,
>> I would recommend setting cnLevelSelectionMode = "ExplicitLevels" and
>> setting cnLevels = 0.
>>
>> See example #4 here:
>> http://www.ncl.ucar.edu/Applications/contourLev.shtml#ex4
>>
>> Hope that helps. If not, please respond to the ncl-talk email list.
>> Adam
>>
>> On Mon, Jul 20, 2015 at 6:35 PM, Cheung <zuibeidemei@126.com> wrote:
>>>
>>> Dear all:
>>>
>>> I'd like plot a contour figure with only a zero line
>>> displayed, and lines of all other contour levels are ignored.
>>>
>>> I tried with the following res with several values
>>> combination but it doesn't work. Can anyone give a help?
>>>
>>> res@cnLineThicknessF
>>> res@gsnContourLineThicknessesScale
>>> res@gsnContourZeroLineThicknessF
>>>
>>> --
>>>
>>> Regards
>>>
>>> Cheung
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk@ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://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
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk@ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
</pre></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>