MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _unit_change_handler

Method _unit_change_handler

lib/matplotlib/axes/_base.py:2641–2652  ·  view source on GitHub ↗

Process axis units changes: requests updates to data and view limits.

(self, axis_name, event=None)

Source from the content-addressed store, hash-verified

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 """

Callers 1

__init__Method · 0.95

Calls 3

relimMethod · 0.95
recache_alwaysMethod · 0.80

Tested by

no test coverage detected