Title: set_useOffset(False) is not working · Issue #16232 · matplotlib/matplotlib · GitHub
Open Graph Title: set_useOffset(False) is not working · Issue #16232 · matplotlib/matplotlib
X Title: set_useOffset(False) is not working · Issue #16232 · matplotlib/matplotlib
Description: Hi, I try to disable the offset computed to label the axes in the plot. It looks like the global or local set of useOffset is just ignored. Code for reproduction import matplotlib import matplotlib.pyplot as plt from mpl_toolkits.axisart...
Open Graph Description: Hi, I try to disable the offset computed to label the axes in the plot. It looks like the global or local set of useOffset is just ignored. Code for reproduction import matplotlib import matplotlib...
X Description: Hi, I try to disable the offset computed to label the axes in the plot. It looks like the global or local set of useOffset is just ignored. Code for reproduction import matplotlib import matplotlib...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/16232
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"set_useOffset(False) is not working","articleBody":"Hi,\r\n\r\nI try to disable the offset computed to label the axes in the plot.\r\n\r\nIt looks like the global or local set of `useOffset` is just ignored.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport matplotlib\r\nimport matplotlib.pyplot as plt\r\nfrom mpl_toolkits.axisartist.axislines import Subplot\r\n\r\n# Disable it globally\r\nmatplotlib.rcParams[\"axes.formatter.useoffset\"] = False\r\n\r\nfig = plt.figure(figsize=(3, 3))\r\n\r\nax = Subplot(fig, 111)\r\nfig.add_subplot(ax)\r\n\r\nax.axis[\"right\"].set_visible(False)\r\nax.axis[\"top\"].set_visible(False)\r\n\r\n# Disable it locally\r\nax.get_yaxis().get_major_formatter().set_useOffset(False)\r\n\r\nax.set_ylim(10 ** 8, 10 ** 8 + 1)\r\n\r\nprint(ax.get_yaxis().get_major_formatter().useOffset)\r\n# \u003e False\r\n\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\nWe should not see the `1e8` and the axis should be labelled without the remove of the offset.\r\n\r\n**Matplotlib version**\r\n\r\n* matplotlib 3.1.1\r\n","author":{"url":"https://github.com/vallsv","@type":"Person","name":"vallsv"},"datePublished":"2020-01-15T16:38:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/16232/matplotlib/issues/16232"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:dc2110d9-9c08-8839-5cc7-cbe326733c54 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BD0E:2B7730:2BBB8A:3E6AC6:6A55D9A2 |
| html-safe-nonce | 62940bef9f10648d3bc310fdbdd35aa56b97f50c83bfbaed142a87821b89914c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRDBFOjJCNzczMDoyQkJCOEE6M0U2QUM2OjZBNTVEOUEyIiwidmlzaXRvcl9pZCI6IjI0NjI5NjUyODg0ODYxNjQ4OTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b7a250a909a33177b3987cfcdc60efd0d82319c0bb19005bf31cbb287faaf967 |
| hovercard-subject-tag | issue:550300233 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/16232/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d5f11919dbfbcacb42bbeabad5b5e75b651621fed7e459c63c4a0113cfb89a4f/matplotlib/matplotlib/issues/16232 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d5f11919dbfbcacb42bbeabad5b5e75b651621fed7e459c63c4a0113cfb89a4f/matplotlib/matplotlib/issues/16232 |
| og:image:alt | Hi, I try to disable the offset computed to label the axes in the plot. It looks like the global or local set of useOffset is just ignored. Code for reproduction import matplotlib import matplotlib... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | vallsv |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| turbo-cache-control | no-preview |
| go-import | github.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git |
| octolytics-dimension-user_id | 215947 |
| octolytics-dimension-user_login | matplotlib |
| octolytics-dimension-repository_id | 1385122 |
| octolytics-dimension-repository_nwo | matplotlib/matplotlib |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1385122 |
| octolytics-dimension-repository_network_root_nwo | matplotlib/matplotlib |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8f8e1726192df8dce16872ceb503336c12e9ae78 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width