From dceb9eb1b42040d574acd69b7b72f6f42fd213f9 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Mon, 19 Dec 2022 11:23:59 -0500 Subject: [PATCH] DOC: fix strip_chart example with numpy 1.24 --- examples/animation/strip_chart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/animation/strip_chart.py b/examples/animation/strip_chart.py index f06413c28661..9fab4aa66f12 100644 --- a/examples/animation/strip_chart.py +++ b/examples/animation/strip_chart.py @@ -37,7 +37,7 @@ def update(self, y): t = self.tdata[0] + len(self.tdata) * self.dt self.tdata.append(t) - self.ydata.append(y) + self.ydata.append(float(y)) self.line.set_data(self.tdata, self.ydata) return self.line,