Title: [Bug]: `axes.get_tick_params()` does not return `labelbottom` or `labeltop` · Issue #28772 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: `axes.get_tick_params()` does not return `labelbottom` or `labeltop` · Issue #28772 · matplotlib/matplotlib
X Title: [Bug]: `axes.get_tick_params()` does not return `labelbottom` or `labeltop` · Issue #28772 · matplotlib/matplotlib
Description: Bug summary axes.get_tick_params() introduced in #23692 returns labelright and labelleft even for the x-axis, even though the keys should be called labelbottom or labeltop. This is confusing. Code for reproduction import matplotlib.pyplo...
Open Graph Description: Bug summary axes.get_tick_params() introduced in #23692 returns labelright and labelleft even for the x-axis, even though the keys should be called labelbottom or labeltop. This is confusing. Code ...
X Description: Bug summary axes.get_tick_params() introduced in #23692 returns labelright and labelleft even for the x-axis, even though the keys should be called labelbottom or labeltop. This is confusing. Code ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/28772
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: `axes.get_tick_params()` does not return `labelbottom` or `labeltop`","articleBody":"### Bug summary\n\n`axes.get_tick_params()` introduced in #23692 returns `labelright` and `labelleft` even for the x-axis, even though the keys should be called `labelbottom` or `labeltop`. This is confusing.\n\n### Code for reproduction\n\n```Python\nimport matplotlib.pyplot as plt\r\n\r\nfig, ax = plt.subplots()\r\nax.tick_params(labelbottom=True, labeltop=True, labelright=True, labelleft=True)\r\n\r\ntick_params = ax.get_xaxis().get_tick_params()\n```\n\n\n### Actual outcome\n\n```\r\ntick_params = {\r\n\"labelright\": True,\r\n\"labelleft\": True,\r\n# ..., no `labelbottom` or `labeltop`\r\n}\r\n```\n\n### Expected outcome\n\n```\r\ntick_params = {\r\n\"labelbottom\": True,\r\n\"labeltop\": True,\r\n}\r\n```\n\n### Additional information\n\nThe code path to this bug seems relatively clear, see [here](https://github.com/matplotlib/matplotlib/pull/23692#discussion_r1705623450). Not sure though how to solve.\n\n### Operating system\n\nWindows, MacOS\n\n### Matplotlib Version\n\n3.9.1\n\n### Matplotlib Backend\n\n_No response_\n\n### Python version\n\n3.12.5\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/GenieTim","@type":"Person","name":"GenieTim"},"datePublished":"2024-08-31T06:22:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/28772/matplotlib/issues/28772"}
| 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:a96031ee-c477-21d3-58c5-aeac43697bc0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A764:16EEE2:83EE75:B20435:6A51DBEB |
| html-safe-nonce | 9a2ec1fb91af46ec12eb4381ce16ebf3df40e91320471386d6b43c5c7ae8d947 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzY0OjE2RUVFMjo4M0VFNzU6QjIwNDM1OjZBNTFEQkVCIiwidmlzaXRvcl9pZCI6IjU2MzQ0OTI2MDI5ODIxOTQxNTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | dd420ab20335db5516fddcef2895eddd3a83db725cb24332fa812ad00b15099c |
| hovercard-subject-tag | issue:2498666737 |
| 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/28772/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d7b71e77d9794e058c438eb95537a973283333d358f6dce39fd9361d135a089e/matplotlib/matplotlib/issues/28772 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d7b71e77d9794e058c438eb95537a973283333d358f6dce39fd9361d135a089e/matplotlib/matplotlib/issues/28772 |
| og:image:alt | Bug summary axes.get_tick_params() introduced in #23692 returns labelright and labelleft even for the x-axis, even though the keys should be called labelbottom or labeltop. This is confusing. Code ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GenieTim |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width