Title: [Bug]: markerfacecoloralt not supported when drawing errorbars · Issue #23375 · matplotlib/matplotlib · GitHub
Open Graph Title: [Bug]: markerfacecoloralt not supported when drawing errorbars · Issue #23375 · matplotlib/matplotlib
X Title: [Bug]: markerfacecoloralt not supported when drawing errorbars · Issue #23375 · matplotlib/matplotlib
Description: Bug summary Although the documentation says that all Line2D kwargs should be supported, only a small handful actually are: matplotlib/lib/matplotlib/axes/_axes.py Line 3393 in 4f5cacf for key in ['marker', 'markersize', 'markerfacecolor'...
Open Graph Description: Bug summary Although the documentation says that all Line2D kwargs should be supported, only a small handful actually are: matplotlib/lib/matplotlib/axes/_axes.py Line 3393 in 4f5cacf for key in ['...
X Description: Bug summary Although the documentation says that all Line2D kwargs should be supported, only a small handful actually are: matplotlib/lib/matplotlib/axes/_axes.py Line 3393 in 4f5cacf for key in [&...
Opengraph URL: https://github.com/matplotlib/matplotlib/issues/23375
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Bug]: markerfacecoloralt not supported when drawing errorbars","articleBody":"### Bug summary\n\nAlthough the documentation says that all Line2D `kwargs` should be supported, only a small handful actually are:\r\n\r\nhttps://github.com/matplotlib/matplotlib/blob/4f5cacfde9024076d9ab0cb6ad1c9a7cf352d5f9/lib/matplotlib/axes/_axes.py#L3393\r\n\r\n`markerfacecoloralt` is not among that list.\n\n### Code for reproduction\n\n```python\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n\r\n# example data\r\nx = np.arange(0.1, 4, 0.5)\r\ny = np.exp(-x)\r\n\r\n# example error bar values that vary with x-position\r\nerror = 0.1 + 0.2 * x\r\n\r\nfig, ax = plt.subplots(1, 1)\r\nax.errorbar(x, y, yerr=error, fmt='-o', markerfacecoloralt='white')\r\nax.set_title('variable, symmetric error')\n```\n\n\n### Actual outcome\n\n`AttributeError: 'LineCollection' object has no property 'markerfacecoloralt'`\n\n### Expected outcome\n\nNo error\n\n### Additional information\n\n`markerfacecoloralt` needs to be added to this list: https://github.com/matplotlib/matplotlib/blob/4f5cacfde9024076d9ab0cb6ad1c9a7cf352d5f9/lib/matplotlib/axes/_axes.py#L3393\r\n\r\nBetter yet, automagically check against the signature of `Line2D`.\n\n### Operating system\n\nUbuntu 20.04.4\n\n### Matplotlib Version\n\n3.5.2\n\n### Matplotlib Backend\n\nQtAgg\n\n### Python version\n\n3.8.10\n\n### Jupyter version\n\n_No response_\n\n### Installation\n\npip","author":{"url":"https://github.com/wqian94","@type":"Person","name":"wqian94"},"datePublished":"2022-06-30T20:55:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/23375/matplotlib/issues/23375"}
| 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:f0b15c8b-32a2-ab1c-7763-28e4adba7c43 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DEF4:1FC2EC:583F4C:79FA8A:6A512350 |
| html-safe-nonce | 115cb20b1088166a0a2fca00223d05fbd891eca0e63d2987b8ad856c0f159247 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERUY0OjFGQzJFQzo1ODNGNEM6NzlGQThBOjZBNTEyMzUwIiwidmlzaXRvcl9pZCI6IjEwNTYzMjAzODA3NDI2MjM1MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cecd44b5ed917da137a35fd63ea9bacbbd3e5fcdd7d9eb7f79274af43ace283a |
| hovercard-subject-tag | issue:1290632211 |
| 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/23375/issue_layout |
| twitter:image | https://opengraph.githubassets.com/911a04cebf60a995a36d1c3970c84b60371145d7662a16d1d08ca0fbe6c132c7/matplotlib/matplotlib/issues/23375 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/911a04cebf60a995a36d1c3970c84b60371145d7662a16d1d08ca0fbe6c132c7/matplotlib/matplotlib/issues/23375 |
| og:image:alt | Bug summary Although the documentation says that all Line2D kwargs should be supported, only a small handful actually are: matplotlib/lib/matplotlib/axes/_axes.py Line 3393 in 4f5cacf for key in ['... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | wqian94 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 689b683944b0d7f015d0e776452c970832fa81b82dc15284469b556ecced715b |
| 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 | 942b51ed3bd5feee3d5e2719f890a5fe286edbbb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width