Title: WARN: more direct warning ticklabels by jklymak · Pull Request #26401 · matplotlib/matplotlib · GitHub
Open Graph Title: WARN: more direct warning ticklabels by jklymak · Pull Request #26401 · matplotlib/matplotlib
X Title: WARN: more direct warning ticklabels by jklymak · Pull Request #26401 · matplotlib/matplotlib
Description: PR summary Closes #26398 This now warns with /Users/jklymak/matplotlib/testit.py:11: UserWarning: set_ticklabels should only be used with set_ticks or a FixedLocator. ax.set_yticklabels(map(str, ticks)) import numpy as np from matplotlib import cm import matplotlib.pyplot as plt for adjust in [True]: fig, ax = plt.subplots(figsize=(5, 3)) data = [33.4, 33.5, 33.6] ax.plot(data, data) ticks = [32.8, 33., 33.2, 33.4, 33.6, 33.8] # ax.set_yticks(ticks) ax.set_yticklabels(map(str, ticks)) fig.subplots_adjust(top=0.96) Needs tests PR checklist "closes #0000" is in the body of the PR description to link the related issue new and changed code is tested Plotting related features are demonstrated in an example New Features and API Changes are noted with a directive and release note Documentation complies with general and docstring guidelines
Open Graph Description: PR summary Closes #26398 This now warns with /Users/jklymak/matplotlib/testit.py:11: UserWarning: set_ticklabels should only be used with set_ticks or a FixedLocator. ax.set_yticklabels(map(str, ...
X Description: PR summary Closes #26398 This now warns with /Users/jklymak/matplotlib/testit.py:11: UserWarning: set_ticklabels should only be used with set_ticks or a FixedLocator. ax.set_yticklabels(map(str, ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/26401
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:edab2218-8813-ffd1-5bd1-801391051d0d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B950:33F819:1448FF3:1B609E6:6A534CE1 |
| html-safe-nonce | c42af79f7e4a45f16d527a219dc58f44e071080d0190f7b6b2a1c0f1d3b41c65 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTUwOjMzRjgxOToxNDQ4RkYzOjFCNjA5RTY6NkE1MzRDRTEiLCJ2aXNpdG9yX2lkIjoiNjIwMjAyMjQzODk0NTExNTM2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1e1f694228f08e57a88941ca549433afdaefb2a9a938042ed3441f01c6984fa0 |
| hovercard-subject-tag | pull_request:1452829814 |
| 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/26401/files |
| twitter:image | https://avatars.githubusercontent.com/u/1562854?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1562854?s=400&v=4 |
| og:image:alt | PR summary Closes #26398 This now warns with /Users/jklymak/matplotlib/testit.py:11: UserWarning: set_ticklabels should only be used with set_ticks or a FixedLocator. ax.set_yticklabels(map(str, ... |
| 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