FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add markerfacealt to pass-through arguments for error bar lines by wqian94 · Pull Request #23475 · matplotlib/matplotlib · GitHub

Repository navigation

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) .rst  (1) All 2 file types selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
5 changes: 5 additions & 0 deletions doc/api/next_api_changes/behavior/23475-WLQ.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL