[ncl-talk] About contour line thickness

David Brown dbrown at ucar.edu
Tue Jul 21 20:21:30 MDT 2015


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 at 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 at cnLineThicknessF         = 1e-10
>
>                       res at gsnContourZeroLineThicknessF =10
>
>                       But this  combination fails.
>
>
>> Best
>
> Cheung
>
>
>
>
>
> At 2015-07-21 23:42:36, "Adam Phillips" <asphilli at 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 at 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 at cnLineThicknessF
>>                  res at gsnContourLineThicknessesScale
>>                  res at gsnContourZeroLineThicknessF
>>
>> --
>>
>>  Regards
>>
>>  Cheung
>>
>>
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at 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 at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>


More information about the ncl-talk mailing list