[yt-users] text onto 3D image
Stephanie Tonnesen
stonnes at gmail.com
Fri Jul 18 07:41:56 PDT 2014
Hi yt-ers,
I am making individual snapshots of a simulation, using:
>from yt.visualization.volume_rendering.api import ColorTransferFunction
>tf = ColorTransferFunction((-29,-24))
>tf.add_layers(8,w=0.05,colormap="Hue Sat Value 2")
>tf.sample_colormap(-26.5,w=0.02,colormap="Hue Sat Value 2")
>cam = pf.h.camera([0.0,0.0,1.8],[0.0,-1.0,-0.2],4.4,1024,tf)
>im = cam.snapshot('rpsdip_'+sys.argv[1]+'_volumeall.png')
I would like to add a timestamp to the frame (and possibly my name while
I'm at it!). I know how to add text to a plot, but am not sure how to do
it here. Any help is most appreciated!
Thanks,
Stephanie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20140718/b1d576be/attachment.htm>
More information about the yt-users
mailing list