-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
silx.gui.plot.PlotWidget: Updated plot axes tick labels behavior #4007
Conversation
_logger.warning( | ||
"Cannot disabled axes offsets in %s " % matplotlib.__version__ | ||
) | ||
# Configure axes tick label formatter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is no need for try/execpt
at least from matplotlib >= 1.2.0 which is the minimum version advertised in setup.py
.
If mpl switch automatically for us, it's fine for me. It's anyway better than having the same labels in the axis. |
1274f85
to
2181492
Compare
Added: using the same |
NIce 👍 |
Updated to fix an issue when switching linear/log scale, the "formatter" was not correctly updated (this issue was there before this PR). |
Ready for review |
This PR changes the configuration of matplotlib tick label
ScalarFormatter
to enable offset, scientific notation and math text to format tick labels.The behavior of the formatter has changed over time and here are some examples of the behavior as of today: no offset/scientific notation | scientific notation only around 0 | ofset + scientific notation
closes #3997