Skip to content

Conversation

@Huibean
Copy link
Member

@Huibean Huibean commented Dec 1, 2024

fix 2D line set_data error in ui update loop
https://matplotlib.org/stable/api/_as_gen/matplotlib.lines.Line2D.html#matplotlib.lines.Line2D.set_data

RuntimeError: x must be a sequence
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.9/site-packages/MAVProxy/modules/lib/wxhorizon_ui.py", line 627, in on_timer
    self.updateAltHistory()
  File "/opt/homebrew/lib/python3.9/site-packages/MAVProxy/modules/lib/wxhorizon_ui.py", line 518, in updateAltHistory
    self.altMarker.set_data([self.leftPos+(self.vertSize/10.0)+0.5,val])
  File "/opt/homebrew/lib/python3.9/site-packages/matplotlib/lines.py", line 665, in set_data
    self.set_xdata(x)
  File "/opt/homebrew/lib/python3.9/site-packages/matplotlib/lines.py", line 1289, in set_xdata
    raise RuntimeError('x must be a sequence')
RuntimeError: x must be a sequence

@peterbarker peterbarker merged commit 50f302c into ArduPilot:master Dec 2, 2024
2 checks passed
@peterbarker
Copy link
Contributor

Merged, thanks!

AviorKreelan pushed a commit to Avior-Labs/MAVProxy that referenced this pull request Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants