Removed unused code.
This commit is contained in:
		| @@ -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 | ||||
|  | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user