set_data#
- ImageWidget.set_data(new_data, reset_vmin_vmax=True, reset_indices=True)[source]#
Change data of widget. Note: sliders max currently update only for
txy
andtzxy
data.- Parameters:
new_data (array-like or list of array-like) – The new data to display in the widget
reset_vmin_vmax (bool, default
True
) – reset the vmin vmax levels based on the new datareset_indices (bool, default
True
) – reset the current index for all dimensions to 0
Examples#
ImGUI with ImageWidget