Title: Add labels parameter to set_ticks() by timhoffm · Pull Request #20047 · matplotlib/matplotlib · GitHub
Open Graph Title: Add labels parameter to set_ticks() by timhoffm · Pull Request #20047 · matplotlib/matplotlib
X Title: Add labels parameter to set_ticks() by timhoffm · Pull Request #20047 · matplotlib/matplotlib
Description: PR Summary As proposed in #18848 (comment) and discussed on today's dev call. Closes #18848, #19016. kwargs: I've added kwargs for text properties. While this makes the function do a lot (borderline of too much), it is necessary if we want a full replacement of set_ticklabels(labels, **text_properties). One can argue that this is actually too much, in which case we'd have to advertise # Replace set_ticks(locs) set_ticklabels(labels, **text_properties) # by set_ticks(locs, labels) tick_params(**text_properties) Return value: set_ticks() has an undocumented return value (list of the Tick instances). While plt.xticks() returns a tuple (locs, labels) (list of Ticks and list of Texts), I don't want to do this here. First, I don't think the setter should return anything at all (but that's how it is for now and deprecating that is probably not worth it). Second, since labels are optional, I'm not even sure if we would want to give the texts only if labels is not None.
Open Graph Description: PR Summary As proposed in #18848 (comment) and discussed on today's dev call. Closes #18848, #19016. kwargs: I've added kwargs for text properties. While this makes the function do a lot (b...
X Description: PR Summary As proposed in #18848 (comment) and discussed on today's dev call. Closes #18848, #19016. kwargs: I've added kwargs for text properties. While this makes the function do ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/20047
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e6898ff3-2af1-bfaf-85d8-bcbdd0eb2fad |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8DCC:25211B:2C73B66:3C5AB29:6A53CD6D |
| html-safe-nonce | 1df688a2183517d8d0d6e86b82b5c69e2b870a82d5244c519c71feab32cd318c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RENDOjI1MjExQjoyQzczQjY2OjNDNUFCMjk6NkE1M0NENkQiLCJ2aXNpdG9yX2lkIjoiNTU1NTk3NDM4MTY5ODc5NjkwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 469b41e6cabb403974e564d04c71df41626b44da2c0f17721ccc61fd9956fb9e |
| hovercard-subject-tag | pull_request:621588975 |
| 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/20047/files |
| twitter:image | https://avatars.githubusercontent.com/u/2836374?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2836374?s=400&v=4 |
| og:image:alt | PR Summary As proposed in #18848 (comment) and discussed on today's dev call. Closes #18848, #19016. kwargs: I've added kwargs for text properties. While this makes the function do a lot (b... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width