Fix colormap low/high updates

This commit is contained in:
usov_i 2022-12-23 15:26:29 +01:00
parent 5f37e9a57c
commit 0b340d0bb9
2 changed files with 12 additions and 0 deletions

View File

@ -383,6 +383,8 @@ def create():
proj_x_image_glyph.color_mapper.high = new_value
proj_y_image_glyph.color_mapper.high = new_value
_update_proj_plots()
proj_display_max_spinner = Spinner(
low=0 + PROJ_STEP,
value=1,
@ -398,6 +400,8 @@ def create():
proj_x_image_glyph.color_mapper.low = new_value
proj_y_image_glyph.color_mapper.low = new_value
_update_proj_plots()
proj_display_min_spinner = Spinner(
low=0,
high=1 - PROJ_STEP,

View File

@ -681,6 +681,8 @@ def create():
display_min_spinner.high = new_value - STEP
image_glyph.color_mapper.high = new_value
_update_image()
display_max_spinner = Spinner(
low=0 + STEP,
value=1,
@ -695,6 +697,8 @@ def create():
display_max_spinner.low = new_value + STEP
image_glyph.color_mapper.low = new_value
_update_image()
display_min_spinner = Spinner(
low=0,
high=1 - STEP,
@ -728,6 +732,8 @@ def create():
proj_x_image_glyph.color_mapper.high = new_value
proj_y_image_glyph.color_mapper.high = new_value
_update_proj_plots()
proj_display_max_spinner = Spinner(
low=0 + PROJ_STEP,
value=1,
@ -743,6 +749,8 @@ def create():
proj_x_image_glyph.color_mapper.low = new_value
proj_y_image_glyph.color_mapper.low = new_value
_update_proj_plots()
proj_display_min_spinner = Spinner(
low=0,
high=1 - PROJ_STEP,