Projects/laydi
Projects
/
laydi
Archived
7
0
Fork 0

Removed unused code.

This commit is contained in:
Truls Alexander Tangstad 2006-04-21 14:45:01 +00:00
parent 95eb78bf0d
commit 832827bd5a
1 changed files with 1 additions and 14 deletions

View File

@ -9,7 +9,6 @@ from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as FigureCanva
from matplotlib.axes import Subplot from matplotlib.axes import Subplot
from matplotlib.figure import Figure from matplotlib.figure import Figure
from matplotlib.numerix import arange, sin, pi from matplotlib.numerix import arange, sin, pi
from matplotlib.backends.backend_gtk import NavigationToolbar2GTK as NavigationToolbar
from matplotlib.widgets import RectangleSelector from matplotlib.widgets import RectangleSelector
@ -176,9 +175,6 @@ class Plot (gtk.Frame):
logger.log('debug', 'button pressed in plot') logger.log('debug', 'button pressed in plot')
self.mark_active(True) self.mark_active(True)
def get_toolbar(self, window):
return None
def mark_active(self, active): def mark_active(self, active):
if active: if active:
self.set_shadow_type(gtk.SHADOW_IN) self.set_shadow_type(gtk.SHADOW_IN)
@ -213,8 +209,8 @@ class EmptyView (Plot):
self.ebox.hide() self.ebox.hide()
Plot.hide(self) Plot.hide(self)
class SinePlot(Plot):
class SinePlot(Plot):
def __init__(self,project): def __init__(self,project):
Plot.__init__(self,project) Plot.__init__(self,project)
fig = Figure(figsize=(5,4), dpi=72) fig = Figure(figsize=(5,4), dpi=72)
@ -226,10 +222,6 @@ class SinePlot(Plot):
self.add(self.canvas) self.add(self.canvas)
self.canvas.show() 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): class ScatterPlot(Plot):
def __init__(self,project): def __init__(self,project):
@ -301,9 +293,4 @@ class ScatterPlot(Plot):
self.ax.plot(xdata_new,ydata_new,'or') self.ax.plot(xdata_new,ydata_new,'or')
self.canvas.draw() self.canvas.draw()
def get_toolbar(self, window):
self.toolbar = NavigationToolbar(self.canvas, window)
self.toolbar.set_property('show-arrow', False)
return self.toolbar