MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / update_position

Method update_position

site-packages/matplotlib/axis.py:506–520  ·  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

504 return l
505
506 def update_position(self, loc):
507 'Set the location of tick in data coords with scalar *loc*'
508 if self.tick1On:
509 self.tick1line.set_xdata((loc,))
510 if self.tick2On:
511 self.tick2line.set_xdata((loc,))
512 if self.gridOn:
513 self.gridline.set_xdata((loc,))
514 if self.label1On:
515 self.label1.set_x(loc)
516 if self.label2On:
517 self.label2.set_x(loc)
518
519 self._loc = loc
520 self.stale = True
521
522 def get_view_interval(self):
523 'return the Interval instance for this axis view limits'

Callers

nothing calls this directly

Calls 2

set_xdataMethod · 0.80
set_xMethod · 0.45

Tested by

no test coverage detected