QwtPlot.axisMaxMinor and QwtPlot.axisStepSize access their respective attributes from self.axisWidget(axisId). This results in these exceptions:
Traceback (most recent call last):
File "/tmp/example.py", line 13, in <module>
plot.axisMaxMinor(qwt.QwtPlot.xBottom)
File "/opt/conda/envs/bnpython/lib/python3.10/site-packages/qwt/plot.py", line 603, in axisMaxMinor
return self.axisWidget(axisId).maxMinor
AttributeError: 'QwtScaleWidget' object has no attribute 'maxMinor'
Traceback (most recent call last):
File "/tmp/example.py", line 16, in <module>
plot.axisStepSize(qwt.QwtPlot.xBottom)
File "/opt/conda/envs/bnpython/lib/python3.10/site-packages/qwt/plot.py", line 644, in axisStepSize
return self.axisWidget(axisId).stepSize
AttributeError: 'QwtScaleWidget' object has no attribute 'stepSize'
Looks like both methods should access from self.__axisData[axisId] instead.
Hi,
QwtPlot.axisMaxMinor
andQwtPlot.axisStepSize
access their respective attributes fromself.axisWidget(axisId)
. This results in these exceptions:Looks like both methods should access from
self.__axisData[axisId]
instead.Example code to reproduce the exceptions: