(self, event)
| 221 | func(event) |
| 222 | |
| 223 | def _motion(self, event): |
| 224 | if self.ignore(event): |
| 225 | return |
| 226 | if event.inaxes == self.ax: |
| 227 | c = self.hovercolor |
| 228 | else: |
| 229 | c = self.color |
| 230 | if c != self._lastcolor: |
| 231 | self.ax.set_facecolor(c) |
| 232 | self._lastcolor = c |
| 233 | if self.drawon: |
| 234 | self.ax.figure.canvas.draw() |
| 235 | |
| 236 | def on_clicked(self, func): |
| 237 | """ |
nothing calls this directly
no test coverage detected