draw polylines in panel?

From: astroqing <astroqing_at_nyahnyahspammersnyahnyah>
Date: Sun Nov 04 2012 - 21:57:34 MST

Hi,
I want to draw some additional polylines and some description words in ecah plots in a panel, and each plot has different ploylines and decription words.
I tried with the sentence as follows, but it failed. It didn't draw the ploylines in the plot i want to draw, but it draw outside the plot. Could you help me and tell me how to solve the problem?
 lres = True
 lres@gsLineDashPattern = 2
 lres@gsLineThicknessF = 3.0
 xx1 = (/18.5,36.5,36.5,18.5,18.5/)
 yy1 = (/ 5, 5,75,75, 5/)
 lres@gsLineColor = 3
 gsn_polyline(wks_cl,plot_cl(0), xx1, yy1, lres)
  xx2 = (/22.5,22.5/)
 yy2 = (/75, 5/)
 gsn_polyline(wks_cl,plot_cl(0), xx2, yy2, lres)
 xx3 = (/26.5,26.5/)
 yy3 = (/75, 5/)
 gsn_polyline(wks_cl,plot_cl(0), xx3, yy3, lres)

 tres = True
 tres@txFontHeightF = 0.015
 tres@txFontThicknessF = 4.0

 tres@txFontColor = 3
 gsn_text(wks_cl,plot_cl(0),"A",20.5,50,tres)
 gsn_text(wks_cl,plot_cl(0),"B",24.5,60,tres)
 gsn_text(wks_cl,plot_cl(0),"C",31.5,66,tres)



2012-11-03

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun Nov 4 21:55:42 2012

This archive was generated by hypermail 2.1.8 : Tue Nov 06 2012 - 15:05:49 MST