Recuperar los valores seleccionados de un objeto CheckButtons en matplotlib

Tengo dos widgets CheckButtons con 3 elementos cada uno. Me gustaría leer el estado de ambos widgets cuando se selecciona uno de los botones de verificación y luego actualizar el gráfico en consecuencia.

El widget deslizante tiene un.val para devolver el estado de un control deslizante, pero el widget CheckButtons parece un poco más incómodo (¿o me falta algo obvio)?

breve ejemplo:

import matplotlib.pyplot as plt
from matplotlib.widgets import CheckButtons

class Example:

    def updateChart(self, event):
        colour = self.colours.labels # gets labes as text object, is there an easy way of getting the status?
        print colour
        # measurement = measurements.something

    def __init__(self):
        colourax = plt.axes([0.5, 0.4, 0.09, 0.2])
        measurementax = plt.axes([0.5, 0.6, 0.09, 0.2])
        self.colours = CheckButtons(colourax, ('Red', 'Green', 'Blue'), (False, False, False))
        self.measurements = CheckButtons(measurementax, ('1', '2', '3'), (False, False, False))
        self.colours.on_clicked(self.updateChart)
        self.measurements.on_clicked(self.updateChart)

    def run(self):
        plt.show()

ex = Example()
ex.run()

Respuestas a la pregunta(3)

Su respuesta a la pregunta