mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-14 12:50:39 +08:00
Clean up old code and add docstrings.
This commit is contained in:
@@ -113,9 +113,6 @@ class Plugin(QtGui.QDialog):
|
||||
self.row += 1
|
||||
return name.replace(' ', '_'), slider
|
||||
|
||||
def redraw(self):
|
||||
self.canvas.draw_idle()
|
||||
|
||||
def closeEvent(self, event):
|
||||
"""Disconnect all artists and events from ImageViewer.
|
||||
|
||||
@@ -175,6 +172,10 @@ class PlotPlugin(Plugin):
|
||||
# Add plot for displaying intensity profile.
|
||||
self.add_plot()
|
||||
|
||||
def redraw(self):
|
||||
"""Redraw plot."""
|
||||
self.canvas.draw_idle()
|
||||
|
||||
def add_plot(self, height=4, width=4):
|
||||
self.canvas = PlotCanvas(self, height, width)
|
||||
self.fig = self.canvas.fig
|
||||
|
||||
Reference in New Issue
Block a user