<div dir="ltr">There is a way to do this in the old infrastructure, which I hacked in.  This recipe shows an example (plotting the time on the VR image):<div><br><div><a href="http://yt-project.org/docs/dev/cookbook/complex_plots.html#volume-rendering-with-annotation">http://yt-project.org/docs/dev/cookbook/complex_plots.html#volume-rendering-with-annotation</a><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 8, 2016 at 12:52 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@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">I don't think so, no. In the new VR infrastructure that will be released in yt 3.3, we have a few annotation functions (annotate_axes, annotate_grids, annotate_mesh_lines), but nothing for text. It also looks like there isn't anything to do this in the old VR infrastructure.<div><br></div><div>Adding a method to yt to do this would likely be a welcome addition, if you'd be interested in working on that.<br><div><br></div><div>For your problem, it should be pretty straightforward to use matplotlib to do this. Take a look at this example:</div><div><br></div><div><a href="https://gist.github.com/anonymous/3ece45a548c4c8d487de" target="_blank">https://gist.github.com/anonymous/3ece45a548c4c8d487de</a><br></div><div><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 8, 2016 at 10:20 AM, Joseph Smidt <span dir="ltr"><<a href="mailto:josephsmidt@gmail.com" target="_blank">josephsmidt@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey everyone,<br>
<br>
If I want to append the redshift on a normal plot I can do so like:<br>
<br>
plot.annotate_timestamp(redshift=True)<br>
<br>
However, If with volume rendering I do something like<br>
<br>
cam = ds.camera(cc, L, W, Npixels, tf)<br>
im = cam.snapshot("my_vr.png", clip_ratio=6.0,transparent=True)<br>
<br>
there seems to be no such intermediate method like method<br>
cam.annotate_timestamp(redshift=True) I can do.  Is there a way to add<br>
the redshift annotation to a volume rendering plot?  Thanks.<br>
<br>
<br>
<br>
--<br>
------------------------------------------------------------------------<br>
Joseph Smidt <<a href="mailto:josephsmidt@gmail.com" target="_blank">josephsmidt@gmail.com</a>><br>
<br>
Theoretical Division<br>
P.O. Box 1663, Mail Stop B283<br>
Los Alamos, NM 87545<br>
Office: <a href="tel:505-665-9752" value="+15056659752" target="_blank">505-665-9752</a><br>
Fax:    <a href="tel:505-667-1931" value="+15056671931" target="_blank">505-667-1931</a><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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div><br></div>
</div></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" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div>Michael Zingale</div><div>Associate Professor</div><div><br></div><div>Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY 11794-3800</div><div><i>phone</i>:  631-632-8225</div><div><i>e-mail</i>: <a href="mailto:Michael.Zingale@stonybrook.edu" target="_blank">Michael.Zingale@stonybrook.edu</a></div><div><i>web</i>: <a href="http://www.astro.sunysb.edu/mzingale" target="_blank">http://www.astro.sunysb.edu/mzingale</a></div><div>github: <a href="http://github.com/zingale" target="_blank">http://github.com/zingale</a></div><div><br></div></div></div></div>
</div>