你已经派生过 gprMax
镜像自地址
https://gitee.com/sunhf/gprMax.git
已同步 2025-08-06 20:46:52 +08:00
Modified setup of matplotlib for Linux and Windows to force using QT5 backend. Problem is that with conda installed qt5/pyqt5 matplotlib still tries to use qt4 backend.
这个提交包含在:
@@ -1,7 +1,12 @@
|
||||
import argparse
|
||||
import os
|
||||
import sys
|
||||
|
||||
import numpy as np
|
||||
import matplotlib
|
||||
# Make sure QT5 is used if not on Mac OS X
|
||||
if sys.platform != 'darwin':
|
||||
matplotlib.use('Qt5Agg')
|
||||
import matplotlib.pyplot as plt
|
||||
import matplotlib.gridspec as gridspec
|
||||
|
||||
|
@@ -22,6 +22,10 @@ import sys
|
||||
|
||||
import h5py
|
||||
import numpy as np
|
||||
import matplotlib
|
||||
# Make sure QT5 is used if not on Mac OS X
|
||||
if sys.platform != 'darwin':
|
||||
matplotlib.use('Qt5Agg')
|
||||
import matplotlib.pyplot as plt
|
||||
import matplotlib.gridspec as gridspec
|
||||
|
||||
|
@@ -22,6 +22,10 @@ import sys
|
||||
|
||||
import h5py
|
||||
import numpy as np
|
||||
import matplotlib
|
||||
# Make sure QT5 is used if not on Mac OS X
|
||||
if sys.platform != 'darwin':
|
||||
matplotlib.use('Qt5Agg')
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from gprMax.exceptions import CmdInputError
|
||||
|
@@ -21,7 +21,10 @@ import sys
|
||||
|
||||
import h5py
|
||||
import numpy as np
|
||||
import matplotlib as mpl
|
||||
import matplotlib
|
||||
# Make sure QT5 is used if not on Mac OS X
|
||||
if sys.platform != 'darwin':
|
||||
matplotlib.use('Qt5Agg')
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from tools.plot_fields import plot_Ascan
|
||||
|
在新工单中引用
屏蔽一个用户