<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Xiaoming,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">In general, I recommend not using the gsn_csm_streamline_contour_map function, because it&#39;s harder to control the order of everything that gets drawn.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I suggest something like this:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">streamline_plot = gsn_csm_streamline(wks,u,v,stres)</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">contour_plot    = gsn_csm_contour_map(wks,x,cnres)</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"><br></font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">overlay(contour_plot, streamline_plot)</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">draw(contour_plot)</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">frame(wks)</font></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You will need to split up your current &quot;res&quot; resource list to those that contain contour and map resources (cnres), and those that contain just streamline resources (stres).</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Good luck,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><ul><li>call gsn_streamline to generate the streamlines<br></li><li>call gsn_csm_contour_map to generate the contours over a map</li><li>overlay(</li></ul></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 22, 2015 at 7:25 AM, xiaoming Hu <span dir="ltr">&lt;<a href="mailto:yuanfangcan@hotmail.com" target="_blank">yuanfangcan@hotmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Karin<br><br>Thanks a lot.  I added <br><pre><span class="">  res@gsnDraw      = False
  res@gsnFrame     = False
<br></span>before   plot                 = gsn_csm_streamline_contour_map(wks,u,v,x,res)<br><br>and <br></pre>  draw(plot)<br>  frame(wks)<br>after.<br>  <br>But I still do not see the background contour. <br>The interesting thing is that the colour bar for the background contour is drawn, but not the contour itself. <br><br>Thanks!<br>Xiaoming <br><br><br><div><hr>Date: Thu, 22 Jan 2015 13:47:11 +0100<br>From: <a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a><br>To: <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>Subject: Re: [ncl-talk] no background color for        gsn_csm_streamline_contour_map<div><div class="h5"><br><br>
  
    
  
  
    Hi Xiaoming,<br>
    <br>
    you should set <br>
    
    <pre>  res@gsnDraw      = False
  res@gsnFrame     = False

</pre>
    if not set to False, the streamline plot will overwrite the contour
    map.<br>
    <br>
    Bye,<br>
    Karin<br>
    <br>
    <div>Am 22.01.15 um 00:38 schrieb xiaoming
      Hu:<br>
    </div>
    <blockquote>
      
      <div dir="ltr">
        <div style="display:inline-block">
            <span></span>Hello<br>
          I would like to overlay streamline on terrain height using
          gsn_csm_streamline_contour_map.<br>
          But I only get streamline, but no terrain height. See the
          following figure.  <br>
          Anybody knows what is happening? I attached my ncl script. <br>
          <div style="display:inline-block"><img src="cid:part1.01080609.03070809@dkrz.de" height="431" width="271"></div>
            <span><br>
            Thanks a lot <br>
            <br>
            Xiaoming <br>
          </span>
          </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
    </blockquote>
  

<br>_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div></div></div>                                               </div></div>
<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>
<br></blockquote></div><br></div>