Skip to content

Commit

Permalink
magfit: Use wxagg on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
stephendade committed Nov 24, 2024
1 parent c1974ca commit 55e2b1b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion MAVProxy/modules/lib/magfit.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from MAVProxy.modules.lib import wx_processguard
from MAVProxy.modules.lib.wx_loader import wx

import sys, time, os, math, copy
import sys, time, os, math, copy, platform

from pymavlink import mavutil
from pymavlink import mavextra
Expand All @@ -18,6 +18,8 @@
from MAVProxy.modules.lib.multiproc_util import MPDataLogChildTask

import matplotlib
if platform.system() == "Windows":
matplotlib.use('wxagg')
import matplotlib.pyplot as pyplot
import numpy
import datetime
Expand Down

0 comments on commit 55e2b1b

Please sign in to comment.