Method
__init__
(self, ax, maxt=2, dt=0.02)
Source from the content-addressed store, hash-verified
| 17 | |
| 18 | class 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
Tested by
no test coverage detected