[yt-users] Can I annotate the redhsift on a volume rendering plot?

Nathan Goldbaum nathan12343 at gmail.com
Mon Feb 8 09:52:39 PST 2016


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.

Adding a method to yt to do this would likely be a welcome addition, if
you'd be interested in working on that.

For your problem, it should be pretty straightforward to use matplotlib to
do this. Take a look at this example:

https://gist.github.com/anonymous/3ece45a548c4c8d487de


On Mon, Feb 8, 2016 at 10:20 AM, Joseph Smidt <josephsmidt at gmail.com> wrote:

> Hey everyone,
>
> If I want to append the redshift on a normal plot I can do so like:
>
> plot.annotate_timestamp(redshift=True)
>
> However, If with volume rendering I do something like
>
> cam = ds.camera(cc, L, W, Npixels, tf)
> im = cam.snapshot("my_vr.png", clip_ratio=6.0,transparent=True)
>
> there seems to be no such intermediate method like method
> cam.annotate_timestamp(redshift=True) I can do.  Is there a way to add
> the redshift annotation to a volume rendering plot?  Thanks.
>
>
>
> --
> ------------------------------------------------------------------------
> Joseph Smidt <josephsmidt at gmail.com>
>
> Theoretical Division
> P.O. Box 1663, Mail Stop B283
> Los Alamos, NM 87545
> Office: 505-665-9752
> Fax:    505-667-1931
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160208/bc294917/attachment.htm>


More information about the yt-users mailing list