Title: weighted_wiggle stackplot fails when all lines are zero at same x · Issue #6313 · matplotlib/matplotlib · GitHub
Open Graph Title: weighted_wiggle stackplot fails when all lines are zero at same x · Issue #6313 · matplotlib/matplotlib
X Title: weighted_wiggle stackplot fails when all lines are zero at same x · Issue #6313 · matplotlib/matplotlib
Description: When using stackplot(..., baseline='weighted_wiggle') if all y arrays contain zero at some (interval of) x the plot stops rendering after that zero point. import numpy as np import matplotlib.pyplot as plt x = np.arange(10) y = np.random...
Open Graph Description: When using stackplot(..., baseline='weighted_wiggle') if all y arrays contain zero at some (interval of) x the plot stops rendering after that zero point. import numpy as np import matplotlib.pyplo...
X Description: When using stackplot(..., baseline='weighted_wiggle') if all y arrays contain zero at some (interval of) x the plot stops rendering after that zero point. import numpy as np import matplotl...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/6313
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"weighted_wiggle stackplot fails when all lines are zero at same x","articleBody":"When using `stackplot(..., baseline='weighted_wiggle')` if all `y` arrays contain zero at some (interval of) `x` the plot stops rendering after that zero point.\n\n``` python\nimport numpy as np\nimport matplotlib.pyplot as plt\n\nx = np.arange(10)\ny = np.random.random(10)\ny2 = np.random.random(10)\ny3 = np.random.random(10)\n\ny[5] = 0\ny3[5] = 0\n\nfig, ax = plt.subplots(3,2, figsize=(12,8))\n\nax[0,0].stackplot(x, y, baseline='sym')\nax[0,1].stackplot(x, y, baseline='weighted_wiggle')\nax[1,0].stackplot(x, y, y2, baseline='sym')\nax[1,1].stackplot(x, y, y2, baseline='weighted_wiggle')\nax[2,0].stackplot(x, y, y3, baseline='sym')\nax[2,1].stackplot(x, y, y3, baseline='weighted_wiggle')\n\nax[0,0].set_title('sym: no problem')\nax[0,1].set_title('failed: stops after zero `y` (x\u003e4)')\nax[1,1].set_title('success: non-zero `y2` saves the day')\nax[2,1].set_title('failed: stops after zero `y` and `y3` (x\u003e4)')\n\nplt.tight_layout()\nplt.show()\n```\n\nI have this issue with Matplotlib 1.5.1, installed via pip, with Python 2.7.10 on Ubuntu Linux 15.10.\n","author":{"url":"https://github.com/egpbos","@type":"Person","name":"egpbos"},"datePublished":"2016-04-18T11:32:08.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/6313/matplotlib/issues/6313"}
| 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:e2b478af-ff64-f8f2-548c-dcdde01278ba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A8CE:398175:160098:1D8501:6A55797B |
| html-safe-nonce | ddada02ab6574ddb7f5251d495332df8b91e28848ab3847728c50442da557fe3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOENFOjM5ODE3NToxNjAwOTg6MUQ4NTAxOjZBNTU3OTdCIiwidmlzaXRvcl9pZCI6IjcyMTUzODY5NDQxMzc5NTE2MTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d5f3ae60081aef7fc46ac2077109361f25ac70163cb5a2066f2b80146e02d6e9 |
| hovercard-subject-tag | issue:149124708 |
| 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/6313/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1b3f5f225c15934ed22541b4f4390d9e199b96dff825b26dc71c408b1c50db7b/matplotlib/matplotlib/issues/6313 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1b3f5f225c15934ed22541b4f4390d9e199b96dff825b26dc71c408b1c50db7b/matplotlib/matplotlib/issues/6313 |
| og:image:alt | When using stackplot(..., baseline='weighted_wiggle') if all y arrays contain zero at some (interval of) x the plot stops rendering after that zero point. import numpy as np import matplotlib.pyplo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | egpbos |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e |
| 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 | 617ea94e2807dc3052601c560530bb3f8259bc9a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width