<div dir="ltr"><div class="gmail_default" style="font-size:small">Geeta,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The &quot;overlay&quot; procedure is for overlaying one plot on another, like overlaying a contour plot on a map plot, or a contour plot on a vector plot, or an XY plot on another XY plot.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">When you call gsn_add_polyxxxx, this is *not* returning a plot.  It is simply returning an identifier that represents the primitives that you just attached to the plot.  You cannot overlay this on a plot, and, you don&#39;t need to because gsn_add_polyxxx actually attaches the primitives to the given plot.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">So, when you call:</div><div class="gmail_default" style="">







<p class="" style="font-size:small"><span class="">        </span>plot_stn@$str$               = <span class="">gsn_add_polymarker</span>(wks,plot_stn,lon(rf0),lat(rf0),res_mark)</p><p class="" style="font-size:small">This is attaching the markers to &quot;plot_stn&quot;, and now all you need to do is draw &quot;plot_stn&quot; and you will see the plot and the markers that were just added.  You need remove the &quot;overlay&quot; call:</p><p class="" style=""><span class="" style="white-space:pre">        </span>plot_stn@$str$               = gsn_add_polymarker(wks,plot_stn,lon(rf0),lat(rf0),res_mark)<br>       draw(plot_stn)<br>       frame(wks)</p><p class="" style="">However, I&#39;m confused by your script, because it appears you are first creating and drawing some filled contours. You then create a new map and attach some markers to it and draw that.  Is this what you are trying to do, or did you want the contours to be over a map, and the markers on top of that?</p><p class="" style="">I&#39;ve attached a modified version of your script that:</p><p class=""></p><ul><li>Calls wrf_map_overlays instead of wrf_overlays, in order to create contours over a map</li><li>Sets the special &quot;PanelPlot&quot; resource to True so wrf_map_overlays doesn&#39;t remove the contours from the map.</li><li>Attaches one marker to the WRF plot (I used some dummy values since I don&#39;t have your data file)</li><li>Draws the final plot.</li></ul>This is mainly to show how to properly add markers to a WRF plot, if that&#39;s what you are trying to do.</div><div class="gmail_default" style=""><br></div><div class="gmail_default" style="">--Mary<br><p class="" style=""><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 2, 2015 at 9:07 AM, Geeta Geeta <span dir="ltr">&lt;<a href="mailto:geetag54@yahoo.com" target="_blank">geetag54@yahoo.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 style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,Sans-Serif;font-size:16px"><div><span>Hi all. <br></span></div><div><span>I have to plotted station rainfall &amp; terain (height) data together. (using two scripts). <br></span></div><div><span>The terain data is plotted using the wrf_map_overlay function. while for stn rainfall another script is being used. i combined the two scripts to see if my purpose is solved. <br></span></div><div dir="ltr"><span>but when I overlay one plot over the other, I am unable to get the two together. <br></span></div><div dir="ltr"><br><span></span></div><br><span></span><div dir="ltr"><span>I have used the overlay function like this. </span></div><div><div> </div><div dir="ltr">   draw(plot_stn)<br>   overlay(plot,plot_stn)<br>   frame(wks)<br>end<br><br><br></div></div><div><div dir="ltr"><span>Pls suggest. Script is attatched. <br></span></div><div dir="ltr"><br></div></div></div></div><br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>