From 832827bd5a4b2c250cf9d96bf0cf83d5300fd2dc Mon Sep 17 00:00:00 2001 From: tangstad Date: Fri, 21 Apr 2006 14:45:01 +0000 Subject: [PATCH] Removed unused code. --- system/plots.py | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/system/plots.py b/system/plots.py index 4feab57..9c40b77 100644 --- a/system/plots.py +++ b/system/plots.py @@ -9,7 +9,6 @@ from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanva from matplotlib.axes import Subplot from matplotlib.figure import Figure from matplotlib.numerix import arange, sin, pi -from matplotlib.backends.backend_gtk import NavigationToolbar2GTK as NavigationToolbar from matplotlib.widgets import RectangleSelector @@ -176,9 +175,6 @@ class Plot (gtk.Frame): logger.log('debug', 'button pressed in plot') self.mark_active(True) - def get_toolbar(self, window): - return None - def mark_active(self, active): if active: self.set_shadow_type(gtk.SHADOW_IN) @@ -213,8 +209,8 @@ class EmptyView (Plot): self.ebox.hide() Plot.hide(self) + class SinePlot(Plot): - def __init__(self,project): Plot.__init__(self,project) fig = Figure(figsize=(5,4), dpi=72) @@ -226,10 +222,6 @@ class SinePlot(Plot): self.add(self.canvas) self.canvas.show() - def get_toolbar(self, window): - self.toolbar = NavigationToolbar(self.canvas, window) - self.toolbar.set_property('show-arrow', False) - return self.toolbar class ScatterPlot(Plot): def __init__(self,project): @@ -300,10 +292,5 @@ class ScatterPlot(Plot): self.ax.plot(self.xaxis_data,self.yaxis_data,'ob') self.ax.plot(xdata_new,ydata_new,'or') self.canvas.draw() - - def get_toolbar(self, window): - self.toolbar = NavigationToolbar(self.canvas, window) - self.toolbar.set_property('show-arrow', False) - return self.toolbar