diff options
Diffstat (limited to 'silx/gui/plot/PlotWindow.py')
-rw-r--r-- | silx/gui/plot/PlotWindow.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/silx/gui/plot/PlotWindow.py b/silx/gui/plot/PlotWindow.py index 459ffdc..23ea399 100644 --- a/silx/gui/plot/PlotWindow.py +++ b/silx/gui/plot/PlotWindow.py @@ -29,7 +29,7 @@ The :class:`PlotWindow` is a subclass of :class:`.PlotWidget`. __authors__ = ["V.A. Sole", "T. Vincent"] __license__ = "MIT" -__date__ = "05/06/2018" +__date__ = "12/10/2018" import collections import logging @@ -439,7 +439,7 @@ class PlotWindow(PlotWidget): # The first created dock widget must be added to a Widget area width = self.centralWidget().width() height = self.centralWidget().height() - if width > (2.0 * height) and width > 1000: + if width > (1.25 * height): area = qt.Qt.RightDockWidgetArea else: area = qt.Qt.BottomDockWidgetArea @@ -520,6 +520,7 @@ class PlotWindow(PlotWidget): dockWidget.setWindowTitle("Curves stats") dockWidget.layout().setContentsMargins(0, 0, 0, 0) self._statsWidget = BasicStatsWidget(parent=self, plot=self) + self._statsWidget.sigVisibilityChanged.connect(self.getStatsAction().setChecked) dockWidget.setWidget(self._statsWidget) dockWidget.hide() self.addTabbedDockWidget(dockWidget) |