diff --git a/skimage/viewer/viewers/core.py b/skimage/viewer/viewers/core.py index f49d4b1a..b4ad4c4d 100644 --- a/skimage/viewer/viewers/core.py +++ b/skimage/viewer/viewers/core.py @@ -124,6 +124,7 @@ class ImageViewer(QtGui.QMainWindow): dock_location = Qt.DockWidgetArea(location) dock = QtGui.QDockWidget() dock.setWidget(plugin) + dock.setWindowTitle(plugin.name) self.addDockWidget(dock_location, dock) horiz = (dock_areas['left'], dock_areas['right']) diff --git a/viewer_examples/plugins/probabilistic_hough.py b/viewer_examples/plugins/probabilistic_hough.py index 027136f9..5564ba9f 100644 --- a/viewer_examples/plugins/probabilistic_hough.py +++ b/viewer_examples/plugins/probabilistic_hough.py @@ -32,6 +32,7 @@ canny_plugin = CannyPlugin() canny_viewer += canny_plugin hough_plugin = OverlayPlugin(image_filter=hough_lines) +hough_plugin.name = 'Hough Lines' hough_plugin += Slider('line length', 0, 100, update_on='release') hough_plugin += Slider('line gap', 0, 20, update_on='release')