Skip to content

Commit

Permalink
fix altMarker set_data error
Browse files Browse the repository at this point in the history
  • Loading branch information
Huibean authored and peterbarker committed Dec 2, 2024
1 parent 888e97f commit 50f302c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MAVProxy/modules/lib/wxhorizon_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ def updateAltHistory(self):
# Display Plot
self.altHistRect.set_x(self.leftPos+(self.vertSize/10.0))
self.altPlot.set_data(x,y)
self.altMarker.set_data(self.leftPos+(self.vertSize/10.0)+0.5,val)
self.altMarker.set_data([self.leftPos+(self.vertSize/10.0)+0.5],[val])
self.altText2.set_position((self.leftPos+(4*self.vertSize/10.0)+0.5,val))
self.altText2.set_size(self.fontSize)
self.altText2.set_text('%.f m' % self.relAlt)
Expand Down

0 comments on commit 50f302c

Please sign in to comment.