Allow AxisItem.setScale(None) to retain API backward compatibility.
This commit is contained in:
parent
03fd45c24a
commit
f19df05bdf
@ -293,6 +293,11 @@ class AxisItem(GraphicsWidget):
|
|||||||
the view coordinate system were scaled. By default, the axis scaling is
|
the view coordinate system were scaled. By default, the axis scaling is
|
||||||
1.0.
|
1.0.
|
||||||
"""
|
"""
|
||||||
|
# Deprecated usage, kept for backward compatibility
|
||||||
|
if scale is None:
|
||||||
|
scale = 1.0
|
||||||
|
self.enableAutoSIPrefix(True)
|
||||||
|
|
||||||
if scale != self.scale:
|
if scale != self.scale:
|
||||||
self.scale = scale
|
self.scale = scale
|
||||||
self.setLabel()
|
self.setLabel()
|
||||||
|
Loading…
Reference in New Issue
Block a user