From 228425fdb926971c914a3e4517a51beb6262eb8f Mon Sep 17 00:00:00 2001 From: Ebag333 Date: Thu, 9 Feb 2017 14:07:37 -0800 Subject: [PATCH] Cast to int so we can compare --- gui/graphFrame.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/graphFrame.py b/gui/graphFrame.py index 8321514fe..e143e12c3 100644 --- a/gui/graphFrame.py +++ b/gui/graphFrame.py @@ -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