This would change the current data arrays in the image widget. For example if input and mcorr movies are shown for a batch item, "set_data([new_input, new_mcorr])" would change the data arrays shown in the viewer. Useful with DataGrid to display DataFrames and select rows.
Allow this to work as long as:
- The number of data arrays is the same as the current number of data arrays, this corresponds to the Gridplot shape.
- The ndim of the new data arrays matches
Allow set data to take kwargs such as:
reset_frame_index: bool , which sets @current_frame index back to 0 if True
reset_vmin_vmax, True by default.
Also force setting the graphic data for each subplot to make sure they update the current frame.
This would change the current data arrays in the image widget. For example if input and mcorr movies are shown for a batch item, "set_data([new_input, new_mcorr])" would change the data arrays shown in the viewer. Useful with DataGrid to display DataFrames and select rows.
Allow this to work as long as:
Allow set data to take kwargs such as:
reset_frame_index: bool, which sets@current_frameindex back to0ifTruereset_vmin_vmax,Trueby default.Also force setting the graphic data for each subplot to make sure they update the current frame.