diff options
Diffstat (limited to 'silx/gui/plot/items/axis.py')
-rw-r--r-- | silx/gui/plot/items/axis.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/silx/gui/plot/items/axis.py b/silx/gui/plot/items/axis.py index 3d9fe14..8ea5c7a 100644 --- a/silx/gui/plot/items/axis.py +++ b/silx/gui/plot/items/axis.py @@ -27,16 +27,16 @@ __authors__ = ["V. Valls"] __license__ = "MIT" -__date__ = "06/12/2017" +__date__ = "22/11/2018" import datetime as dt +import enum import logging import dateutil.tz from ... import qt -from silx.third_party import enum _logger = logging.getLogger(__name__) @@ -448,6 +448,8 @@ class YAxis(Axis): False for Y axis going from bottom to top """ flag = bool(flag) + if self.isInverted() == flag: + return self._getBackend().setYAxisInverted(flag) self._getPlot()._setDirtyPlot() self.sigInvertedChanged.emit(flag) |