Process axis units changes: requests updates to data and view limits.
(self, axis_name, event=None)
| 2639 | return container |
| 2640 | |
| 2641 | def _unit_change_handler(self, axis_name, event=None): |
| 2642 | """ |
| 2643 | Process axis units changes: requests updates to data and view limits. |
| 2644 | """ |
| 2645 | if event is None: # Allow connecting `self._unit_change_handler(name)` |
| 2646 | return functools.partial( |
| 2647 | self._unit_change_handler, axis_name, event=object()) |
| 2648 | _api.check_in_list(self._axis_map, axis_name=axis_name) |
| 2649 | for line in self.lines: |
| 2650 | line.recache_always() |
| 2651 | self.relim() |
| 2652 | self._request_autoscale_view(axis_name) |
| 2653 | |
| 2654 | def relim(self, visible_only=False): |
| 2655 | """ |
no test coverage detected