Re: Trouble in Contour Effects

From: Saji Hameed <saji.nh_at_nyahnyahspammersnyahnyah>
Date: Fri Sep 03 2010 - 01:32:29 MDT

You will have to do this in two steps.

1. Plot your data as usual, after setting res@gsnDraw=False, res@gsnFrame
=False
2. Apply settings of interest to the specific contour line that you want

    res2=True
    res2@cnLevelSelectionMode = "ExplicitLevels"
    res2@cnLevels = the_contour_level_of_interest
    res2@cnLineThicknessF=thickness
    res2@cnLineColor = color
    res2@gsnFrame=False
    res2@gsnDraw=False
    second_plot=gsn_csm_contour(wks,data,res2)
    overlay(plot, second_plot)

     draw(plot)
     frame(wks)

Hope it helps,

saji

On Fri, Sep 3, 2010 at 11:14 AM, ChenFeng <fengfengabc003@163.com> wrote:

> Hi, NCL-users,
>
> Does anybody know how to draw an explicit contour line with a user-defined
> thickness value and color?
> I only find the "gsnContourZeroLineThicknessF" to set the thickness of the
> zero contour just as in
> http://www.ncl.ucar.edu/Applications/Scripts/coneff_2.ncl
>
> Thanks a lot and best regards!
>
> Feng Chen
> 2010-09-03
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Sep 3 00:32:34 2010

This archive was generated by hypermail 2.1.8 : Thu Sep 16 2010 - 11:05:25 MDT