Cast to int so we can compare

This commit is contained in:
Ebag333
2017-02-09 14:07:37 -08:00
parent 9775d1064e
commit 228425fdb9

View File

@@ -53,7 +53,7 @@ class GraphFrame(wx.Frame):
try:
import matplotlib as mpl
if mpl.__version__[0] >= "2":
if int(mpl.__version__[0]) >= 2:
mpl.use('wxagg')
mplImported = True
from matplotlib.patches import Patch
@@ -88,7 +88,7 @@ class GraphFrame(wx.Frame):
mpl.use('wxagg')
graphFrame_enabled = True
if mpl.__version__[0] < "1":
if int(mpl.__version__[0]) < 1:
print("pyfa: Found matplotlib version ", mpl.__version__, " - activating OVER9000 workarounds")
print("pyfa: Recommended minimum matplotlib version is 1.0.0")
self.legendFix = True