Title: [Bug]: Errorbars separated from markers with negative errors · Issue #21101 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: Errorbars separated from markers with negative errors · Issue #21101 · matplotlib/matplotlib
X Title: [Bug]: Errorbars separated from markers with negative errors · Issue #21101 · matplotlib/matplotlib
Description: Bug summary If unique upper and lower errors are specified, and one of them is negative, then the errorbar will appear separate from the marker. It looks like this was mentioned ages ago in #2717 but I could not find a follow up to that ...
Open Graph Description: Bug summary If unique upper and lower errors are specified, and one of them is negative, then the errorbar will appear separate from the marker. It looks like this was mentioned ages ago in #2717 b...
X Description: Bug summary If unique upper and lower errors are specified, and one of them is negative, then the errorbar will appear separate from the marker. It looks like this was mentioned ages ago in #2717 b...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/21101
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: Errorbars separated from markers with negative errors","articleBody":"### Bug summary\n\nIf unique upper and lower errors are specified, and one of them is negative, then the errorbar will appear separate from the marker. It looks like this was mentioned ages ago in #2717 but I could not find a follow up to that issue.\n\n### Code for reproduction\n\n```python\nimport matplotlib.pyplot as plt\r\n\r\n# 1\r\nplt.errorbar([0], [0], yerr=[[-0.5], [1]], marker=\"o\")\r\n\r\n# 2\r\nplt.errorbar([0], [0], xerr=[[-0.5], [1]], marker=\"o\")\r\n\r\n# 3\r\nplt.errorbar([0], [0], xerr=[[-0.5], [1]], yerr=[[-0.5], [1]], marker=\"o\")\n```\n\n\n### Actual outcome\n\n# 1\r\n\r\n\r\n\r\n# 2\r\n\r\n\r\n\r\n# 3\r\n\r\n\r\n\n\n### Expected outcome\n\nI understand the documentation states that the error inputs should be positive values, but I would expect some error like `ValueError` when there is a negative value provided, rather than it trying to make the plot. I would prefer an error being thrown and the plot not being made.\n\n### Operating system\n\nCentOS Linux release 7.9.2009 (Core)\n\n### Matplotlib Version\n\n3.4.3\n\n### Matplotlib Backend\n\nmodule://matplotlib_inline.backend_inline\n\n### Python version\n\n3.9.6\n\n### Jupyter version\n\n3.1.9\n\n### Other libraries\n\n_No response_\n\n### Installation\n\nconda\n\n### Conda channel\n\n_No response_","author":{"url":"https://github.com/nbrunett","@type":"Person","name":"nbrunett"},"datePublished":"2021-09-16T21:00:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/21101/matplotlib/issues/21101"}
| 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:1eb80520-7608-af7c-b640-4d51848a27ba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A4C8:24AEC:12FBC1F:1BB1532:6A54BE6D |
| html-safe-nonce | bf2f159d0cd11a10ef14531a8b34320e10c37a1b05cb963e30557bd26a3e2f75 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNEM4OjI0QUVDOjEyRkJDMUY6MUJCMTUzMjo2QTU0QkU2RCIsInZpc2l0b3JfaWQiOiI2MTk1MTkxMjUwNTExMjQ5MDA1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c802797bd8323b7bdd3eeec4d51f547f37d0f1adc607e1cf3f52380179dcffc0 |
| hovercard-subject-tag | issue:998634886 |
| 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/21101/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3adcd44603e19a4c538b811b02f2a1ac422e627fe0aab6a32be52086cb251455/matplotlib/matplotlib/issues/21101 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3adcd44603e19a4c538b811b02f2a1ac422e627fe0aab6a32be52086cb251455/matplotlib/matplotlib/issues/21101 |
| og:image:alt | Bug summary If unique upper and lower errors are specified, and one of them is negative, then the errorbar will appear separate from the marker. It looks like this was mentioned ages ago in #2717 b... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nbrunett |
| 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 | 69f9664dd5e7a82ba8ab1b4cb7f5a2f09333ab38 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width