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

Skip to content

Commit e046b10

Browse files
authored
Merge pull request #24774 from tacaswell/fix/doc_build
DOC: fix strip_chart example with numpy 1.24
2 parents ecf6e26 + dceb9eb commit e046b10

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)