Skip to content

Commit

Permalink
add additional fixes that were lost when rebasing spacetelescope#2537
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Nov 1, 2023
1 parent 4b0aba7 commit c66a232
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions jdaviz/configs/default/plugins/plot_options/plot_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def _update_stretch_histogram(self, msg={}):

@observe('is_active', 'stretch_vmin_value', 'stretch_vmax_value', 'layer_selected',
'stretch_hist_nbins', 'image_contrast_value', 'image_bias_value',
'stretch_curve_visible')
'image_colormap_value', 'stretch_curve_visible')
@skip_if_no_updates_since_last_active()
def _update_stretch_curve(self, msg=None):
mark_label_prefix = "stretch_curve: "
Expand All @@ -697,10 +697,9 @@ def _update_stretch_curve(self, msg=None):

# create the new/updated mark following the colormapping
# procedure in glue's CompositeArray:
interval = ManualInterval(self.stretch_vmin.value, self.stretch_vmax.value)
interval = ManualInterval(self.stretch_vmin_value, self.stretch_vmax_value)
contrast_bias = ContrastBiasStretch(layer.state.contrast, layer.state.bias)
stretch = stretches.members[layer.state.stretch]
layer_cmap = layer.state.cmap

# create a photoshop style "curve" for the stretch function
curve_x = np.linspace(self.stretch_vmin_value, self.stretch_vmax_value, 50)
Expand Down

0 comments on commit c66a232

Please # to comment.