Add polyline in gsn_csm_xy2.

From: Wang, Yi <yi.wang_at_nyahnyahspammersnyahnyah>
Date: Fri, 28 Mar 2008 12:47:10 -0700

Hi Folks:

I wonder how to specify which Y-axis to use when adding polyline in
gsn_csm_xy2 function. See below:

  res1_at_tiYAxisString = "NOV-APR Climatology"

  plot(mm) = gsn_csm_xy2(wks,idate,clm_plot(0,:),clm_plot1(0,:),res1,res2)

 gsres1 = True ; poly res
 gsres1_at_gsFillColor = "blue" ; color chosen
 dummy1(mm) = gsn_add_polygon (wks,plot(mm),xp9,yp9,gsres1)

 gsres = True ; now draw
significance lines
 xpm = new( (/2/), float )
 ypm = new( (/2/), float )
 xpm = (/1.,96./)
 daym = clm_mean
 ypm = (/daym,daym/)
 gsres_at_gsLineColor = "brown"
 gsres_at_gsLineThicknessF = 3.

 dummy0(mm) = gsn_add_polyline(wks,plot(mm),xpm,ypm,gsres)

My dummy0 seems to follow the left Y-axis, rather than the right Y-axis,
which I prefer.

Thanks in advance,

Yi Wang, PhD
Pacific Northwest National Lab

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Mar 28 2008 - 13:47:10 MDT

This archive was generated by hypermail 2.2.0 : Mon Mar 31 2008 - 09:11:46 MDT