Title: validation of `pivot` in `quiver` · Issue #3951 · matplotlib/matplotlib · GitHub
Open Graph Title: validation of `pivot` in `quiver` · Issue #3951 · matplotlib/matplotlib
X Title: validation of `pivot` in `quiver` · Issue #3951 · matplotlib/matplotlib
Description: Noted as part of #3907, the inputs on pivot for quiver is very permissive and will take 'mid' or 'middle', however it will also work with out exception with any string input (by just silently falling back to 'tail'): X, Y = np.meshgrid(n...
Open Graph Description: Noted as part of #3907, the inputs on pivot for quiver is very permissive and will take 'mid' or 'middle', however it will also work with out exception with any string input (by just silently falli...
X Description: Noted as part of #3907, the inputs on pivot for quiver is very permissive and will take 'mid' or 'middle', however it will also work with out exception with any string input (by jus...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/3951
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"validation of `pivot` in `quiver`","articleBody":"Noted as part of #3907, the inputs on `pivot` for quiver is very permissive and will take 'mid' or 'middle', however it will also work with out exception with _any_ string input (by just silently falling back to 'tail'):\n\n``` python\nX, Y = np.meshgrid(np.linspace(-np.pi, np.pi, 16), np.linspace(-np.pi, np.pi, 16))\nv = np.sin(X)\nu = np.cos(Y)\nplt.quiver(X, Y, u, v)\nplt.quiver(X, Y, u, v, color='b', pivot='ardvaark', alpha=.5)\n```\n\nI propose that a) we validate the input to be in `{'tip', 'tail', 'mid', 'middle'}` and accept but warn anything else down to `tail` for one version before raising.\n","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2014-12-28T01:14:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/3951/matplotlib/issues/3951"}
| 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:59a26022-c4e1-9be4-6050-6e51f71ab3b4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E97C:35AF44:22270C9:2DC58EE:6A546DD0 |
| html-safe-nonce | 08637c328b984463907a5196b65e2c92ef9f8cb9984a5d2a72c43420fd57f636 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTdDOjM1QUY0NDoyMjI3MEM5OjJEQzU4RUU6NkE1NDZERDAiLCJ2aXNpdG9yX2lkIjoiODY4NTYyOTMwNDExMjE4MDY4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a24c828d29d63089bc3bdba28f4ae4f012f37c3cc975f5658f7a7e23eb0c1819 |
| hovercard-subject-tag | issue:52970049 |
| 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/3951/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4c3ff9a2669c64a8271b5951031a3587a9aad1d4c8c1b206d21cc1590e0f3ec9/matplotlib/matplotlib/issues/3951 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4c3ff9a2669c64a8271b5951031a3587a9aad1d4c8c1b206d21cc1590e0f3ec9/matplotlib/matplotlib/issues/3951 |
| og:image:alt | Noted as part of #3907, the inputs on pivot for quiver is very permissive and will take 'mid' or 'middle', however it will also work with out exception with any string input (by just silently falli... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tacaswell |
| 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