Title: Simplifications to errorbar(). by anntzer · Pull Request #15037 · matplotlib/matplotlib · GitHub
Open Graph Title: Simplifications to errorbar(). by anntzer · Pull Request #15037 · matplotlib/matplotlib
X Title: Simplifications to errorbar(). by anntzer · Pull Request #15037 · matplotlib/matplotlib
Description: Move check that x and y have same size to top. Replace xywhere by a more general mask-application function; then, in the various xlolims/xuplims/... handling blocks, apply all masks at once. Apply xlolims/xuplims in extract_err, which allows drawing all errorbars in a single call to vlines()/hlines(). We don't need to check the size of lolims/uplims because they go through broadcast() earlier. Clarify the docstring a bit. tbh, based on the somewhat debatable interpretation of lolims/uplims (should it be uplims/lolims? -- see docstring edit), the lack of anyone ever mentioning that, and the fact that their interpretation was inverted in #2452 with no apparent complaints, I believe it's likely that this feature (https://matplotlib.org/gallery/lines_bars_and_markers/errorbar_limits_simple.html) is extremely rarely used and may be worth shedding away, given the complexity of the implementation... PR Summary 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: Move check that x and y have same size to top. Replace xywhere by a more general mask-application function; then, in the various xlolims/xuplims/... handling blocks, apply all masks at once. Apply ...
X Description: Move check that x and y have same size to top. Replace xywhere by a more general mask-application function; then, in the various xlolims/xuplims/... handling blocks, apply all masks at once. Apply ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/15037
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:59ad2fe7-9fd0-9145-7060-da240e7eae79 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 95F8:204447:DF2100:12F20A1:6A543D83 |
| html-safe-nonce | c0a2920b4ffbce9d18925395705ec5395a0aa84c8d1990fbe3b7c7396c106284 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NUY4OjIwNDQ0NzpERjIxMDA6MTJGMjBBMTo2QTU0M0Q4MyIsInZpc2l0b3JfaWQiOiI0NjY3MTY4NzM4NDUzNTAzMzYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 446ff17464402deb0e3b1de187b45e4506afe2bc8579f6434dc87a879c8fcc78 |
| hovercard-subject-tag | pull_request:306390363 |
| 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/15037/files |
| twitter:image | https://avatars.githubusercontent.com/u/1322974?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1322974?s=400&v=4 |
| og:image:alt | Move check that x and y have same size to top. Replace xywhere by a more general mask-application function; then, in the various xlolims/xuplims/... handling blocks, apply all masks at once. Apply ... |
| 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 |
| 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 | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width