<div dir="ltr">I believe the quick fix, assuming nothing else is explicitly ordered, will be<div><br></div><div>res@mpDrawOrder = &quot;PreDraw&quot;</div><div><br></div><div>If that doesn&#39;t do it, you can poke around with other DrawOrder resources to move things into either &quot;PreDraw&quot;, &quot;Draw&quot;, or &quot;PostDraw&quot; drawing phases.</div>

<div><br></div><div><br></div><div>Kyle</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div>

<div>University of Wisconsin - Madison</div><div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div>
<br><br><div class="gmail_quote">On Mon, Aug 4, 2014 at 3:28 PM, Cathy Smith (NOAA Affiliate) <span dir="ltr">&lt;<a href="mailto:cathy.smith@noaa.gov" target="_blank">cathy.smith@noaa.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi NCLers<br>
I&#39;m having trouble getting a polyline to appear OVER a map with<br>
continents shaded. I have simplified code below which reproduces the<br>
problem.  The code draws a basic map (shading is default) and then a box<br>
on the map using gsn_polyline . You can run code and then look at<br>
<a href="http://fluffy.ps" target="_blank">fluffy.ps</a>. The box just shows up where there is no shading. I verified<br>
in testing that the lines show up as long as they aren&#39;t located where<br>
the shading is. How can I control the order of shading so it is done<br>
before the polylines?<br>
<br>
NCL version is 6.2.0 on a 64 bit linux server.<br>
<br>
Thanks!<br>
Cathy Smith<br>
<br>
<br>
;*;************************************************<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;<br>
load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;<br>
;**************************************************<br>
begin<br>
<br>
   psname=&quot;fluffy&quot;<br>
   wks = gsn_open_wks(&quot;ps&quot;,psname)               ; open workstation<br>
   res            = True                          ; map resources<br>
   res@gsnDraw    = False                         ; don&#39;t draw<br>
   res@gsnFrame   = False                         ; don&#39;t advance frame<br>
   res_lb         = True                          ; map resources<br>
   latmin=41<br>
   latmax=52<br>
   lonmin=235<br>
   lonmax=250<br>
   poly_lat1=43<br>
   poly_lat2=50<br>
   poly_lon1=237<br>
   poly_lon2=247<br>
   res@mpMaxLatF  = latmax                           ; select subregion<br>
   res@mpMinLatF  = latmin<br>
   res@mpMinLonF  = lonmin<br>
   res@mpMaxLonF  = lonmax<br>
   res@mpCenterLonF  = (lonmax+lonmin)/2.<br>
<br>
   map = gsn_csm_map_ce(wks,res)                         ; create map<br>
<br>
   pres                  = True                             ; polyline<br>
resources<br>
   pres@gsLineThicknessF = 2.0                ; line thickness<br>
<br>
<br>
gsn_polyline(wks,map,(/poly_lon1,poly_lon2/),(/poly_lat1,poly_lat1/),pres)<br>
<br>
gsn_polyline(wks,map,(/poly_lon2,poly_lon2/),(/poly_lat1,poly_lat2/),pres)<br>
<br>
gsn_polyline(wks,map,(/poly_lon1,poly_lon2/),(/poly_lat2,poly_lat2/),pres)<br>
<br>
gsn_polyline(wks,map,(/poly_lon1,poly_lon1/),(/poly_lat1,poly_lat2/),pres)<br>
<br>
   draw(map)<br>
;   frame(wks)<br>
<br>
end<br>
<br>
--<br>
----------------------------------------------<br>
NOAA/ESRL PSD and CU CIRES<br>
303-497-6263<br>
<a href="http://www.esrl.noaa.gov/psd/people/cathy.smith/" target="_blank">http://www.esrl.noaa.gov/psd/people/cathy.smith/</a><br>
<br>
Emails about data/webpages may get quicker responses from emailing<br>
<a href="mailto:esrl.psd.data@noaa.gov">esrl.psd.data@noaa.gov</a><br>
<br>
_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
</blockquote></div><br></div>