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

Method __init__

galleries/examples/animation/strip_chart.py:19–28  ·  view source on GitHub ↗
(self, ax, maxt=2, dt=0.02)

Source from the content-addressed store, hash-verified

17
18class Scope:
19 def __init__(self, ax, maxt=2, dt=0.02):
20 self.ax = ax
21 self.dt = dt
22 self.maxt = maxt
23 self.tdata = [0]
24 self.ydata = [0]
25 self.line = Line2D(self.tdata, self.ydata)
26 self.ax.add_line(self.line)
27 self.ax.set_ylim(-.1, 1.1)
28 self.ax.set_xlim(0, self.maxt)
29
30 def update(self, y):
31 lastt = self.tdata[-1]

Callers

nothing calls this directly

Calls 4

Line2DClass · 0.90
add_lineMethod · 0.80
set_ylimMethod · 0.45
set_xlimMethod · 0.45

Tested by

no test coverage detected