Title: Unexpected behavior for Axes.quiver(transform=None) · Issue #11153 · matplotlib/matplotlib · GitHub
Open Graph Title: Unexpected behavior for Axes.quiver(transform=None) · Issue #11153 · matplotlib/matplotlib
X Title: Unexpected behavior for Axes.quiver(transform=None) · Issue #11153 · matplotlib/matplotlib
Description: Bug report Bug summary I would expect that Axes.quiver(transform=None) would behave the same as leaving out the kwarg transform (None implying default). However this is not the case. Instead the default for a missing transform is Axes.tr...
Open Graph Description: Bug report Bug summary I would expect that Axes.quiver(transform=None) would behave the same as leaving out the kwarg transform (None implying default). However this is not the case. Instead the de...
X Description: Bug report Bug summary I would expect that Axes.quiver(transform=None) would behave the same as leaving out the kwarg transform (None implying default). However this is not the case. Instead the de...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/11153
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Unexpected behavior for Axes.quiver(transform=None)","articleBody":"\r\n### Bug report\r\n\r\n**Bug summary**\r\n\r\nI would expect that ``Axes.quiver(transform=None)`` would behave the same as leaving out the kwarg *transform* (None implying default). However this is not the case. Instead the default for a missing transform is `Axes.transData`.\r\n\r\nAs far as I understand, there is no reasonable semantics of an explicit `transform=None` here (except for 'use default'). It's probably an unintended implementation detail.\r\n\r\nI therefore propose to change the behavior of ``Axes.quiver(transform=None)`` to be the same as leaving out the kwarg. This would allow further code simplification with explicit kwargs (#11145).\r\n\r\n**Code for reproduction**\r\n\r\n~~~\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\nX = np.arange(-10, 10, 1)\r\nY = np.arange(-10, 10, 1)\r\nU, V = np.meshgrid(X, Y)\r\n\r\nfig, (ax1, ax2, ax3) = plt.subplots(1, 3, figsize=(12, 3))\r\nax1.quiver(X, Y, U, V)\r\nax2.quiver(X, Y, U, V, transform=None)\r\nax3.quiver(X, Y, U, V, transform=ax2.transData)\r\n\r\nplt.show()\r\n~~~\r\n\r\n\r\n\r\nExpected: All there Axes should be equal.\r\n","author":{"url":"https://github.com/timhoffm","@type":"Person","name":"timhoffm"},"datePublished":"2018-05-02T00:25:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/11153/matplotlib/issues/11153"}
| 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:e0ebc683-f007-2176-2d21-53a051b8b80f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DC1A:2A0782:2C1C8D:3AAF2A:6A52EC0C |
| html-safe-nonce | 702cbe13fe81b7a706288f7d865fa8906eeda1c7af7035c6daecb2a0156f4057 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQzFBOjJBMDc4MjoyQzFDOEQ6M0FBRjJBOjZBNTJFQzBDIiwidmlzaXRvcl9pZCI6IjQ2ODU1MDM5NDUyNTAxMDYzODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 72130610fbeff7ed175174ce73e0fe5f09ba57bfd86360fc0e0a19fd465fbad2 |
| hovercard-subject-tag | issue:319371998 |
| 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/11153/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3c3c44f7d7396944b1e622ae6088cf22fb39c1ebafa6abbb4c597bc15e6ac4b5/matplotlib/matplotlib/issues/11153 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3c3c44f7d7396944b1e622ae6088cf22fb39c1ebafa6abbb4c597bc15e6ac4b5/matplotlib/matplotlib/issues/11153 |
| og:image:alt | Bug report Bug summary I would expect that Axes.quiver(transform=None) would behave the same as leaving out the kwarg transform (None implying default). However this is not the case. Instead the de... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | timhoffm |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width