<div dir="ltr"><div>Hi Andrew,<br><br>Thanks a lot - I got it working now.<br><br></div>-Mike<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Feb 4, 2014 at 12:40 PM, Andrew Myers <span dir="ltr"><<a href="mailto:atmyers2@gmail.com" target="_blank">atmyers2@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">Hi Mike,<div><br></div><div>I think that annotate_velocity should work for axis-aligned slices and projections. If you're doing off-axis, then the velocity and magnetic field callbacks don't work out of the box (last time I checked anyway), but it's still possible to use yt to compute the velocity vectors and manually add them to your projection via matplotlib's quiver command. <a href="http://paste.yt-project.org/show/4272/" target="_blank">Here</a> is a script I wrote that does this for the magnetic field. In the image it produces, the colorscale shows the density-weighted temperature projection and the arrows show the density-weighted mean magnetic field vectors. </div>

<div><br></div><div>Hope this helps,</div><div>Andrew</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Tue, Feb 4, 2014 at 12:42 AM, Mike Butler <span dir="ltr"><<a href="mailto:mbutler.astro@gmail.com" target="_blank">mbutler.astro@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div>Hello,<br><br></div>I was wondering if there is any way in yt to display the weighted average velocity vectors onto a mass-weighted density projection of a small region from one of my Enzo simulations.  As far as I can tell, annotate_velocity only works on slices.  Is there some other way to do it?<br>


<br>Thanks,<br><br>Mike<br></div>
<br></div></div>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>