Title: Make format_coord messagebox resize with the window and the content in osx backend by zhihanyue · Pull Request #16710 · matplotlib/matplotlib · GitHub
Open Graph Title: Make format_coord messagebox resize with the window and the content in osx backend by zhihanyue · Pull Request #16710 · matplotlib/matplotlib
X Title: Make format_coord messagebox resize with the window and the content in osx backend by zhihanyue · Pull Request #16710 · matplotlib/matplotlib
Description: PR Summary adjust the width of messagebox with the window size display in two lines properly when its width is not enough for single-line display closes #16498 Example: from matplotlib import pyplot as plt import numpy as np x = np.linspace(-5, 5, 1000) y = x ** 2 fig = plt.figure() ax1 = fig.add_subplot(1, 1, 1) def my_format_coord(x, y): return f'the x-coordinate = {x}, the y-coordinate = {y}' ax1.format_coord = my_format_coord ax1.plot(x, y) plt.show() Before: After: 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 adjust the width of messagebox with the window size display in two lines properly when its width is not enough for single-line display closes #16498 Example: from matplotlib import pyp...
X Description: PR Summary adjust the width of messagebox with the window size display in two lines properly when its width is not enough for single-line display closes #16498 Example: from matplotlib import pyp...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/16710
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:6af18ed6-3d6e-eb02-c7eb-9eeb06600a9c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D85E:3975C1:46AF41:625BFE:6A57BC9E |
| html-safe-nonce | 6d24a45df2948b9466d416b4082dfd0e93ab5edf061ccce6894c5ce97664dce2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEODVFOjM5NzVDMTo0NkFGNDE6NjI1QkZFOjZBNTdCQzlFIiwidmlzaXRvcl9pZCI6IjU4NzE3OTg3NjMwODYzOTY1NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b86e0a039bc49bf45b474a97d3dc0f2dbb7f258a448121bf5f9586d726a91043 |
| hovercard-subject-tag | pull_request:385246675 |
| 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/16710/files |
| twitter:image | https://avatars.githubusercontent.com/u/18026801?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/18026801?s=400&v=4 |
| og:image:alt | PR Summary adjust the width of messagebox with the window size display in two lines properly when its width is not enough for single-line display closes #16498 Example: from matplotlib import pyp... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5bf9f84655de1d0e9aa064cd3b2bc9703556c68ae53b94e21b872b7e9f1f7cc1 |
| 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 |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9e5a4d2583d61726264f5ec9440b26ec7a94eb3f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width