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

Method update_position

lib/matplotlib/axis.py:495–503  ·  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

493 self.tick2line.set_marker(mark2)
494
495 def update_position(self, loc):
496 """Set the location of tick in data coords with scalar *loc*."""
497 self.tick1line.set_ydata((loc,))
498 self.tick2line.set_ydata((loc,))
499 self.gridline.set_ydata((loc,))
500 self.label1.set_y(loc)
501 self.label2.set_y(loc)
502 self._loc = loc
503 self.stale = True
504
505 def get_view_interval(self):
506 # docstring inherited

Callers

nothing calls this directly

Calls 2

set_ydataMethod · 0.80
set_yMethod · 0.45

Tested by

no test coverage detected