<div dir="ltr">Oh, right, I forgot about that part.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 9, 2015 at 10:16 AM, Thomas Caswell <span dir="ltr"><<a href="mailto:tcaswell@gmail.com" target="_blank">tcaswell@gmail.com</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">I would suggest going with the 'just remove the artist' path here unless there is a serious performance issue.  <div><br></div><div>The internal artist structure of the 3D quiver is effective for getting the lines on the screen, but needs some re-working (it is a collection of line segments, not of arrows, so the arrow tail and the two lines is the arrow head are actually 3 lines in the collection).<div><br></div><div>Tom </div></div></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 9, 2015 at 10:03 AM Benjamin Root <<a href="mailto:ben.v.root@gmail.com" target="_blank">ben.v.root@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Part of the problem with the 3d version of quiver is that it isn't based off of the 2D version of quiver, so there is no "set_UVC" method available. The 3D quiver is just a Line3DCollection object, so you do have access to the set_segments() method, which accepts a MxN(m)x3 array of vertices where M is the number of lines, and N(m) is the number of vertices for line m.<br><br></div>To clear a quiver plot, one could just remove the artist, but that is a bit heavy-handed. I think the set_segments() approach above should be sufficient. Note that if you want to do anything special with the colors or some other property, that might be tricker, but doable.<br><br></div><div>Cheers!<br></div>Ben Root<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 17, 2015 at 4:37 AM, plottingberra <span dir="ltr"><<a href="mailto:isabellahuang7@gmail.com" target="_blank">isabellahuang7@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<br>
I want to create a 3D animation that animates the trajectory of a flying<br>
object. The FuncAnimation object has been really helpful in doing so, but<br>
now I want to plot an arrow (using the Quiver class) depicting the<br>
acceleration vector at the object's position in its path.<br>
<br>
My key problem is that I only want exactly one arrow on the plot at a time.<br>
Currently I am able to create an animated trail of arrows, but I want to<br>
clear the arrows that were plotted before a certain time t. I know that<br>
there exists a method set_UVC that allows for this sort of data updating,<br>
but I cannot get it to work for the 3D case.<br>
<br>
Alternatively, I tried searching for a method that clears the entire quiver<br>
plot (inelegant, but should work for my loop), but was unsuccessful in<br>
finding one that works.<br>
<br>
I'd like to ask, then:<br>
1. Is there a way of making set_UVC work for my 3D case?<br>
2. What is the proper way to clear a quiver plot?<br>
<br>
Thank you so much!<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://matplotlib.1069221.n5.nabble.com/Animating-3D-quiver-plot-in-1-4-3-tp46181.html" rel="noreferrer" target="_blank">http://matplotlib.1069221.n5.nabble.com/Animating-3D-quiver-plot-in-1-4-3-tp46181.html</a><br>
Sent from the matplotlib - users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div><br></div>
_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div>
</div></div></blockquote></div><br></div>