set_data#

ImageWidget.set_data(new_data, reset_vmin_vmax=True, reset_indices=True)[source]#

Change the data displayed in the widget.

Parameters:
  • new_data (np.ndarray | list[np.ndarray]) – the new data, one array per subplot, each with the same number of dims as the array it replaces

  • reset_vmin_vmax (bool, default True) – reset the vmin, vmax using the new data

  • reset_indices (bool, default True) – reset the current index of every slider dim to 0

Examples#

ImGUI with ImageWidget

ImGUI with ImageWidget