CustomMatplotlibDataViewer#
- class glue_qt.viewers.custom.custom_viewer.CustomMatplotlibDataViewer(*args, **kwargs)[source]#
Bases:
MatplotlibDataViewer
Base Qt widget class for simple custom viewers that use Matplotlib
Attributes Summary
Methods Summary
add_data
(data)For convenience, we set x/y limits from the Matplotlib dataLim box when we add data if and only if we haven't set the x_min and y_min limits to something different from the default 0-1 range.
apply_roi
(roi)This method must be implemented by subclasses
get_layer_artist
(cls[, layer, layer_state])Attributes Documentation
- LABEL = ''#
- tools = ['select:rectangle', 'select:polygon']#
Methods Documentation
- add_data(data)[source]#
For convenience, we set x/y limits from the Matplotlib dataLim box when we add data if and only if we haven’t set the x_min and y_min limits to something different from the default 0-1 range. This way we do not override custom limits set in a setup function but most custom viewers will show data as expected.