binder

danse.common.plottools.binder

Extension to MPL to support the binding of artists to key/mouse events.

class danse.common.plottools.binder.BindArtist
alt = False
clear(h1, h2, ...)
Remove connections for artists h1, h2, ...

Use clearall() to reset all connections.

clearall()

Clear connections to all artists.

Use clear(h1,h2,...) to reset specific artists.

control = False
dclick_threshhold = 0.25
disconnect()

In case we need to disconnect from the canvas...

events = ['enter', 'leave', 'motion', 'click', 'dclick', 'drag', 'release', 'scroll', 'key', 'keyup']
meta = False
shift = False
trigger()

Trigger a particular event for the artist. Fallback to axes, to figure, and to ‘all’ if the event is not processed.

class danse.common.plottools.binder.Selection

Store and compare selections.

artist = None
prop = {}

Table Of Contents

Previous topic

BaseInteractor

Next topic

canvas

This Page