Title: Deprecate Transform.__array__ in favor of Transform.get_affine and Affine2D.__array__ · Issue #7975 · matplotlib/matplotlib · GitHub
Open Graph Title: Deprecate Transform.__array__ in favor of Transform.get_affine and Affine2D.__array__ · Issue #7975 · matplotlib/matplotlib
X Title: Deprecate Transform.__array__ in favor of Transform.get_affine and Affine2D.__array__ · Issue #7975 · matplotlib/matplotlib
Description: The Transform class defines an __array__ method so that it can be passed (as an affine transformation matrix) to C-level code. Unfortunately, such method necessarily drops the nonlinear part of the transform (which cannot be represented ...
Open Graph Description: The Transform class defines an __array__ method so that it can be passed (as an affine transformation matrix) to C-level code. Unfortunately, such method necessarily drops the nonlinear part of the...
X Description: The Transform class defines an __array__ method so that it can be passed (as an affine transformation matrix) to C-level code. Unfortunately, such method necessarily drops the nonlinear part of the...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/7975
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deprecate Transform.__array__ in favor of Transform.get_affine and Affine2D.__array__","articleBody":"The Transform class defines an `__array__` method so that it can be passed (as an affine transformation matrix) to C-level code. Unfortunately, such method necessarily drops the nonlinear part of the transform (which cannot be represented in the matrix), and does so silently, leading to bugs such as the one fixed by #7844.\r\n\r\nI thus suggest deprecating `Transform.__array__` while keeping a nondeprecated version in `Affine2D.__array__`. This will force to use `Transform.get_affine()` whereever necessary, thus making the dropping of the nonlinear part more obvious.","author":{"url":"https://github.com/anntzer","@type":"Person","name":"anntzer"},"datePublished":"2017-01-28T22:02:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/7975/matplotlib/issues/7975"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:79b54943-3f4e-327d-8257-c7ea13618c85 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B83C:33B84F:1F9F34D:2A6519B:6A545E06 |
| html-safe-nonce | c0dfbda422c547ab8c9f3aa5fc2791c465b04fbbf89e63d1a27c53742ef2b12e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCODNDOjMzQjg0RjoxRjlGMzREOjJBNjUxOUI6NkE1NDVFMDYiLCJ2aXNpdG9yX2lkIjoiMTk5OTAxMDUzODc4MTQzMzM1MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3ec64d428085446d01396de6734d9b514759691c3962c1af2680469f93996d11 |
| hovercard-subject-tag | issue:203834429 |
| github-keyboard-shortcuts | repository,issues,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/_view_fragments/issues/show/matplotlib/matplotlib/7975/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a5c863e4f5519ed9cff94ba97ddaec2c9c967c1271d6432322eec4dda660f0e/matplotlib/matplotlib/issues/7975 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a5c863e4f5519ed9cff94ba97ddaec2c9c967c1271d6432322eec4dda660f0e/matplotlib/matplotlib/issues/7975 |
| og:image:alt | The Transform class defines an __array__ method so that it can be passed (as an affine transformation matrix) to C-level code. Unfortunately, such method necessarily drops the nonlinear part of the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | anntzer |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| 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 | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6d28624802c2f7d9500239dd6870ed7031b7353b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width