<div dir="ltr"><div><div>Hi,<br><br></div>It looks like perhaps you flipped the X and Y axes on the 8th box (?)<br><br></div>Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 26, 2016 at 6:33 AM, Beata Szabo <span dir="ltr">&lt;<a href="mailto:szabo.b@czechglobe.cz" target="_blank">szabo.b@czechglobe.cz</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear All,<br>
<br>
I intend to denote eight subregions in a European map by gsn_add_polyline<br>
function. I tried to carry out it by the following way:<br>
<br>
<br>
  ;-- create points for box<br>
;*****************************<wbr>*******************<br>
<br>
  Â ybi = (/ 59.0, 59.0, 50.0,  50.0,  59.0/)<br>
  Â xbi = (/-10.0,  2.0,  2.0, -10.0, -10.0/)<br>
<br>
  Â yip = (/ 44.0, 44.0, 36.0,  36.0,  44.0/)<br>
  Â xip = (/-10.0,  3.0,  3.0, -10.0, -10.0/)<br>
<br>
  Â yfr = (/ 50.0, 50.0, 44.0,  44.0,  50.0/)<br>
  Â xfr = (/ -5.0,  5.0,  5.0,  -5.0,  -5.0/)<br>
<br>
  Â yme = (/ 55.0, 55.0, 48.0,  48.0,  55.0/)<br>
  Â xme = (/  2.0, 16.0, 16.0,  Â 2.0,  Â 2.0/)<br>
<br>
  Â ysc = (/ 70.0, 70.0, 55.0,  55.0,  70.0/)<br>
  Â xsc = (/  5.0, 30.0, 30.0,  Â 5.0,  Â 5.0/)<br>
<br>
  Â yal = (/ 48.0, 48.0, 44.0,  44.0,  48.0/)<br>
  Â xal = (/  5.0, 15.0, 15.0,  Â 5.0,  Â 5.0/)<br>
<br>
  Â ymd = (/ 44.0, 44.0, 36.0,  36.0,  44.0/)<br>
  Â xmd = (/  3.0, 25.0, 25.0,  Â 3.0,  Â 3.0/)<br>
<br>
  Â xea = (/ 55.0, 55.0, 44.0,  44.0,  55.0/)<br>
  Â yea = (/ 16.0, 30.0, 30.0,  16.0,  16.0/)<br>
<br>
; add the boxes<br>
;*****************************<wbr>*******************<br>
  resp  Â  Â  Â  Â  Â  Â  Â  Â  = True  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  ; polyline mods desired<br>
  resp@gsLineColor  Â  Â  = &quot;black&quot;  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â ; color of lines<br>
  resp@gsLineThicknessF = 5.0  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â  Â ; thickness of lines<br>
<br>
<br>
; create array of dummy graphic variables. This is required, b/c each line<br>
; must be associated with a unique dummy variable.<br>
<br>
 dumbi = new(4,graphic)<br>
  dumip = new(4,graphic)<br>
  dumfr = new(4,graphic)<br>
  dumme = new(4,graphic)<br>
  dumsc = new(4,graphic)<br>
  dumal = new(4,graphic)<br>
  dummd = new(4,graphic)<br>
  dumea = new(4,graphic)<br>
<br>
; draw each line separately. Each line must contain two points.<br>
  do i = 0 , 3<br>
  Â  dumbi(i)=gsn_add_polyline(wks,<wbr>plot,xbi(i:i+1),ybi(i:i+1),<wbr>resp)<br>
  Â  dumip(i)=gsn_add_polyline(wks,<wbr>plot,xip(i:i+1),yip(i:i+1),<wbr>resp)<br>
  Â  dumfr(i)=gsn_add_polyline(wks,<wbr>plot,xfr(i:i+1),yfr(i:i+1),<wbr>resp)<br>
  Â  dumme(i)=gsn_add_polyline(wks,<wbr>plot,xme(i:i+1),yme(i:i+1),<wbr>resp)<br>
  Â  dumsc(i)=gsn_add_polyline(wks,<wbr>plot,xsc(i:i+1),ysc(i:i+1),<wbr>resp)<br>
  Â  dumal(i)=gsn_add_polyline(wks,<wbr>plot,xal(i:i+1),yal(i:i+1),<wbr>resp)<br>
  Â  dummd(i)=gsn_add_polyline(wks,<wbr>plot,xmd(i:i+1),ymd(i:i+1),<wbr>resp)<br>
  Â  dumea(i)=gsn_add_polyline(wks,<wbr>plot,xea(i:i+1),yea(i:i+1),<wbr>resp)<br>
<br>
  end do<br>
<br>
On the resulted map the first seven boxes are presented but the last one<br>
(xea, yea) is missing (the map is attached). I do not understand why. Can<br>
someone inform me what I did wrong and how I should solve this issue?<br>
<br>
Thank you for your help in advance!<br>
Beata<br>
<br>
Dr. Beata Szabo-Takacs<br>
Global Change Research Institute CAS<br>
BÄ›lidla 986/4a<br>
60300 Brno<br>
Czech Republic<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>