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