Title: Trying to set the labels without setting ticks through pyplot now raises TypeError* by rscmendes · Pull Request #15927 · matplotlib/matplotlib · GitHub
Open Graph Title: Trying to set the labels without setting ticks through pyplot now raises TypeError* by rscmendes · Pull Request #15927 · matplotlib/matplotlib
X Title: Trying to set the labels without setting ticks through pyplot now raises TypeError* by rscmendes · Pull Request #15927 · matplotlib/matplotlib
Description: PR Summary This PR was suggested in issue #15005 as to fix the error that is returned when xticks() or yticks() is called with only the labels as parameters. It is also a follow up from PR #15788. Previously, passing labels without passing the ticks to either pyplot.xticks() and pyplot.yticks() would result in TypeError: object of type 'NoneType' has no len(). With this PR it now returns: AttributeError: Labels can't be set without setting ticks. PS: apologies for the delay. PR Checklist Has Pytest style unit tests Code is Flake 8 compliant New features are documented, with examples if plot related Documentation is sphinx and numpydoc compliant Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there) Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way
Open Graph Description: PR Summary This PR was suggested in issue #15005 as to fix the error that is returned when xticks() or yticks() is called with only the labels as parameters. It is also a follow up from PR #15788. ...
X Description: PR Summary This PR was suggested in issue #15005 as to fix the error that is returned when xticks() or yticks() is called with only the labels as parameters. It is also a follow up from PR #15788. ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/15927
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:2e6dde4e-a51f-923d-e8c4-8a970247d3c4 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 92B8:3020D:1AE3784:2715BE6:6A563338 |
| html-safe-nonce | 58ed880a37a12fd91504d7e873b2452108bd29675a8dade74e257cad7081694a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkI4OjMwMjBEOjFBRTM3ODQ6MjcxNUJFNjo2QTU2MzMzOCIsInZpc2l0b3JfaWQiOiI1NDE3ODYzODMyNzgwODEzMTEzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 57ed56334799dfb5b0d43361177915aa0b812e9dc76eb9ee0da55eda502b3942 |
| hovercard-subject-tag | pull_request:352658897 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/pull/15927/files |
| twitter:image | https://avatars.githubusercontent.com/u/3160657?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/3160657?s=400&v=4 |
| og:image:alt | PR Summary This PR was suggested in issue #15005 as to fix the error that is returned when xticks() or yticks() is called with only the labels as parameters. It is also a follow up from PR #15788. ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9d78ea552aac0685ca5f006d44f88166cbbf3bb96843f8da0c5a2c0b9908430b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423b2fb76ac2b90de5ab599b7a76a0d2b2c83f24 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width