summaryrefslogtreecommitdiff
path: root/silx/gui/plot/PlotWindow.py
diff options
context:
space:
mode:
authorAlexandre Marie <alexandre.marie@synchrotron-soleil.fr>2018-12-17 12:28:24 +0100
committerAlexandre Marie <alexandre.marie@synchrotron-soleil.fr>2018-12-17 12:28:24 +0100
commitcebdc9244c019224846cb8d2668080fe386a6adc (patch)
treeaedec55da0f9dd4fc4d6c7eb0f58489a956e2e8c /silx/gui/plot/PlotWindow.py
parent159ef14fb9e198bb0066ea14e6b980f065de63dd (diff)
New upstream version 0.9.0+dfsg
Diffstat (limited to 'silx/gui/plot/PlotWindow.py')
-rw-r--r--silx/gui/plot/PlotWindow.py5
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)