Skip to content

Commit fff8d4c

Browse files
committed
Ensure value is converted to float in QwtLogTransform.bounded for proper bounding
1 parent 50f85ae commit fff8d4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qwt/transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def bounded(self, value):
169169
:param float value: Value to be bounded
170170
:return: Value modified
171171
"""
172-
return max(self.LogMin, min(value, self.LogMax))
172+
return max(self.LogMin, min(float(value), self.LogMax))
173173

174174
def transform(self, value):
175175
"""

0 commit comments

Comments
 (0)