Skip to content

Commit

Permalink
Make use of latest improvements to custom stretches in glue-core
Browse files Browse the repository at this point in the history
  • Loading branch information
astrofrog committed Oct 26, 2023
1 parent f8e24b8 commit 2661361
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion glue_jupyter/bqplot/image/layer_artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _update_image(self, force=False, **kwargs):
if force or any(prop in changed for prop in ('v_min', 'v_max', 'contrast',
'bias', 'alpha', 'color_mode',
'cmap', 'color', 'zorder',
'visible', 'stretch',
'visible', 'stretch', 'stretch_parameters',
'bitmap_visible', 'contour_visible')):
self._update_visual_attributes()
if force or 'levels' in changed:
Expand Down
2 changes: 1 addition & 1 deletion glue_jupyter/bqplot/scatter/layer_artist.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def _update_visual_attributes(self, changed, force=False):
self.density_mark.vmax = self.state.cmap_vmax

if force or "stretch" in changed:
self.density_mark.stretch = STRETCHES[self.state.stretch]()
self.density_mark.stretch = self.state.stretch_object

if force or "dpi" in changed:
self.density_mark.dpi = self._viewer_state.dpi
Expand Down

0 comments on commit 2661361

Please sign in to comment.