(self, event)
| 276 | |
| 277 | @_call_with_reparented_event |
| 278 | def _motion(self, event): |
| 279 | if self.ignore(event): |
| 280 | return |
| 281 | c = self.hovercolor if self.ax.contains(event)[0] else self.color |
| 282 | if not colors.same_color(c, self.ax.get_facecolor()): |
| 283 | self.ax.set_facecolor(c) |
| 284 | if self.drawon: |
| 285 | if self._useblit and self.canvas.supports_blit: |
| 286 | self.ax.draw_artist(self.ax) |
| 287 | self.canvas.blit(self.ax.bbox) |
| 288 | else: |
| 289 | self.canvas.draw() |
| 290 | |
| 291 | def on_clicked(self, func): |
| 292 | """ |
nothing calls this directly
no test coverage detected