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

Michael Zingale michael.zingale at stonybrook.edu
Mon Feb 8 09:54:31 PST 2016


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):

http://yt-project.org/docs/dev/cookbook/complex_plots.html#volume-rendering-with-annotation


On Mon, Feb 8, 2016 at 12:52 PM, Nathan Goldbaum <nathan12343 at gmail.com>
wrote:

> 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
>>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>


-- 
Michael Zingale
Associate Professor

Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY
11794-3800
*phone*:  631-632-8225
*e-mail*: Michael.Zingale at stonybrook.edu
*web*: http://www.astro.sunysb.edu/mzingale
github: http://github.com/zingale
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160208/69c74a54/attachment.html>


More information about the yt-users mailing list