<div dir="ltr"><div><div><div>Hi all,<br></div>Is there any way to annotate particles to the multi-plot porjections/slices? I am using the following recipe from the webpage. <br><br><a href="http://yt-project.org/doc/cookbook/multi_plot_slice_and_proj.py">http://yt-project.org/doc/cookbook/multi_plot_slice_and_proj.py</a><br>
<br></div>thanks in advance,<br><br></div>Cheers<br>Latif<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 9:43 PM, Latif <span dir="ltr"><<a href="mailto:latifne@gmail.com" target="_blank">latifne@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"><div><div>HI Matt,<br></div>Thank you for a prompt and precise response. <br></div>Cheers<span class="HOEnZb"><font color="#888888"><br>
Latif<br><div><br></div></font></span></div><div class="HOEnZb"><div class="h5"><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><br>
On Thu, Jul 4, 2013 at 10:20 AM, Latif <<a href="mailto:latifne@gmail.com" target="_blank">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" 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>
_______________________________________________<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>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>