Hi Libby,<br><br>If you use QuiverCallback, which would be p.modify["quiver"], you can specify the fields for the x and y axes in the image plane.  The call is p.modify["quiver"](field1, field2, factor), where factor controls the scaling of the arrows.  If you want to see specifically how p.modify["velocity"] works, check out VelocityCallback in yt/visualization/plot_modifications.py.<br>
<br>Britton<br><br><div class="gmail_quote">On Mon, Feb 21, 2011 at 3:12 PM, Elizabeth Harper-Clark <span dir="ltr"><<a href="mailto:h-clark@astro.utoronto.ca">h-clark@astro.utoronto.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi all,<br><br>I would like to plot radiation pressure vectors in the style of p.modify["velocity"](). Now, my radiation pressure acceleration is in my data as three baryon fields (they appear in pf.h.field_list) : RadAccel1, RadAccel2, RadAccel3 for the three spacial dimensions.<br>

<br>Now I am embarrassed to admit I have not done much yt development in the past so I was hoping someone more familiar with the code could point me in the direction of where I can add code for this? I am hoping it will be as simple as finding all the places code exists for p.modify["velocity"]() and copy and paste it changing the fields used to the radiation pressure ones. Will it be? Where is the code for p.modify["velocity"]()? Are there any tricky bits I should be aware of?<br>

<br>Many thanks,<br><br>Libby<br clear="all"><font color="#888888"><br>-- <br>Elizabeth Harper-Clark MA MSci<br>PhD Candidate, Canadian Institute for Theoretical Astrophysics, UofT<br>Sciences and Engineering Coordinator, Teaching Assistants' Training Program, UofT<br>

<br><a href="http://www.astro.utoronto.ca/%7Eh-clark" target="_blank">www.astro.utoronto.ca/~h-clark</a><br><a href="mailto:h-clark@cita.utoronto.ca" target="_blank">h-clark@cita.utoronto.ca</a><br>Astronomy office phone: <a href="tel:%2B1-416-978-5759" target="_blank">+1-416-978-5759</a><br>


</font><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>