Title: fill_between interpolation & nan issue · Issue #11781 · matplotlib/matplotlib · GitHub
Open Graph Title: fill_between interpolation & nan issue · Issue #11781 · matplotlib/matplotlib
X Title: fill_between interpolation & nan issue · Issue #11781 · matplotlib/matplotlib
Description: The issue was discovered here deeptools/pyGenomeTracks#37 Basically, when fill_between encounters a NaN in the y values, when interpolate=True it produces a strange output. This is without interpolation: import matplotlib.pyplot as plt i...
Open Graph Description: The issue was discovered here deeptools/pyGenomeTracks#37 Basically, when fill_between encounters a NaN in the y values, when interpolate=True it produces a strange output. This is without interpol...
X Description: The issue was discovered here deeptools/pyGenomeTracks#37 Basically, when fill_between encounters a NaN in the y values, when interpolate=True it produces a strange output. This is without interpol...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/11781
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"fill_between interpolation \u0026 nan issue","articleBody":"The issue was discovered here\r\nhttps://github.com/deeptools/pyGenomeTracks/pull/37\r\n\r\nBasically, when fill_between encounters a NaN in the y values, when interpolate=True it produces a strange output.\r\n\r\nThis is without interpolation:\r\n```python\r\nimport matplotlib.pyplot as plt\r\nimport numpy as np\r\n\r\nx = np.arange(107).astype(float)\r\ny = np.append(np.zeros((100))+0.01, [0.5, 0.75, 1, np.nan, 1, 0.75, 0.5])\r\n\r\nplt.figure(figsize=(20, 5))\r\nplt.fill_between(x, y, interpolate=False)\r\n```\r\n\r\n\r\n\r\nIf I turn interpolation on (which I wouldn't expect to do anything in this case, since there are not zero crossings), this is what I get:\r\n\r\n```python\r\nplt.figure(figsize=(20, 5))\r\nplt.fill_between(x, y, interpolate=True)\r\n```\r\n\r\n\r\nEven if I am misunderstanding something about how interpolation is supposed to work, clearly this is not what it should do...\r\n\r\nmpl 2.1.2, python 3.5.2","author":{"url":"https://github.com/Phlya","@type":"Person","name":"Phlya"},"datePublished":"2018-07-27T10:58:54.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":16},"url":"https://github.com/11781/matplotlib/issues/11781"}
| 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:e94e365f-958f-6066-05b0-5b578ee8393a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E33C:39F5AD:2BDDC7E:3B84B47:6A544EC9 |
| html-safe-nonce | c95b7a27cf7503d6118d50e28e1b5b91dd92daa64da5feafbb06454272510d87 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzNDOjM5RjVBRDoyQkREQzdFOjNCODRCNDc6NkE1NDRFQzkiLCJ2aXNpdG9yX2lkIjoiNTg1NjI5MDgzODc3MTE1ODcyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ce99597e71b20c8a6f5380a306f9252f78839135142c8693c99a69d6d38342aa |
| hovercard-subject-tag | issue:345183661 |
| 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/11781/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0582bd6163a6f95c7c80eb493b0aec16dd107836b9d2359a248694f00faaf902/matplotlib/matplotlib/issues/11781 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0582bd6163a6f95c7c80eb493b0aec16dd107836b9d2359a248694f00faaf902/matplotlib/matplotlib/issues/11781 |
| og:image:alt | The issue was discovered here deeptools/pyGenomeTracks#37 Basically, when fill_between encounters a NaN in the y values, when interpolate=True it produces a strange output. This is without interpol... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Phlya |
| 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