You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am plotting some data with values <1e-8 and customizing the plot axes and labels. When I disable SI prefix just before plotting the data (after other things are set, like axes labels and ranges), then the values on the y-axis are incorrect. The scientific notation suffix e-9 or e-10 is not shown.
The bug is in AxisItem.updateAutoSIPrefix and enableAutoSIPrefix. updateAutoSIPrefix doesn't check whether the attribute autoSIPrefix is True.
Calling enableAutoSIPrefix(False) after label and range are set still sets the value for autoSIPrefixScale. The method generateDrawSpecs doesn't check value of autoSIPrefix and always uses autoSIPrefixScale.
Proposed solution: set autoSIPrefixScale to 1.0 when autoSIPrefix == False.
Short description
I am plotting some data with values <1e-8 and customizing the plot axes and labels. When I disable SI prefix just before plotting the data (after other things are set, like axes labels and ranges), then the values on the y-axis are incorrect. The scientific notation suffix
e-9
ore-10
is not shown.Code to reproduce
Expected behavior
The data is plotted with correct value on the y-axis no matter in which order I call set methods on a
plot
instance.Real behavior
YRange
is set before the SI prefix is disabled, then the data appear wrong again.Tested environment(s)
The text was updated successfully, but these errors were encountered: