Title: Issue · GitHub
Open Graph Title: Issue · matplotlib/matplotlib
X Title: Issue · matplotlib/matplotlib
Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.
Open Graph Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.
X Description: matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub.
Opengraph URL: https://github.com/matplotlib/matplotlib
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Doc Typo: matplotlib.axes.Axes.get_yticklabels / Axis.get_ticklabels","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[get_yticklabels ](https://matplotlib.org/api/_as_gen/matplotlib.axes.Axes.get_yticklabels.html#matplotlib.axes.Axes.get_yticklabels) doc refers to x ticks. \r\n\u003c!--A short 1-2 sentences that succinctly describes the bug--\u003e\r\n```\r\nAxes.get_yticklabels(minor=False, which=None)\r\n Get the x tick labels as a list of Text instances.\r\n```\r\n\r\nI went to make a PR but was unsure where to make the change.\r\n\r\nI found a get_yticklabels() function in `axes/_base.py` but it has correct docs.\r\nhttps://github.com/matplotlib/matplotlib/blob/90ac52366535e71827738feb3dea15317d233a96/lib/matplotlib/axes/_base.py#L3526-L3528 \r\n\r\nIt does however use a `get_ticklabels` method.\r\nFinding a `get_ticklabels` method of the `Axis` class I see that the documentation specifically references x ticks. \r\nhttps://github.com/matplotlib/matplotlib/blob/7d7692f966e89ec8060e420dceb25154d9480f49/lib/matplotlib/axis.py#L1246-L1248\r\n\r\nThis may be where the typo is coming from. But I am not sure if this is just a different typo.\r\n\r\n\r\n**Expected outcome**\r\nShould be probably be\r\n```\r\nAxes.get_yticklabels(minor=False, which=None)\r\n Get the y tick labels as a list of Text instances.\r\n```\r\n\r\nSome guidance on where to make the changes and I can do a PR.\r\nThanks","author":{"url":"https://github.com/jason-neal","@type":"Person","name":"jason-neal"},"datePublished":"2018-04-12T15:11:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/11034/matplotlib/issues/11034"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:264480dc-1171-bff0-fd5d-f64a8b613bb8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBA0:1A6FEB:1F93B64:2B2A6A8:6A541777 |
| html-safe-nonce | 467e4f55dab15011cd5e24fbbaf2f061c270120a1f341450813cdaa9ef82b60b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkEwOjFBNkZFQjoxRjkzQjY0OjJCMkE2QTg6NkE1NDE3NzciLCJ2aXNpdG9yX2lkIjoiNTA2MzkyNDU0MTUxNDA2MTY4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5afe7c363cae7ea1e473140cc736933159f9bb9405f084be76aa3b311d899148 |
| hovercard-subject-tag | repository:1385122 |
| 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/matplotlib/matplotlib/issues/11034 |
| twitter:image | https://opengraph.githubassets.com/79515bfc68619ab33bb09a60370b2e8ee803d8f11a13489149f2ab3b451c28e8/matplotlib/matplotlib |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/79515bfc68619ab33bb09a60370b2e8ee803d8f11a13489149f2ab3b451c28e8/matplotlib/matplotlib |
| og:image:alt | matplotlib: plotting with Python. Contribute to matplotlib/matplotlib development by creating an account on GitHub. |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-cache |
| 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