<div dir="ltr"><div><div>HI Matt,<br></div>Thank you for a prompt and precise response. <br></div>Cheers<br>Latif<br><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 7:04 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Latif,<br>
<br>
The callback you're looking for is "particles" and you can specify a<br>
"ptype" argument for specifying the type of particles.  (If you're<br>
using Enzo, this should be the number in the "particle_type" field you<br>
are selecting.)  Note also that annotate_particles accepts a width<br>
argument, in code units, which says how wide the selected region will<br>
be around the center of the slice or the center of the box for<br>
projections.  So if you are using a projection and you want the whole<br>
box, you can do 1.0/pf['unitary'] to get the full domain.<br>
<br>
Here is an example:<br>
<br>
s = SlicePlot(pf, "x", "Density")<br>
s.annotate_particles(1.0/pf['kpc'], p_size = 1.0, ptype = 1)<br>
<br>
which will choose particle_type = =1.<br>
<br>
-Matt<br>
<div><div class="h5"><br>
On Thu, Jul 4, 2013 at 10:20 AM, Latif <<a href="mailto:latifne@gmail.com">latifne@gmail.com</a>> wrote:<br>
> Hi all,<br>
> I want to overplot star particles on density projections/slices. It is<br>
> probably a very simple question but could not figure out how to do it.  Can<br>
> I also get information about their position and velocities as well?<br>
> thanks in advance,<br>
> Cheers<br>
> Latif<br>
><br>
</div></div>> _______________________________________________<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>
_______________________________________________<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>
</blockquote></div><br></div>