Hi Christian,<div><br></div><div>I add the sink particles at the end of the rendering by recoloring pixels at their locations. E.g.</div><div><div>vals = cam.snapshot()</div><div>maxv = vals.max()</div><div><div>for k in range(-3,3):  # Make a cross in green</div>
<div>                        (vals[px+k][py])[1] = .9*maxv</div><div>                        (vals[px][py+k])[1] = .9*maxv</div></div><div>where I've calculated the x,y index where a given sink particle is. </div><div>
<br></div><div>Stella</div><div><br></div><div><br></div><br><div class="gmail_quote">On Tue, Oct 30, 2012 at 5:03 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 Christian,<br>
<br>
There is a way to get particles added to a rendering, but right now<br>
it's a bit funny.  Are you interested in textual annotations?  If so,<br>
you may want to try out using matplotlib directly on the image that<br>
comes out of a volume rendering snapshot.  I'm sorry I don't have much<br>
else to offer about this, but if you describe in a bit more detail<br>
what you're looking for maybe there's something in yt that can help.<br>
<br>
-Matt<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Oct 30, 2012 at 8:35 AM, Christian Karch<br>
<<a href="mailto:christian.karch@posteo.de">christian.karch@posteo.de</a>> wrote:<br>
> Hi everyone,<br>
><br>
> is there a simple way to annotate sinkparticles (x, y, z) in the rendering?<br>
> I thought about to define spheres and combine the regions with boolean "or",<br>
> but I have no idea to show density (or another field) and accent the<br>
> sinkparticles. I hope you can help me with this issue.<br>
><br>
> regards<br>
> Christian<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>
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>
</div></div></blockquote></div><br></div>