<div dir="ltr"><div><div><div>Hi Dave,<br></div>I think you actually can if you are OK with getting a few error messages.. I took animate_1.ncl and added a couple of gsn_add_polymarker calls that would get invoked if a criteria was met. I then deleted the polymarker graphic arrays (poly1/poly2 in my script) each time through the i loop. What this does is "break" the polymarker creation when the criteria isn't met because I am deleting the graphic array that houses the polymarker information before the plot is drawn. You end up getting numerous "warning:TransformPostDraw: tfPolyDrawList element # is invalid" error messages but the markers are drawn when they would be. <br><br></div>See my attached script here. Hope that helps!<br></div>Adam<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 27, 2015 at 11:26 AM, Rick Brownrigg <span dir="ltr"><<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi David,<br><br></div>I don't know definitively, but my guess is that the setvalues approach is not plausible. Setvalues wants to operate on some resource associated with the polymarker, and to the best of my knowledge (and a quick look through the source code), there is no "visibility" type resource available.<br><br></div>Rick<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 26, 2015 at 12:47 PM, David Craig <span dir="ltr"><<a href="mailto:dcdavemail@gmail.com" target="_blank">dcdavemail@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am plotting a sequence of contour maps similar to the example script<br>
animate_1.ncl. The data array for the contours is updated each iteration<br>
using setvalues. I wish to add polymarkers to the maps based on a<br>
condition being true in a particular iteration and remove them if the<br>
condition is not through. Is it possible to do this using setvalues or<br>
should I be redrawing the entire map each iteration??<br>
<br>
thanks in advance<br>
Dave<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>
<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><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888">303-497-1726 </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</div>