Title: Two issues with the axes offset indicator · Issue #4445 · matplotlib/matplotlib · GitHub
Open Graph Title: Two issues with the axes offset indicator · Issue #4445 · matplotlib/matplotlib
X Title: Two issues with the axes offset indicator · Issue #4445 · matplotlib/matplotlib
Description: Consider: plt.plot(10001 + np.arange(10), 10001 + np.arange(10)) plt.setp(plt.gca().get_yticklabels(), visible=False) plt.show() The x axis is labeled 0..9 + 1.0001e4. I'd suggest changing this to 1..10 + 1.0000e4, which is IMO much more...
Open Graph Description: Consider: plt.plot(10001 + np.arange(10), 10001 + np.arange(10)) plt.setp(plt.gca().get_yticklabels(), visible=False) plt.show() The x axis is labeled 0..9 + 1.0001e4. I'd suggest changing this to ...
X Description: Consider: plt.plot(10001 + np.arange(10), 10001 + np.arange(10)) plt.setp(plt.gca().get_yticklabels(), visible=False) plt.show() The x axis is labeled 0..9 + 1.0001e4. I'd suggest changing this...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/4445
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Two issues with the axes offset indicator","articleBody":"Consider:\n\n```\nplt.plot(10001 + np.arange(10), 10001 + np.arange(10))\nplt.setp(plt.gca().get_yticklabels(), visible=False)\nplt.show()\n```\n\nThe `x` axis is labeled 0..9 + 1.0001e4. I'd suggest changing this to 1..10 + 1.0000e4, which is IMO much more legible.\n\nThe `y` axis doesn't show the tick labels, as expected, but the offset indicator (\"+1.0001e4\") is still there. `setp(get_{x,y}ticklabels(), visible=False)` is certainly a commonly used approach (e.g. by `SubplotBase.label_outer()`).\nWhat I believe the correct solution, which is also set `offsetText` (which can be obtained by `get_offset_text()`) to invisible, is a bit obscure (and not mentioned in the docs).\n","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2015-05-19T20:25:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/4445/matplotlib/issues/4445"}
| 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:bb9ffeab-96bf-9619-6239-91c3e3dcb9ee |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8178:37AB26:2C23F43:3BE3D61:6A5452A4 |
| html-safe-nonce | 7ab04a9fc135d62b277307e9e5f3978ca9a235003319c125e6d03ccd792d8e1d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTc4OjM3QUIyNjoyQzIzRjQzOjNCRTNENjE6NkE1NDUyQTQiLCJ2aXNpdG9yX2lkIjoiODI0NzQzMDczODg0MjI0Mzc0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 39052f3c77478537372e723f0d335df8d0aea383d5e4fed2f74a6c14b4419d8f |
| hovercard-subject-tag | issue:78238476 |
| 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/4445/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8eaf6b26203b866e35ef93584ac2bde2e919889ee30f63dc8dd94cc22c1cf13a/matplotlib/matplotlib/issues/4445 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8eaf6b26203b866e35ef93584ac2bde2e919889ee30f63dc8dd94cc22c1cf13a/matplotlib/matplotlib/issues/4445 |
| og:image:alt | Consider: plt.plot(10001 + np.arange(10), 10001 + np.arange(10)) plt.setp(plt.gca().get_yticklabels(), visible=False) plt.show() The x axis is labeled 0..9 + 1.0001e4. I'd suggest changing this to ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width