From 899265d6743f6ddf511882001aaa0f0b2c556876 Mon Sep 17 00:00:00 2001 From: Thomas Robitaille Date: Thu, 30 Nov 2023 15:24:58 +0000 Subject: [PATCH] Fix support for bitmap_visible in image viewer --- glue_jupyter/bqplot/image/layer_artist.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/glue_jupyter/bqplot/image/layer_artist.py b/glue_jupyter/bqplot/image/layer_artist.py index 5601dc9b..5613cee7 100644 --- a/glue_jupyter/bqplot/image/layer_artist.py +++ b/glue_jupyter/bqplot/image/layer_artist.py @@ -67,6 +67,10 @@ def _update_visual_attributes(self): super()._update_visual_attributes() + if self.state.visible and not self.state.bitmap_visible: + self.composite.set(self.uuid, visible=False) + self.composite_image.invalidate_cache() + was_visible = self.contour_artist.visible self.contour_artist.visible = self.state.visible and self.state.contour_visible if not was_visible and self.contour_artist.visible: