Title: [MNT]: Masked arrays with units · Issue #24733 · matplotlib/matplotlib · GitHub
Open Graph Title: [MNT]: Masked arrays with units · Issue #24733 · matplotlib/matplotlib
X Title: [MNT]: Masked arrays with units · Issue #24733 · matplotlib/matplotlib
Description: Summary In #24545 it was identified that sometimes there is a problem with masked arrays and units. The solution in #24732 is rather straightforward, but it lead me to check the code for potential other locations. Proposed fix These are ...
Open Graph Description: Summary In #24545 it was identified that sometimes there is a problem with masked arrays and units. The solution in #24732 is rather straightforward, but it lead me to check the code for potential ...
X Description: Summary In #24545 it was identified that sometimes there is a problem with masked arrays and units. The solution in #24732 is rather straightforward, but it lead me to check the code for potential ...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/24733
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[MNT]: Masked arrays with units","articleBody":"### Summary\r\n\r\nIn #24545 it was identified that sometimes there is a problem with masked arrays and units. The solution in #24732 is rather straightforward, but it lead me to check the code for potential other locations. \r\n\r\n### Proposed fix\r\n\r\nThese are the locations I potentially found. It should probably be confirmed that it is a problem before modifying them (and those cases will be a good base for a test):\r\n\r\nhttps://github.com/matplotlib/matplotlib/blob/cc85fb66da61f85259d7d99f06faa6285f4ed225/lib/matplotlib/collections.py#L548-L550\r\n(Here one should probably take a complete look at the `set_offsets`/`get_offsets` setup and see if one can remove redundant calls. See a bit of the discussions in #24732)\r\n\r\nhttps://github.com/matplotlib/matplotlib/blob/cc85fb66da61f85259d7d99f06faa6285f4ed225/lib/matplotlib/collections.py#L2099\r\n(Not sure if it makes sense here.)\r\n\r\nA bunch in quiver, but not sure how well that supports units and masks. Similar with projections.\r\n\r\nAs discussed in https://github.com/matplotlib/matplotlib/pull/24732#issuecomment-1352981155 it seems like `date2num` does not support masked arrays, so making it do that is also a step in the right direction for this. (This is dealt with in #24734)","author":{"url":"https://github.com/oscargus","@type":"Person","name":"oscargus"},"datePublished":"2022-12-15T10:36:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/24733/matplotlib/issues/24733"}
| 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:139621b8-5262-c59f-d2d0-74949df0ca45 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDD2:73CFA:555219:75B030:6A51225B |
| html-safe-nonce | ca93207ce3cb2f35ba9c4392e0515f722a3dec33eda30e7afbf95340e18ff110 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREQyOjczQ0ZBOjU1NTIxOTo3NUIwMzA6NkE1MTIyNUIiLCJ2aXNpdG9yX2lkIjoiODM0NDUzMjY2NTE0MDA2MDc2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7b9af02527ea2ba53c46dd8ddc62dfcd026b59b1787802752dbe80401cc3ebf9 |
| hovercard-subject-tag | issue:1498193624 |
| 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/24733/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c6b12e56039599c32d777afa078c4b798df680bdb1f3cbb3bd40e9786f71ff18/matplotlib/matplotlib/issues/24733 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c6b12e56039599c32d777afa078c4b798df680bdb1f3cbb3bd40e9786f71ff18/matplotlib/matplotlib/issues/24733 |
| og:image:alt | Summary In #24545 it was identified that sometimes there is a problem with masked arrays and units. The solution in #24732 is rather straightforward, but it lead me to check the code for potential ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oscargus |
| hostname | github.com |
| expected-hostname | github.com |
| None | 689b683944b0d7f015d0e776452c970832fa81b82dc15284469b556ecced715b |
| 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 | 942b51ed3bd5feee3d5e2719f890a5fe286edbbb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width