diff --git a/fastplotlib/widgets/image.py b/fastplotlib/widgets/image.py index 0c978b6b1..8a0c67e03 100644 --- a/fastplotlib/widgets/image.py +++ b/fastplotlib/widgets/image.py @@ -478,7 +478,6 @@ def __init__( self._gridplot: GridPlot = GridPlot(shape=grid_shape, **grid_plot_kwargs) - self.image_graphics = list() for data_ix, (d, subplot) in enumerate(zip(self.data, self.gridplot)): minmax = quick_min_max(self.data[data_ix]) @@ -516,7 +515,6 @@ def __init__( subplot.add_graphic(ig) subplot.name = name subplot.set_title(name) - # self.image_graphics.append(ig) self.gridplot.renderer.add_event_handler(self._set_slider_layout, "resize") @@ -765,8 +763,8 @@ def _vmin_vmax_slider_changed( change: dict ): vmin, vmax = change["new"] - self.image_graphics[data_ix].cmap.vmin = vmin - self.image_graphics[data_ix].cmap.vmax = vmax + self.managed_graphics[data_ix].cmap.vmin = vmin + self.managed_graphics[data_ix].cmap.vmax = vmax def _set_slider_layout(self, *args): w, h = self.gridplot.renderer.logical_size @@ -809,7 +807,7 @@ def reset_vmin_vmax(self): """ Reset the vmin and vmax w.r.t. the currently displayed image(s) """ - for i, ig in enumerate(self.image_graphics): + for i, ig in enumerate(self.managed_graphics): mm = self._get_vmin_vmax_range(ig.data()) if len(self.vmin_vmax_sliders) != 0: