Title: Linewidth(s) keywords not working with quiver · Issue #8630 · matplotlib/matplotlib · GitHub
Open Graph Title: Linewidth(s) keywords not working with quiver · Issue #8630 · matplotlib/matplotlib
X Title: Linewidth(s) keywords not working with quiver · Issue #8630 · matplotlib/matplotlib
Description: Cannot set different arrow sizes using quiver This seems to be a regression in the behaviour of the quiver function According to this SO post, quiver used to accept a linewidths array argument to set the arrow sizes; however, this is no ...
Open Graph Description: Cannot set different arrow sizes using quiver This seems to be a regression in the behaviour of the quiver function According to this SO post, quiver used to accept a linewidths array argument to s...
X Description: Cannot set different arrow sizes using quiver This seems to be a regression in the behaviour of the quiver function According to this SO post, quiver used to accept a linewidths array argument to s...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/8630
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Linewidth(s) keywords not working with quiver","articleBody":"### Cannot set different arrow sizes using quiver\r\n\r\n**This seems to be a regression in the behaviour of the quiver function**\r\n\r\nAccording to [this SO post](http://stackoverflow.com/questions/15701952/change-size-of-arrows-using-matplotlib-quiver#15702208), ``quiver`` used to accept a `linewidths` array argument to set the arrow sizes; however, this is no longer true with 2.02 on Py2/3K.\r\nThe `linewidth` item pops 5 times in [`quiver.py`](https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/quiver.py) though.\r\n\r\n**Code for reproduction**\r\nFrom the [SO post](http://stackoverflow.com/questions/15701952/change-size-of-arrows-using-matplotlib-quiver#15702208), but the code (reported as working) does not work on my install.\r\n\r\n```python\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\nsin = np.sin\r\ncos = np.cos\r\n\r\n# http://stackoverflow.com/questions/6370742/#6372413\r\nxmax = 4.0\r\nxmin = -xmax\r\nD = 20\r\nymax = 4.0\r\nymin = -ymax\r\nx = np.linspace(xmin, xmax, D)\r\ny = np.linspace(ymin, ymax, D)\r\nX, Y = np.meshgrid(x, y)\r\n# plots the vector field for Y'=Y**3-3*Y-X\r\ndeg = np.arctan(Y ** 3 - 3 * Y - X)\r\nwidths = np.linspace(0, 2, X.size)\r\nplt.quiver(X, Y, cos(deg), sin(deg), linewidths=widths)\r\nplt.show()\r\n```\r\n\r\n**Actual outcome**\r\n\r\nOutput is the same as that of the initial [SO post](http://stackoverflow.com/questions/6370742/#6372413) where the `linewidths` keyword is not set.\r\n\r\n**Matplotlib version**\r\n\r\n * Operating System: Manjaro\r\n * Matplotlib Version: 2.02\r\n * Python Version: 2.7.13 \u0026 3.6.1\r\n * Jupyter Version (if applicable): /\r\n * Other Libraries: numpy 1.12.1","author":{"url":"https://github.com/Silmathoron","@type":"Person","name":"Silmathoron"},"datePublished":"2017-05-16T08:06:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/8630/matplotlib/issues/8630"}
| 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:1e0758c8-2135-d990-e49f-56fd1f027b2d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 92FE:2D523B:126CBD4:18E45EB:6A5342B4 |
| html-safe-nonce | 8aab446121300f60611f9bb759199f5f717015bbf71fad32388f33b52bf7996d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkZFOjJENTIzQjoxMjZDQkQ0OjE4RTQ1RUI6NkE1MzQyQjQiLCJ2aXNpdG9yX2lkIjoiMTQxNzUyMTE0NDI3ODUwMDAyMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | eee3a00e869bba96cd4f8ab16d2a16949156cca20b2cb880010ce28ae90a3c26 |
| hovercard-subject-tag | issue:228947617 |
| 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/8630/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ab44e8125e6d96f9cb976722d973acb4a048de80e4b58d724442d04de866f509/matplotlib/matplotlib/issues/8630 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ab44e8125e6d96f9cb976722d973acb4a048de80e4b58d724442d04de866f509/matplotlib/matplotlib/issues/8630 |
| og:image:alt | Cannot set different arrow sizes using quiver This seems to be a regression in the behaviour of the quiver function According to this SO post, quiver used to accept a linewidths array argument to s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Silmathoron |
| 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