From 6086c56289b9bc15c550df6d5946e851e53658aa Mon Sep 17 00:00:00 2001 From: Rhys Mainwaring Date: Thu, 4 Jan 2024 14:40:24 +0000 Subject: [PATCH] horizon: use keyword arg for radius - Required in matplotlib==3.8.0 and later. Signed-off-by: Rhys Mainwaring --- MAVProxy/modules/lib/wxhorizon_ui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MAVProxy/modules/lib/wxhorizon_ui.py b/MAVProxy/modules/lib/wxhorizon_ui.py index 327386938c..a2d11774f9 100644 --- a/MAVProxy/modules/lib/wxhorizon_ui.py +++ b/MAVProxy/modules/lib/wxhorizon_ui.py @@ -173,7 +173,7 @@ def checkReszie(self): def createHeadingPointer(self): '''Creates the pointer for the current heading.''' - self.headingTri = patches.RegularPolygon((0.0,0.80),3,0.05,color='k',zorder=4) + self.headingTri = patches.RegularPolygon((0.0,0.80),3,radius=0.05,color='k',zorder=4) self.axes.add_patch(self.headingTri) self.headingText = self.axes.text(0.0,0.675,'0',color='k',size=self.fontSize,horizontalalignment='center',verticalalignment='center',zorder=4) @@ -184,7 +184,7 @@ def adjustHeadingPointer(self): def createNorthPointer(self): '''Creates the north pointer relative to current heading.''' - self.headingNorthTri = patches.RegularPolygon((0.0,0.80),3,0.05,color='k',zorder=4) + self.headingNorthTri = patches.RegularPolygon((0.0,0.80),3,radius=0.05,color='k',zorder=4) self.axes.add_patch(self.headingNorthTri) self.headingNorthText = self.axes.text(0.0,0.675,'N',color='k',size=self.fontSize,horizontalalignment='center',verticalalignment='center',zorder=4) @@ -434,7 +434,7 @@ def updateWPText(self): def createWPPointer(self): '''Creates the waypoint pointer relative to current heading.''' - self.headingWPTri = patches.RegularPolygon((0.0,0.55),3,0.05,facecolor='lime',zorder=4,ec='k') + self.headingWPTri = patches.RegularPolygon((0.0,0.55),3,radius=0.05,facecolor='lime',zorder=4,ec='k') self.axes.add_patch(self.headingWPTri) self.headingWPText = self.axes.text(0.0,0.45,'1',color='lime',size=self.fontSize,horizontalalignment='center',verticalalignment='center',zorder=4) self.headingWPText.set_path_effects([PathEffects.withStroke(linewidth=1,foreground='k')])