Title: title doesn't move for ticklables.... · Issue #13735 · matplotlib/matplotlib · GitHub
Open Graph Title: title doesn't move for ticklables.... · Issue #13735 · matplotlib/matplotlib
X Title: title doesn't move for ticklables.... · Issue #13735 · matplotlib/matplotlib
Description: Bug report Per https://stackoverflow.com/questions/55289921/matplotlib-matshow-xtick-labels-on-top-and-bottom @ImportanceOfBeingErnest As of #9498, we have an _update_title_pos, but I guess it only checks for the xlabel, and not the tick...
Open Graph Description: Bug report Per https://stackoverflow.com/questions/55289921/matplotlib-matshow-xtick-labels-on-top-and-bottom @ImportanceOfBeingErnest As of #9498, we have an _update_title_pos, but I guess it only...
X Description: Bug report Per https://stackoverflow.com/questions/55289921/matplotlib-matshow-xtick-labels-on-top-and-bottom @ImportanceOfBeingErnest As of #9498, we have an _update_title_pos, but I guess it only...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13735
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"title doesn't move for ticklables....","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\nPer https://stackoverflow.com/questions/55289921/matplotlib-matshow-xtick-labels-on-top-and-bottom @ImportanceOfBeingErnest \r\n\r\nAs of #9498, we have an _update_title_pos, but I guess it only checks for the xlabel, and not the tick labels. Should be relatively straightforward to fix I think...\r\n\r\n```python\r\nimport pandas as pd\r\nimport numpy as np\r\nimport string\r\nimport matplotlib.pyplot as plt\r\n\r\nn = 10\r\nnames = ['Long Name ' + suffix for suffix in string.ascii_uppercase[:n]]\r\n\r\nfig = plt.figure(constrained_layout=True)\r\nax = plt.gca()\r\n\r\nax.set_xticks(np.arange(n))\r\nax.set_xticklabels(names)\r\nax.set_yticks(np.arange(n))\r\nax.set_yticklabels(names)\r\n\r\n# Set ticks on both sides of axes on\r\nax.tick_params(axis=\"x\", bottom=True, top=True, labelbottom=True, labeltop=True)\r\n# Rotate and align bottom ticklabels\r\nplt.setp([tick.label1 for tick in ax.xaxis.get_major_ticks()], rotation=45,\r\n ha=\"right\", va=\"center\", rotation_mode=\"anchor\")\r\n# Rotate and align top ticklabels\r\nplt.setp([tick.label2 for tick in ax.xaxis.get_major_ticks()], rotation=45,\r\n ha=\"left\", va=\"center\",rotation_mode=\"anchor\")\r\n\r\nax.set_title(\"Name Co-Occurrences\")\r\nplt.show()\r\n```\r\n\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/jklymak","@type":"Person","name":"jklymak"},"datePublished":"2019-03-22T13:50:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/13735/matplotlib/issues/13735"}
| 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:acd21669-98aa-a4d2-edc0-ae621b17a719 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C8F6:2AB90B:FF8978:1562C62:6A53357A |
| html-safe-nonce | 2f68b935379730aef797a2916a0c0e98bc2a7c23a06eef8df60b437ff9571375 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEY2OjJBQjkwQjpGRjg5Nzg6MTU2MkM2Mjo2QTUzMzU3QSIsInZpc2l0b3JfaWQiOiI2MTkxOTI5OTI3MjI0NDcyOTU1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 26c2db201458f25990796b9e38852cb84c719f7017273895d19c315a9b92904c |
| hovercard-subject-tag | issue:424218933 |
| 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/13735/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e8206bc23a684425e745d0aeb635c8a2832b7c7bd8964bbc093783b5b54910f1/matplotlib/matplotlib/issues/13735 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e8206bc23a684425e745d0aeb635c8a2832b7c7bd8964bbc093783b5b54910f1/matplotlib/matplotlib/issues/13735 |
| og:image:alt | Bug report Per https://stackoverflow.com/questions/55289921/matplotlib-matshow-xtick-labels-on-top-and-bottom @ImportanceOfBeingErnest As of #9498, we have an _update_title_pos, but I guess it only... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jklymak |
| 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