Skip to content

Commit 391178b

Browse files
committed
Fixed QwtPlot.canvasMap when axisScaleDiv returns None
1 parent 7d0cc9f commit 391178b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

qwt/plot.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,6 +1461,8 @@ def canvasMap(self, axisId):
14611461

14621462
map_.setTransformation(self.axisScaleEngine(axisId).transformation())
14631463
sd = self.axisScaleDiv(axisId)
1464+
if sd is None:
1465+
return map_
14641466
map_.setScaleInterval(sd.lowerBound(), sd.upperBound())
14651467

14661468
if self.axisEnabled(axisId):

0 commit comments

Comments
 (0)