BqplotBaseView#

class glue_jupyter.bqplot.common.BqplotBaseView(session, state=None)#

Bases: IPyWidgetView

Attributes Summary

allow_duplicate_data

allow_duplicate_subset

figure_widget

The main figure widget.

is2d

Methods Summary

add_event_callback(callback[, events])

Add a callback function for mouse and keyboard events when the mouse is over the figure.

apply_roi(roi[, use_current])

limits_to_scales(*args)

redraw()

remove_event_callback(callback)

Remove a callback function for mouse and keyboard events.

update_glue_scales(*ignored)

update_x_axislabel(*event)

update_y_axislabel(*event)

Attributes Documentation

allow_duplicate_data = False#
allow_duplicate_subset = False#
figure_widget#
is2d = True#

Methods Documentation

add_event_callback(callback, events=None)#

Add a callback function for mouse and keyboard events when the mouse is over the figure.

Parameters:
callbackfunc

The callback function. This should take a single argument which is a dictionary containing the event details. One of the keys of the dictionary is event which is a string that describes the event (see the events parameter for possible strings). The rest of the dictionary depends on the specific event triggered.

eventslist, optional

The list of events to listen for. The following events are available:

  • 'click'

  • 'dblclick'

  • 'mouseenter'

  • 'mouseleave'

  • 'contextmenu'

  • 'mousemove'

  • 'keydown'

  • 'keyup'

If this parameter is not passed, all events will be listened for.

apply_roi(roi, use_current=False)#
limits_to_scales(*args)#
redraw()#
remove_event_callback(callback)#

Remove a callback function for mouse and keyboard events.

update_glue_scales(*ignored)#
update_x_axislabel(*event)#
update_y_axislabel(*event)#