Skip to content

Commit

Permalink
Merge pull request #412 from astrofrog/fix-bitmap-visible
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog authored Dec 1, 2023
2 parents 790d66e + 899265d commit bc5ffdb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions glue_jupyter/bqplot/image/layer_artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bc5ffdb

Please sign in to comment.