warning:TransformPreDraw: tfPolyDrawList element is invalid

From: Ahmad Farsyud <a.farsyud_at_nyahnyahspammersnyahnyah>
Date: Sun May 26 2013 - 18:23:54 MDT

Hallo NCL,

I tried to overly a polygon (stdev) over my xy-plot.
However, I got this error:
warning:TransformPreDraw: tfPolyDrawList element 0 is invalid

Part of my codes is:

----
    plot(0) = gsn_csm_xy(wks,ispan(1,12,1),sst,sres)
    gsres                   = True                        ; poly res
    gsres@tfPolyDrawOrder   = "Predraw"       ; draw this first
    gsres@gsFillColor       = "SlateBlue"
    time   = fspan(1,12,12)
    do i = 0,11                 ; color chosen
    dummy = gsn_add_polygon (wks,plot(0),time,std(i),gsres)
    end do
----
*PrintVarSummary (sst)*
Variable: sst
Type: float
Total Size: 48 bytes
            12 values
Number of Dimensions: 1
Dimensions and sizes: [12]
Coordinates:
Number Of Attributes: 1
  _FillValue : -9999
(0) 5.597216
(1) 5.774993
(2) 6.604471
(3) 6.991065
(4) 5.922031
(5) 4.974644
(6) 4.189209
(7) 4.474511
(8) 4.086342
(9) 4.424598
(10) 4.903216
(11) 5.270484
*Print (std)*
(0) std
(0) 2.636262
(1) 2.476886
(2) 3.085887
(3) 3.301919
(4) 2.355882
(5) 2.126475
(6) 1.986852
(7) 2.223086
(8) 1.852491
(9) 1.787768
(10) 2.32576
(11) 2.285851
thank you..
Any Idea, I really appreciate it.

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sun May 26 18:24:05 2013

This archive was generated by hypermail 2.1.8 : Thu May 30 2013 - 11:38:10 MDT