Title: Line2D._path obeys drawstyle. by anntzer · Pull Request #6497 · matplotlib/matplotlib · GitHub
Open Graph Title: Line2D._path obeys drawstyle. by anntzer · Pull Request #6497 · matplotlib/matplotlib
X Title: Line2D._path obeys drawstyle. by anntzer · Pull Request #6497 · matplotlib/matplotlib
Description: For stepping drawstyles, Line2D.draw used to recompute a path at drawing time, because its _path attribute always assumed a linear drawstyle. Instead, directly compute the correct path. Also fixes #6447 (Line2D.contains did not take drawstyle into account) because that code relied on proximity of the mouse event with the underlying path. Note that unfortunately, the drawstyle names remain inconsistent with those accepted by fill_between and fill_betweenx, which (seem to be the only functions to) rely on cbook.STEP_LOOKUP_MAP. It may be a good opportunity to fix the discrepancy too...
Open Graph Description: For stepping drawstyles, Line2D.draw used to recompute a path at drawing time, because its _path attribute always assumed a linear drawstyle. Instead, directly compute the correct path. Also fixes...
X Description: For stepping drawstyles, Line2D.draw used to recompute a path at drawing time, because its _path attribute always assumed a linear drawstyle. Instead, directly compute the correct path. Also fixes...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/6497
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:98de9802-0523-6877-9665-60bb1c060f92 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C64A:18AAA8:CEF591:11D4F7D:6A53AE5B |
| html-safe-nonce | 41ccb948b79d2e701b06873579d42abe1aaecd4e33fba82ba059f692cf43922b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjRBOjE4QUFBODpDRUY1OTE6MTFENEY3RDo2QTUzQUU1QiIsInZpc2l0b3JfaWQiOiI2ODM4NDkwMzE4MjM0NjkzMjExIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e8d044bfc4d29ff43a84346f99adb66799705db4de4535761610b8d47a24034a |
| hovercard-subject-tag | pull_request:71833181 |
| 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/6497/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 | For stepping drawstyles, Line2D.draw used to recompute a path at drawing time, because its _path attribute always assumed a linear drawstyle. Instead, directly compute the correct path. Also fixes... |
| 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