Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dceb9eb

Browse files
committed
DOC: fix strip_chart example with numpy 1.24
1 parent ecf6e26 commit dceb9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/animation/strip_chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def update(self, y):
3737
t = self.tdata[0] + len(self.tdata) * self.dt
3838

3939
self.tdata.append(t)
40-
self.ydata.append(y)
40+
self.ydata.append(float(y))
4141
self.line.set_data(self.tdata, self.ydata)
4242
return self.line,
4343

0 commit comments

Comments
 (0)