[yt-users] Plotting velocity vectors

Nathan Goldbaum nathan12343 at gmail.com
Wed Jul 2 08:49:46 PDT 2014


Hi Caroline,

On Wednesday, July 2, 2014, Caroline Van Borm <borm at astro.rug.nl> wrote:

> Hi all,
>
> I made some slices of my density data using pf.h.slice, then used .to_frb
> to get different box widths, and imshow to plot them in a multiplot layout.
> Now I was wondering if there is a way to add velocity vectors on top of
> these slices? It doesn't seem possible to use annotate_velocity with this
> method..


That's right.  You'll need to do what annotate_velocity does by hand.

Using your same FRB, you'll need to create slices of the x and y velocity
fields (assuming you're slicing through the z axis) and then pass these
slices to the matplotlib quiver command.

Nathan


>
> Thanks!
>
> Cheers,
> Caroline
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140702/7accb3f8/attachment.htm>


More information about the yt-users mailing list