Title: Get ticklabels back on shared axis · Issue #10911 · matplotlib/matplotlib · GitHub
Open Graph Title: Get ticklabels back on shared axis · Issue #10911 · matplotlib/matplotlib
X Title: Get ticklabels back on shared axis · Issue #10911 · matplotlib/matplotlib
Description: Bug report Bug summary When sharing the axes through plt.subplots(2, sharex=True) the ticklabels on the upper axes are rightfully suppressed. However, in many cases you may still want/need to show them. Im matplotlib 2.0.2 this was easil...
Open Graph Description: Bug report Bug summary When sharing the axes through plt.subplots(2, sharex=True) the ticklabels on the upper axes are rightfully suppressed. However, in many cases you may still want/need to show ...
X Description: Bug report Bug summary When sharing the axes through plt.subplots(2, sharex=True) the ticklabels on the upper axes are rightfully suppressed. However, in many cases you may still want/need to show ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/10911
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get ticklabels back on shared axis","articleBody":"\u003c!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--\u003e\r\n\u003c!--You can feel free to delete the sections that do not apply.--\u003e\r\n\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nWhen sharing the axes through `plt.subplots(2, sharex=True)` the ticklabels on the upper axes are rightfully suppressed. However, in many cases you may still want/need to show them. \r\n\r\nIm matplotlib 2.0.2 this was easily possible by turning them visible again. This is not possible any more with matplotlib 2.2.\r\n\r\n**Code for reproduction**\r\n\r\n\u003c!--A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required--\u003e\r\n\r\n```\r\nimport matplotlib.pyplot as plt\r\n\r\nfig, (ax,ax2) = plt.subplots(2, sharex=True)\r\n\r\nplt.setp(ax.get_xticklabels(),visible=True)\r\n\r\nplt.show()\r\n```\r\n\r\n**Actual outcome in matplotlib 2.2.2**\r\n\r\n\r\n\r\n\r\n\r\n**Expected outcome, actual outcome in matplotlib 2.0.2**\r\n\r\nI would expect matplotlib not to break the previously working solution of turning the labels visible. The expected outcome would be, as in version 2.0.2 to see the ticklabels on the upper axes.\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/ImportanceOfBeingErnest","@type":"Person","name":"ImportanceOfBeingErnest"},"datePublished":"2018-03-28T19:36:42.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":18},"url":"https://github.com/10911/matplotlib/issues/10911"}
| 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:81c8773c-bb14-c54f-c010-3a0471298164 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 941C:2D3512:1C277C2:254726D:6A52D886 |
| html-safe-nonce | aabba0f66af67210c564bad7088ff08dacb1a5f00442442a3b6c6c8363d9052f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NDFDOjJEMzUxMjoxQzI3N0MyOjI1NDcyNkQ6NkE1MkQ4ODYiLCJ2aXNpdG9yX2lkIjoiODIxMTcyNzQxMDE0OTkwNjU2NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4ac8a96a4410b59e7fa054fabda43691f304a09a2f2ae15a80d940e485127c9a |
| hovercard-subject-tag | issue:309502263 |
| 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/10911/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3cc1a0b4372eccdb0c9a52ac6559373ee0d483d6356eaa77372c7cb144a91a30/matplotlib/matplotlib/issues/10911 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3cc1a0b4372eccdb0c9a52ac6559373ee0d483d6356eaa77372c7cb144a91a30/matplotlib/matplotlib/issues/10911 |
| og:image:alt | Bug report Bug summary When sharing the axes through plt.subplots(2, sharex=True) the ticklabels on the upper axes are rightfully suppressed. However, in many cases you may still want/need to show ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ImportanceOfBeingErnest |
| 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