SimpleProfileViewer#
- class glue.viewers.profile.viewer.SimpleProfileViewer(*args, **kwargs)[source]#
Bases:
MatplotlibProfileMixin
,SimpleMatplotlibViewer
Attributes Summary
Return a tuple of layers in this viewer.
Methods Summary
add_data
(data)add_layer
(layer)add_subset
(subset)apply_roi
(roi[, override_mode])This method must be implemented by subclasses
apply_subset_state
(subset_state[, override_mode])cleanup
()close
()draw_legend
(*args)export_as_script
(filename)get_data_layer_artist
([layer, layer_state])Collect the handles and labels from each layer artist.
get_layer_artist
(cls[, layer, layer_state])get_subset_layer_artist
([layer, layer_state])limits_from_mpl
(*args, **kwargs)limits_to_mpl
(*args)notify
(message)redraw
()register_to_hub
(hub)remove_data
(data)remove_layer
(layer)remove_subset
(subset)request_add_layer
(layer)Issue a command to add a layer
unregister
(hub)Default unregistration action.
update_legend
(*args)Update the legend colors and opacity.
update_x_axislabel
(*event)update_x_log
(*args)update_x_ticklabel
(*event)update_y_axislabel
(*event)update_y_log
(*args)update_y_ticklabel
(*event)warn
(message, *args, **kwargs)Attributes Documentation
- LABEL = None#
- allow_duplicate_data = False#
- allow_duplicate_subset = False#
- axes_ratio#
- 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
- session#
Methods Documentation
- add_data(data)#
- add_layer(layer)#
- add_subset(subset)#
- apply_roi(roi, override_mode=None)#
This method must be implemented by subclasses
- apply_subset_state(subset_state, override_mode=None)#
- cleanup()#
- close()#
- draw_legend(*args)#
- export_as_script(filename)#
- get_data_layer_artist(layer=None, layer_state=None)#
- get_handles_legend()#
Collect the handles and labels from each layer artist.
- get_layer_artist(cls, layer=None, layer_state=None)#
- get_subset_layer_artist(layer=None, layer_state=None)#
- limits_from_mpl(*args, **kwargs)#
- limits_to_mpl(*args)#
- notify(message)#
- options_widget()#
- redraw()#
- register_to_hub(hub)#
- remove_data(data)#
- remove_layer(layer)#
- remove_subset(subset)#
- request_add_layer(layer)#
Issue a command to add a layer
- setup_callbacks()#
- unregister(hub)#
Default unregistration action. Calls hub.unsubscribe_all on self
- update_legend(*args)#
Update the legend colors and opacity.
- update_x_axislabel(*event)#
- update_x_log(*args)#
- update_x_ticklabel(*event)#
- update_y_axislabel(*event)#
- update_y_log(*args)#
- update_y_ticklabel(*event)#
- warn(message, *args, **kwargs)#