Skip to content

Commit 5f47fd4

Browse files
authored
fix bug, skip if hlut not in iw dock (#378)
1 parent c762281 commit 5f47fd4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

fastplotlib/widgets/image.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -814,8 +814,14 @@ def reset_vmin_vmax_frame(self):
814814
ImageGraphic instead of the data in the full data array. For example, if a post-processing
815815
function is used, the range of values in the ImageGraphic can be very different from the
816816
range of values in the full data array.
817+
818+
TODO: We could think of applying the frame_apply funcs to a subsample of the entire array to get a better estimate of vmin vmax?
817819
"""
820+
818821
for subplot in self.gridplot:
822+
if "histogram_lut" not in subplot.docks["right"]:
823+
continue
824+
819825
hlut = subplot.docks["right"]["histogram_lut"]
820826
# set the data using the current image graphic data
821827
hlut.set_data(subplot["image_widget_managed"].data())

0 commit comments

Comments
 (0)