[yt-users] Issue regarding Volume Rendering

Reju Sam John rejusamjohn at gmail.com
Tue Oct 6 06:43:56 PDT 2015

Hi all,

I am trying to do some volume rendering with the following script.

    tf = yt.ColorTransferFunction((-29, -24))
    tf.add_layers(4, w=0.01)
    cam = ds.camera([5.020844896e-01, 4.934331785e-01, 4.921018057e-01],
[0.0, 0.0, 1.0], (20, 'Mpc'), 640, tf, fields=["density"],
log_fields="False", no_ghost=False)
    image = cam.snapshot(fn="density_vol_"+fn_i+".png")
    cam.save_image(image, clip_ratio=4, transparent=False)

But the problem is that the image saved using cam.save_image() is different
from the one displayed by  cam.show(clip_ratio=4)

Displayed image using cam.show(clip_ratio=4)
Saved image using cam.save_image()

Why this is happening ? How to save the same image as of displayed one?

 Thank you

Reju Sam John

Reju Sam John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20151006/7cc7512c/attachment.htm>

More information about the yt-users mailing list