Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add markerfacealt to pass-through arguments for error bar lines #23475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Aug 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions doc/api/next_api_changes/behavior/23475-WLQ.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
The markerfacecoloralt parameter to Line2D is now supported by axes.errorbar
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- markerfacecoloralt is now passed to the line plotter from axes.errorbar
- Documentation for axes.errorbar how accurately lists which properties are
passed on to Line2D, rather than claiming that all kwargs are passed on
21 changes: 20 additions & 1 deletion lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3367,7 +3367,25 @@ def errorbar(self, x, y, yerr=None, xerr=None,
property names, *markerfacecolor*, *markeredgecolor*, *markersize*
and *markeredgewidth*.

Valid kwargs for the marker properties are `.Line2D` properties:
Valid kwargs for the marker properties are:

- *dashes*
- *dash_capstyle*
- *dash_joinstyle*
- *drawstyle*
- *fillstyle*
- *linestyle*
- *marker*
- *markeredgecolor*
- *markeredgewidth*
- *markerfacecolor*
- *markerfacecoloralt*
- *markersize*
- *markevery*
- *solid_capstyle*
- *solid_joinstyle*

Refer to the corresponding `.Line2D` property for more details:

%(Line2D:kwdoc)s
"""
Expand Down Expand Up @@ -3467,6 +3485,7 @@ def _upcast_err(err):
# Eject any line-specific information from format string, as it's not
# needed for bars or caps.
for key in ['marker', 'markersize', 'markerfacecolor',
'markerfacecoloralt',
'markeredgewidth', 'markeredgecolor', 'markevery',
'linestyle', 'fillstyle', 'drawstyle', 'dash_capstyle',
'dash_joinstyle', 'solid_capstyle', 'solid_joinstyle',
Expand Down