Skip to content

Commit 2223a85

Browse files
authored
Merge pull request #24775 from meeseeksmachine/auto-backport-of-pr-24774-on-v3.6.x
Backport PR #24774 on branch v3.6.x (DOC: fix strip_chart example with numpy 1.24)
2 parents 7d52987 + aea85f7 commit 2223a85

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy