From 4ce73473c227a4a4e91a1c86205ef2d3dc27ec33 Mon Sep 17 00:00:00 2001 From: cncfanatics Date: Wed, 10 Nov 2010 08:49:04 +0100 Subject: [PATCH] Remove useless import --- gui/graphFrame.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/graphFrame.py b/gui/graphFrame.py index 1db588904..af4414cc9 100644 --- a/gui/graphFrame.py +++ b/gui/graphFrame.py @@ -23,7 +23,6 @@ try: mpl.use('wxagg') from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as Canvas from matplotlib.figure import Figure - import mpl_toolkits.axisartist as AA enabled = True except: print "problems importing matplotlib, continueing without graphs" @@ -45,6 +44,7 @@ class GraphFrame(wx.Frame): self.figure = Figure(figsize=(4, 3)) self.canvas = Canvas(self, -1, self.figure) self.subplot = self.figure.add_subplot(111) + self.subplot.grid(True) self.mainSizer.Add(self.canvas, 0, wx.EXPAND) @@ -126,6 +126,7 @@ class GraphFrame(wx.Frame): x, y = success, status self.subplot.clear() + self.subplot.grid(True) self.subplot.plot(x, y) self.canvas.draw() self.SetStatusText("")