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

Method update_position

lib/matplotlib/axis.py:434–442  ·  view source on GitHub ↗

Set the location of tick in data coords with scalar *loc*.

(self, loc)

Source from the content-addressed store, hash-verified

432 self.tick2line.set_marker(mark2)
433
434 def update_position(self, loc):
435 """Set the location of tick in data coords with scalar *loc*."""
436 self.tick1line.set_xdata((loc,))
437 self.tick2line.set_xdata((loc,))
438 self.gridline.set_xdata((loc,))
439 self.label1.set_x(loc)
440 self.label2.set_x(loc)
441 self._loc = loc
442 self.stale = True
443
444 def get_view_interval(self):
445 # docstring inherited

Callers

nothing calls this directly

Calls 2

set_xdataMethod · 0.80
set_xMethod · 0.45

Tested by

no test coverage detected