Re: Using ColorNegDashZeroPosContour

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Thu Nov 05 2009 - 14:31:28 MST

Hi Gina,
> Is this a problem as one resource is a gsn resource and the other is a
> function?

Yes. The ColorNegDashZeroPosContour function modifies the plot _after_
the plot is created (and the resources are applied). To do what you
want, you will have to do it by hand:

res = True
res@cnMonoLineColor = False
res@cnLevelSelectionMode = "ExplicitLevels"
res@cnLevels = ispan(-3,3,1)
res@cnLineColors = (/"black","black","black","red","red","red","red"/)

Good luck,
Adam

Gina Henderson wrote:
> Hi there,
>
> I am using ColorNegDashZeroPosContour to be able to set the contour
> lines in a plot based on positive and negative values. I don't want the
> negative values to be dashed so I set the
> res@gsnContourNegLineDashPattern =0 to make the dash pattern a solid
> line. However, no matter what I do the negative lines are still dashed.
>
> Is this a problem as one resource is a gsn resource and the other is a
> function? How can I alter the dash pattern when using the
> ColorNegDashZeroPosContour function?
>
> Thanks, Gina.
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

-- 
__________________________________________________
Adam Phillips 
asphilli@ucar.edu
National Center for Atmospheric Research   tel: (303) 497-1726
Climate and Global Dynamics Division         fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000    http://www.cgd.ucar.edu/cas/asphilli
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Nov 5 14:31:10 2009

This archive was generated by hypermail 2.1.8 : Fri Nov 06 2009 - 09:15:29 MST