Removed unused code.
This commit is contained in:
parent
95eb78bf0d
commit
832827bd5a
|
@ -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):
|
||||||
|
@ -300,10 +292,5 @@ class ScatterPlot(Plot):
|
||||||
self.ax.plot(self.xaxis_data,self.yaxis_data,'ob')
|
self.ax.plot(self.xaxis_data,self.yaxis_data,'ob')
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in New Issue