Title: Cleanup test_transforms by iccir · Pull Request #32567 · matplotlib/matplotlib · GitHub
Open Graph Title: Cleanup test_transforms by iccir · Pull Request #32567 · matplotlib/matplotlib
X Title: Cleanup test_transforms by iccir · Pull Request #32567 · matplotlib/matplotlib
Description: PR summary This PR includes the test case changes discussed in #32547: Adds TestAffine2D._check_transform to run a transform on a point or sequence of points. In the 1D case, this method converts to a numpy array and tests the 2D equivalent in C++. The values of TestAffine2D.single_point, TestAffine2D.multiple_points, TestAffine2D.pivot are now explicitly written out at the call site. test_translate_plus_other() performs an exact comparison for the translate+scale case. In addition: Instead of hard-coding 26.5650512, 14.0362435 everywhere, I added a new _atan function to return the arctangent in degrees. This exposed a floating point rounding issue on arm64 in test_translate_plus_other(), so I had to change the assert_array_equal to assert_array_almost_equal. AI Disclosure None used. PR quality check Use an expressive title, e.g. "Fix title font property precedence" New and changed code is tested [/] Plotting related features are demonstrated in an example [/] New features and API changes have release notes [/] Documentation complies with general and docstring guidelines
Open Graph Description: PR summary This PR includes the test case changes discussed in #32547: Adds TestAffine2D._check_transform to run a transform on a point or sequence of points. In the 1D case, this method converts ...
X Description: PR summary This PR includes the test case changes discussed in #32547: Adds TestAffine2D._check_transform to run a transform on a point or sequence of points. In the 1D case, this method converts ...
Opengraph URL: https://github.com/matplotlib/matplotlib/pull/32567
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:65a1a771-cb9d-9ef7-4550-98453adf945a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | B950:137918:CB88D4:1186071:6B06A252 |
| html-safe-nonce | b717764681879a2c1e914440db46423f2e66cf433b7f19080ab0a3153c8b395f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOTUwOjEzNzkxODpDQjg4RDQ6MTE4NjA3MTo2QjA2QTI1MiIsInZpc2l0b3JfaWQiOiI2MDk1ODQxNjkwNTI5NDczMTA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | fd0e844f726c0d91e07371de83907a0d23b7ff9a1997d9d760a3231cb12493b5 |
| hovercard-subject-tag | pull_request:5124573682 |
| 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/32567/files |
| twitter:image | https://avatars.githubusercontent.com/u/1097294?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1097294?s=400&v=4 |
| og:image:alt | PR summary This PR includes the test case changes discussed in #32547: Adds TestAffine2D._check_transform to run a transform on a point or sequence of points. In the 1D case, this method converts ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4462ff7ebfd3d551f202659f2423dae617b6849d23b1df6465dc504ef497d14a |
| 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 | 6d3909414814ff86ce7da4c51a0f4918a13fb41b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width