From 29a2a5d2abc6e8c5e13a8d43e811cc9f80d093a9 Mon Sep 17 00:00:00 2001 From: renaudponcelet Date: Wed, 7 Aug 2024 08:14:03 +0200 Subject: [PATCH] Update PyPlot.py (#403) w_xaxis are deprecated (https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.6.0.html) --- roboticstoolbox/backends/PyPlot/PyPlot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roboticstoolbox/backends/PyPlot/PyPlot.py b/roboticstoolbox/backends/PyPlot/PyPlot.py index 055ec0c9..f5149a78 100644 --- a/roboticstoolbox/backends/PyPlot/PyPlot.py +++ b/roboticstoolbox/backends/PyPlot/PyPlot.py @@ -416,9 +416,9 @@ def getframe(self): ) # make the background white, looks better than grey stipple - self.ax.w_xaxis.set_pane_color((1.0, 1.0, 1.0, 1.0)) - self.ax.w_yaxis.set_pane_color((1.0, 1.0, 1.0, 1.0)) - self.ax.w_zaxis.set_pane_color((1.0, 1.0, 1.0, 1.0)) + self.ax.xaxis.set_pane_color((1.0, 1.0, 1.0, 1.0)) + self.ax.yaxis.set_pane_color((1.0, 1.0, 1.0, 1.0)) + self.ax.zaxis.set_pane_color((1.0, 1.0, 1.0, 1.0)) plt.gcf().canvas.draw() # render the frame and save as a PIL image in the list