controls/DebugVariablePanel/DebugVariableGraphicViewer.py
changeset 1919 ccea0fa6ea91
parent 1878 fb73a6b6622d
child 1973 cc7a46953471
--- a/controls/DebugVariablePanel/DebugVariableGraphicViewer.py	Wed Jan 31 15:25:30 2018 +0100
+++ b/controls/DebugVariablePanel/DebugVariableGraphicViewer.py	Thu Feb 01 14:51:18 2018 +0100
@@ -26,7 +26,7 @@
 from __future__ import absolute_import
 from types import TupleType
 from time import time as gettime
-from distutils.version import LooseVersion
+from cycler import cycler
 
 import numpy
 import wx
@@ -42,10 +42,6 @@
 from controls.DebugVariablePanel.GraphButton import GraphButton
 
 
-if LooseVersion(matplotlib.__version__) >= LooseVersion("1.5.0"):
-    from cycler import cycler
-
-
 # Graph variable display type
 GRAPH_PARALLEL, GRAPH_ORTHOGONAL = range(2)
 
@@ -983,10 +979,7 @@
         return AddText
 
     def SetAxesColor(self, color):
-        if LooseVersion(matplotlib.__version__) >= LooseVersion("1.5.0"):
-            self.Axes.set_prop_cycle(cycler('color', color))
-        else:
-            self.Axes.set_color_cycle(color)
+        self.Axes.set_prop_cycle(cycler('color', color))
 
     def ResetGraphics(self):
         """