diff --git a/examples/amr_spherical_volume_rendering.py b/examples/amr_spherical_volume_rendering.py index 7ab5292..90ea76b 100644 --- a/examples/amr_spherical_volume_rendering.py +++ b/examples/amr_spherical_volume_rendering.py @@ -122,5 +122,6 @@ def _r_rev(field, data): sg = rc.add_scene(ds, field, no_ghost=True) rc.scene.components[0].sample_factor = 20.0 rc.scene.components[0].cmap_log = False + rc.scene.components[0]._reset_cmap_bounds() rc.run() diff --git a/yt_idv/tests/test_spherical_vol_rendering.py b/yt_idv/tests/test_spherical_vol_rendering.py index 0e18acd..21f9fa2 100644 --- a/yt_idv/tests/test_spherical_vol_rendering.py +++ b/yt_idv/tests/test_spherical_vol_rendering.py @@ -18,6 +18,7 @@ def osmesa_empty_rc(): "partial": { "bbox": np.array([[0.5, 1.0], [0.0, np.pi / 3], [np.pi / 4, np.pi / 2]]), "field": ("index", "r"), + "camera": [-0.5, -1, 2.5], }, "whole": { "bbox": np.array([[0.0, 1.0], [0.0, 2 * np.pi], [0, np.pi]]), @@ -83,6 +84,7 @@ def test_spherical_nprocs(osmesa_empty_rc, image_store, nprocs): osmesa_empty_rc.add_scene(dd, field, no_ghost=True) osmesa_empty_rc.scene.components[0].sample_factor = 20.0 osmesa_empty_rc.scene.components[0].cmap_log = False + osmesa_empty_rc.scene.components[0]._reset_cmap_bounds() cpos = bbox_options[bbox_option].get("camera_position", None) if cpos: osmesa_empty_rc.scene.camera.position = cpos