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

Method update_lim

lib/mpl_toolkits/axisartist/axislines.py:280–285  ·  view source on GitHub ↗
(self, axes)

Source from the content-addressed store, hash-verified

278 super().__init__()
279
280 def update_lim(self, axes):
281 x1, x2 = axes.get_xlim()
282 y1, y2 = axes.get_ylim()
283 if self._old_limits != (x1, x2, y1, y2):
284 self._update_grid(Bbox.from_extents(x1, y1, x2, y2))
285 self._old_limits = (x1, x2, y1, y2)
286
287 def _update_grid(self, bbox):
288 """Cache relevant computations when the axes limits have changed."""

Callers 3

drawMethod · 0.45
get_tightbboxMethod · 0.45
drawMethod · 0.45

Calls 4

_update_gridMethod · 0.95
from_extentsMethod · 0.80
get_xlimMethod · 0.45
get_ylimMethod · 0.45

Tested by

no test coverage detected