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 Dec 4, 2024
1 parent 1acf5e5 commit 02d9f7e
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 02d9f7e

Please sign in to comment.