Title: BUG: incorrect error bar colors when NaN values are present · Issue #13799 · matplotlib/matplotlib · GitHub
Open Graph Title: BUG: incorrect error bar colors when NaN values are present · Issue #13799 · matplotlib/matplotlib
X Title: BUG: incorrect error bar colors when NaN values are present · Issue #13799 · matplotlib/matplotlib
Description: Bug report Bug summary When using variable colors for error bars, the colors are incorrect/shifted if NaN values are present. Code for reproduction import numpy as np import matplotlib.pyplot as plt x = [1, np.nan, 3, 4, 5] colors = ['re...
Open Graph Description: Bug report Bug summary When using variable colors for error bars, the colors are incorrect/shifted if NaN values are present. Code for reproduction import numpy as np import matplotlib.pyplot as pl...
X Description: Bug report Bug summary When using variable colors for error bars, the colors are incorrect/shifted if NaN values are present. Code for reproduction import numpy as np import matplotlib.pyplot as pl...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/13799
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BUG: incorrect error bar colors when NaN values are present","articleBody":"### Bug report\r\n\r\n**Bug summary**\r\n\r\nWhen using variable colors for error bars, the colors are incorrect/shifted if NaN values are present.\r\n\r\n**Code for reproduction**\r\n\r\n```python\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n\r\nx = [1, np.nan, 3, 4, 5]\r\ncolors = ['red', 'green', 'blue', 'purple', 'orange']\r\n\r\nfig = plt.figure()\r\nax = fig.add_subplot(1, 1, 1)\r\nax.scatter(x, x, c=colors, s=100)\r\nax.errorbar(x, x, xerr=0.2, yerr=0.2, ecolor=colors, fmt='none')\r\nfig.savefig('errorbar_colors.png')\r\n```\r\n\r\n**Actual outcome**\r\n\r\n\r\n\r\n**Expected outcome**\r\n\r\n\r\n\r\n**Matplotlib version**\r\n\r\n * Operating system: MacOS X 10.14.2\r\n * Matplotlib version: 3.0.3 (from pip)\r\n * Matplotlib backend: Agg\r\n * Python version: 3.7.1\r\n\r\n","author":{"url":"https://github.com/astrofrog","@type":"Person","name":"astrofrog"},"datePublished":"2019-03-29T13:07:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/13799/matplotlib/issues/13799"}
| 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:9060b1b1-6380-aa75-6ec1-7d0c220e5570 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A586:F87E9:6A5559:8FD151:6A51F005 |
| html-safe-nonce | e7601b0cd7cbb0c2e562897ea0a5074a93ed406d0c1e9426574c1c02d6139f78 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTg2OkY4N0U5OjZBNTU1OTo4RkQxNTE6NkE1MUYwMDUiLCJ2aXNpdG9yX2lkIjoiMTI4OTMzMTI0Mzk2NDU1OTM2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 401719fbd28293e65705cf6769e6b6e3fc85b442d752e69813a47ddef60f6c2f |
| hovercard-subject-tag | issue:426977576 |
| 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/13799/issue_layout |
| twitter:image | https://opengraph.githubassets.com/18021adbcf992eff5cccc2e441f909820079e5eba561dea9f11023213c2b7edd/matplotlib/matplotlib/issues/13799 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/18021adbcf992eff5cccc2e441f909820079e5eba561dea9f11023213c2b7edd/matplotlib/matplotlib/issues/13799 |
| og:image:alt | Bug report Bug summary When using variable colors for error bars, the colors are incorrect/shifted if NaN values are present. Code for reproduction import numpy as np import matplotlib.pyplot as pl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | astrofrog |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width