Viewer#
- class glue.viewers.common.viewer.Viewer(session, state=None)#
Bases:
BaseViewerA viewer class that uses a state class to represent the overall viewer state, and uses layer artists and state classes to handle each dataset and subset in the data viewer.
Attributes Summary
Return a tuple of layers in this viewer.
Methods Summary
add_data(data)add_subset(subset)cleanup()draw_legend(*args)export_as_script(filename)get_data_layer_artist([layer, layer_state])get_layer_artist(cls[, layer, layer_state])get_subset_layer_artist([layer, layer_state])register_to_hub(hub)remove_data(data)remove_layer(layer)remove_subset(subset)warn(message, *args, **kwargs)Attributes Documentation
- allow_duplicate_data = False#
- allow_duplicate_subset = False#
- large_data_size = None#
- layers#
Return a tuple of layers in this viewer.
A layer is a visual representation of a dataset or subset within the viewer
Methods Documentation
- add_data(data)#
- add_subset(subset)#
- cleanup()#
- draw_legend(*args)#
- export_as_script(filename)#
- get_data_layer_artist(layer=None, layer_state=None)#
- get_layer_artist(cls, layer=None, layer_state=None)#
- get_subset_layer_artist(layer=None, layer_state=None)#
- options_widget()#
- register_to_hub(hub)#
- remove_data(data)#
- remove_layer(layer)#
- remove_subset(subset)#
- warn(message, *args, **kwargs)#