Quiver Keys in annotate velocity
Hi, Is that possible to add quiver key in the plot when using the annotate_velocity? Thank you
Hi! I think it might be, but it may require some work. I just checked in the source, and it looks to me like the return value of "axes.quiver" is not stored (it could be, though) so it might be a little tricky. I think this could be done two ways: 1) Access the .axes instance for the plot that has the quiver on it, then manually call quiverkey ( https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.quiverkey.htm... ). This will require some trickery as you'll need to get ahold of the Quiver instance. 2) Add a "add quiverkey" keyword in plot_modifications.py to the QuiverBase object, and if it's true, call the quiverkey function. On Mon, Oct 10, 2022 at 9:45 AM <daniellin456@gmail.com> wrote:
Hi, Is that possible to add quiver key in the plot when using the annotate_velocity?
Thank you _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: matthewturk@gmail.com
participants (2)
-
daniellin456@gmail.com
-
Matthew Turk