Skip to content

Commit f55e171

Browse files
authored
Update scale_engine.py
1 parent 98e719b commit f55e171

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

qwt/scale_engine.py

+2
Original file line numberDiff line numberDiff line change
@@ -674,6 +674,8 @@ def autoScale(self, maxNumSteps, x1, x2, stepSize):
674674
linearInterval = linearInterval.limited(LOG_MIN, LOG_MAX)
675675

676676
if linearInterval.maxValue() / linearInterval.minValue() < logBase:
677+
# The min / max interval is too short to be represented as a log scale.
678+
# Set the step to 0, so that a new step is calculated and a linear scale is used.
677679
stepSize = 0.0
678680
return x1, x2, stepSize
679681

0 commit comments

Comments
 (0)