Skip to content

Commit 5367a21

Browse files
committed
Fixes #72: QwtScaleWidget AttributeError (maxMajor, maxMinor, stepSize)
1 parent 4eccdf7 commit 5367a21

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Version 0.10.3
44

5+
- [Issue #72](https://github.com/PierreRaybaut/PythonQwt/issues/72) - AttributeError: 'QwtScaleWidget' object has no attribute 'maxMajor' / 'maxMinor' / 'stepSize'
6+
57
- [Issue #76](https://github.com/PierreRaybaut/PythonQwt/issues/76) - [PySide] AttributeError: 'QwtPlotCanvas' object has no attribute 'Sunken'
68

79
- [Issue #63](https://github.com/PierreRaybaut/PythonQwt/issues/71) - TypeError: 'PySide2.QtCore.QRect' object is not subscriptable

qwt/plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ def axisMaxMajor(self, axisId):
585585
:py:meth:`qwt.scale_engine.QwtScaleEngine.divideScale()`
586586
"""
587587
if self.axisValid(axisId):
588-
return self.axisWidget(axisId).maxMajor
588+
return self.__axisData[axisId].maxMajor
589589
else:
590590
return 0
591591

@@ -600,7 +600,7 @@ def axisMaxMinor(self, axisId):
600600
:py:meth:`qwt.scale_engine.QwtScaleEngine.divideScale()`
601601
"""
602602
if self.axisValid(axisId):
603-
return self.axisWidget(axisId).maxMinor
603+
return self.__axisData[axisId].maxMinor
604604
else:
605605
return 0
606606

@@ -641,7 +641,7 @@ def axisStepSize(self, axisId):
641641
:py:meth:`qwt.scale_engine.QwtScaleEngine.divideScale()`
642642
"""
643643
if self.axisValid(axisId):
644-
return self.axisWidget(axisId).stepSize
644+
return self.__axisData[axisId].stepSize
645645
else:
646646
return 0
647647

0 commit comments

Comments
 (0)