Called when a pan operation has started. Parameters ---------- x, y : float The mouse coordinates in display coords. button : `.MouseButton` The pressed mouse button. Notes ----- This is intended to be overrid
(self, x, y, button)
| 4496 | self.set_autoscaley_on(False) |
| 4497 | |
| 4498 | def start_pan(self, x, y, button): |
| 4499 | """ |
| 4500 | Called when a pan operation has started. |
| 4501 | |
| 4502 | Parameters |
| 4503 | ---------- |
| 4504 | x, y : float |
| 4505 | The mouse coordinates in display coords. |
| 4506 | button : `.MouseButton` |
| 4507 | The pressed mouse button. |
| 4508 | |
| 4509 | Notes |
| 4510 | ----- |
| 4511 | This is intended to be overridden by new projection types. |
| 4512 | """ |
| 4513 | self._pan_start = types.SimpleNamespace( |
| 4514 | lim=self.viewLim.frozen(), |
| 4515 | trans=self.transData.frozen(), |
| 4516 | trans_inverse=self.transData.inverted().frozen(), |
| 4517 | bbox=self.bbox.frozen(), |
| 4518 | x=x, |
| 4519 | y=y) |
| 4520 | |
| 4521 | def end_pan(self): |
| 4522 | """ |