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

Method update

galleries/examples/animation/pause_resume.py:52–55  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

50 self.paused = not self.paused
51
52 def update(self, i):
53 self.n0 += i / 100 % 5
54 self.p.set_ydata(self.n0 % 20)
55 return (self.p,)
56
57
58pa = PauseAnimation()

Callers

nothing calls this directly

Calls 1

set_ydataMethod · 0.80

Tested by

no test coverage detected