Skip to content

Add set_data() to ImageWidget  #190

@kushalkolar

Description

@kushalkolar

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:

  1. The number of data arrays is the same as the current number of data arrays, this corresponds to the Gridplot shape.
  2. 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions