'Call `draw_rubberband` or `remove_rubberband` based on data'

def trigger(self, sender, event, data):

    if (not self.figure.canvas.widgetlock.available(sender)):
        return
    if (data is not None):
        self.draw_rubberband(*data)
    else:
        self.remove_rubberband()
