HistogramViewer

class glue.viewers.histogram.qt.HistogramViewer(session, parent=None, state=None)

Bases: glue.viewers.histogram.viewer.MatplotlibHistogramMixin, glue.viewers.matplotlib.qt.data_viewer.MatplotlibDataViewer

Attributes Summary

LABEL

large_data_size

tools

Methods Summary

addToolBar(self, tb)

add_data(self, data)

add_layer(self, layer)

add_subset(self, subset)

apply_roi(self, roi[, override_mode])

apply_subset_state(self, subset_state[, …])

cleanup(self)

close(self[, warn])

closeEvent(self, event)

dragEnterEvent(self, event)

Accept drag-and-drop of data or subset objects.

dropEvent(self, event)

Accept drag-and-drop of data or subset objects.

export_as_script(self, filename)

get_data_layer_artist(self[, layer, layer_state])

get_layer_artist(self, cls[, layer, layer_state])

get_subset_layer_artist(self[, layer, …])

hide_toolbars(self)

Disable all the toolbars in the viewer.

initialize_toolbar(self)

isVisible(self)

layer_view(self)

limits_from_mpl(self, \*args, \*\*kwargs)

limits_to_mpl(self, \*args)

mdi_wrap(self)

Wrap this object in a GlueMdiSubWindow

mousePressEvent(self, event)

Consume mouse press events, and prevent them from propagating down to the MDI area.

move(self[, x, y])

Move the viewer to a new XY pixel location

notify(self, message)

options_widget(self)

redraw(self)

register_to_hub(self, hub)

remove_data(self, data)

remove_layer(self, layer)

remove_subset(self, subset)

request_add_layer(self, layer)

Issue a command to add a layer

set_focus(self, state)

set_status(self, message)

setup_callbacks(self)

show_toolbars(self)

Re-enable any toolbars that were hidden with hide_toolbars()

unregister(self, hub)

Default unregistration action.

update_viewer_state(rec, context)

update_window_title(self)

update_x_axislabel(self, \*event)

update_x_log(self, \*args)

update_x_ticklabel(self, \*event)

update_y_axislabel(self, \*event)

update_y_log(self, \*args)

update_y_ticklabel(self, \*event)

warn(self, message, \*args, \*\*kwargs)

Attributes Documentation

LABEL = '1D Histogram'
large_data_size = 20000000.0
tools = ['select:xrange']

Methods Documentation

addToolBar(self, tb)
add_data(self, data)
add_layer(self, layer)
add_subset(self, subset)
apply_roi(self, roi, override_mode=None)
apply_subset_state(self, subset_state, override_mode=None)
cleanup(self)
close(self, warn=True)
closeEvent(self, event)
dragEnterEvent(self, event)

Accept drag-and-drop of data or subset objects.

dropEvent(self, event)

Accept drag-and-drop of data or subset objects.

export_as_script(self, filename)
get_data_layer_artist(self, layer=None, layer_state=None)
get_layer_artist(self, cls, layer=None, layer_state=None)
get_subset_layer_artist(self, layer=None, layer_state=None)
hide_toolbars(self)

Disable all the toolbars in the viewer.

This action can be reversed by calling show_toolbars()

initialize_toolbar(self)
isVisible(self)
layer_view(self)
limits_from_mpl(self, *args, **kwargs)
limits_to_mpl(self, *args)
mdi_wrap(self)

Wrap this object in a GlueMdiSubWindow

mousePressEvent(self, event)

Consume mouse press events, and prevent them from propagating down to the MDI area.

move(self, x=None, y=None)

Move the viewer to a new XY pixel location

You can also set the position attribute to a new tuple directly.

Parameters
xint (optional)

New x position

yint (optional)

New y position

notify(self, message)
options_widget(self)
redraw(self)
register_to_hub(self, hub)
remove_data(self, data)
remove_layer(self, layer)
remove_subset(self, subset)
request_add_layer(self, layer)

Issue a command to add a layer

set_focus(self, state)
set_status(self, message)
setup_callbacks(self)
show_toolbars(self)

Re-enable any toolbars that were hidden with hide_toolbars()

Does not re-enable toolbars that were hidden by other means

unregister(self, hub)

Default unregistration action. Calls hub.unsubscribe_all on self

update_viewer_state(rec, context)
update_window_title(self)
update_x_axislabel(self, *event)
update_x_log(self, *args)
update_x_ticklabel(self, *event)
update_y_axislabel(self, *event)
update_y_log(self, *args)
update_y_ticklabel(self, *event)
warn(self, message, *args, **kwargs)