<div dir="ltr">Hallo,<div><br></div><div>I have a question,, why the text that I added on top of my polygons hid behind them..</div><div style>can you suggest me why?</div><div><br></div><div style>[SNIP]</div><div style><br>
</div><div><div>ymin = new(3,float)</div><div>  ymax = new(3,float)</div><div>  do i=0,2</div><div>    getvalues plot(i)</div><div>      &quot;trYMinF&quot;: ymin(i)</div><div>      &quot;trYMaxF&quot;: ymax(i)</div><div>
    end getvalues</div><div>  end do</div><div><br></div><div><br></div><div>  xmin = (/1990,2060/)</div><div>  xmax = (/2030,2099/)</div><div><br></div><div>  xbars = (/ (/xmin(0), xmax(0), xmax(0), xmin(0), xmin(0)/), \</div>
<div>             (/xmin(1), xmax(1), xmax(1), xmin(1), xmin(1)/)/)</div><div><br></div><div>  ybars = (/ (/ymin(0),ymin(0),ymax(0),ymax(0),ymin(0)/), \</div><div>             (/ymin(1),ymin(1),ymax(1),ymax(1),ymin(1)/), \</div>
<div>             (/ymin(2),ymin(2),ymax(2),ymax(2),ymin(2)/)/)</div><div><br></div><div><br></div><div>;;;;;; Create the bars and attach to appropriate plot</div><div>  gres             = True</div><div>  gres@gsFillColor = &quot;gray95&quot;</div>
<div><br></div><div>  do i=0,1</div><div>    do j=0,2</div><div>      poly((i*4)+j) = gsn_add_polygon(wks,plot(j),xbars(i,:),ybars(j,:),gres)</div><div>    end do</div><div>  end do</div><div><br></div><div style>; add text =========</div>
<div style><br></div><div><b>  txres                       = True</b></div><div><b>  txres@txPerimOn             = False</b></div><div><b>  txres@txFontHeightF         = 0.0085</b></div><div><b>  txres@txBackgroundFillColor = &quot;White&quot;</b></div>
<div><b>  txres@txPolyDrawOrder       = &quot;PreDraw&quot;</b></div><div><b><br></b></div><div><b>  gsn_text_ndc(wks,&quot;Prob=&quot;+sprintf(&quot;%5.3f&quot;, prob1)+&quot; (&quot;+sprintf(&quot;%5.3f&quot;, prob2)+&quot;), T= &quot;+sprintf(&quot;%5.3f&quot;, rc1*10)+&quot; (&quot;+sprintf(&quot;%5.3f&quot;, rc2*10)+&quot;) ~C~|tval|=&quot;+sprintf(&quot;%5.2f&quot;,abs(rc1@tval))+&quot; (&quot;+sprintf(&quot;%5.2f&quot;,rc2@tval) +&quot;)&quot;,0.235,0.915,txres)</b></div>
<div><br></div><div><br></div><div style>; plot all</div><div style>;===================</div><div style><br></div><div>  attachres1                     = True</div><div>  attachres1@gsnAttachPlotsXAxis = True</div><div>  attachres1@gsnAttachBorderOn   = False</div>
<div>  attachres2                     = True</div><div>  attachres2@gsnAttachPlotsXAxis = True</div><div>  attachres2@gsnAttachBorderOn   = False</div><div><br></div><div>  attachid1  = gsn_attach_plots(plot(0),plot(1:2),attachres1,attachres2)</div>
<div><br></div><div>  pres = False               ; No resources needed</div><div>  maximize_output(wks,pres)  ; Maximize plot on page</div></div><div><br></div></div>