<div dir="ltr">Hi yt users,<div><br></div><div>Hi there! I'm just starting to use yt to make volume renderings of FLASH simulations. While working through examples, I hit a roadblock, and I've had some difficulty finding good documentation on the what the "Scene.save()" function actually does; specifically, why it does different things on the first and second call. The first example in the user tutorial page for 3D volume rendering (<a href="http://yt-project.org/doc/visualizing/volume_rendering.html">http://yt-project.org/doc/visualizing/volume_rendering.html</a>) looks something like this:<div><br></div><div>...<br></div><div><div><i>sc = yt.create_scene(ds, lens_type='perspective')</i></div><div>...</div><div><i>source = sc[0]</i></div><div><i><span class="gmail-n">source</span><span class="gmail-o">.</span><span class="gmail-n">tfh</span><span class="gmail-o">.</span><span class="gmail-n">set_bounds</span><span class="gmail-p">((</span><span class="gmail-mf">3e-31</span><span class="gmail-p">,</span> <span class="gmail-mf">5e-27</span><span class="gmail-p">))</span></i></div><div><i>...</i></div><div><i>sc.save('rendering.png', sigma_clip=6.0)<br></i></div><div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br></div><div dir="ltr">And, voila, volume rendering saved to png.</div><div dir="ltr"><br></div><div>However, if I naively continue the script to re-render with new settings:</div><div><div><i><span class="gmail-n">source</span><span class="gmail-o">.</span><span class="gmail-n">tfh</span><span class="gmail-o">.</span><span class="gmail-n">set_bounds</span><span class="gmail-p">((</span><span class="gmail-mf">3e-35</span><span class="gmail-p">,</span> <span class="gmail-mf">5e-27</span><span class="gmail-p">))</span></i></div></div><div><i><span class="gmail-p">sc.camera.zoom(2.0)</span></i></div><div><div><i>sc.save('rendering2.png', sigma_clip=6.0)<br></i></div><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div></div></div></div></div></div></div></div></div></div></div><div dir="ltr"><br></div><div>I find that none of my new settings are reflected in "rendering2.png" -- it's just a duplicate of "rendering.png"! But if I start again from scratch with a new scene, the settings take hold. This leaves me (a new user) scratching my head.</div><div><br></div><div>So here is my question: Once you've created and saved a scene once, how do you change scene settings like colormap and camera angle?<br></div><div><br></div><div dir="ltr">Best,</div><div dir="ltr"><br></div><div dir="ltr">Scott</div><div dir="ltr"><br></div><div dir="ltr"><br>Scott Feister, Ph.D.<br>Postdoctoral Researcher, Flash Center for Computational Science<br></div><div>University of Chicago, Department of Astronomy and Astrophysics<br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></div></div></div>