Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7167748

Browse filesBrowse files
authored
Merge pull request #10041 from matplotlib/auto-backport-of-pr-10027
Backport PR #10027 on branch v2.1.x
2 parents 843ed52 + bfacbcd commit 7167748
Copy full SHA for 7167748

File tree

Expand file treeCollapse file tree

2 files changed

+30
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+30
-8
lines changed
Open diff view settings
Collapse file

‎lib/matplotlib/axes/_axes.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+12-8Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2738,7 +2738,7 @@ def errorbar(self, x, y, yerr=None, xerr=None,
27382738
releases.
27392739
27402740
barsabove : bool, optional, default: False
2741-
if True , will plot the errorbars above the plot
2741+
If True , will plot the errorbars above the plot
27422742
symbols. Default is below.
27432743
27442744
lolims / uplims / xlolims / xuplims : bool, optional, default:None
@@ -2750,18 +2750,22 @@ def errorbar(self, x, y, yerr=None, xerr=None,
27502750
before :meth:`errorbar`.
27512751
27522752
errorevery : positive integer, optional, default:1
2753-
subsamples the errorbars. e.g., if errorevery=5, errorbars for
2753+
Subsamples the errorbars. e.g., if errorevery=5, errorbars for
27542754
every 5-th datapoint will be plotted. The data plot itself still
27552755
shows all data points.
27562756
27572757
Returns
27582758
-------
2759-
plotline : :class:`~matplotlib.lines.Line2D` instance
2760-
x, y plot markers and/or line
2761-
caplines : list of :class:`~matplotlib.lines.Line2D` instances
2762-
error bar cap
2763-
barlinecols : list of :class:`~matplotlib.collections.LineCollection`
2764-
horizontal and vertical error ranges.
2759+
:class:`~.container.ErrorbarContainer`
2760+
The container contains:
2761+
2762+
- plotline: :class:`~matplotlib.lines.Line2D` instance of
2763+
x, y plot markers and/or line.
2764+
- caplines: A tuple of :class:`~matplotlib.lines.Line2D` instances
2765+
of the error bar caps.
2766+
- barlinecols: A tuple of
2767+
:class:`~matplotlib.collections.LineCollection` with the
2768+
horizontal and vertical error ranges.
27652769
27662770
Other Parameters
27672771
----------------
Collapse file

‎lib/matplotlib/container.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/container.py
+18Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,24 @@ def __init__(self, patches, errorbar=None, **kwargs):
114114

115115

116116
class ErrorbarContainer(Container):
117+
'''
118+
Container for errobars.
119+
120+
Attributes
121+
----------
122+
lines : tuple
123+
Tuple of ``(data_line, caplines, barlinecols)``.
124+
125+
- data_line : :class:`~matplotlib.lines.Line2D` instance of
126+
x, y plot markers and/or line.
127+
- caplines : tuple of :class:`~matplotlib.lines.Line2D` instances of
128+
the error bar caps.
129+
- barlinecols : list of :class:`~matplotlib.collections.LineCollection`
130+
with the horizontal and vertical error ranges.
131+
132+
has_xerr, has_yerr : bool
133+
``True`` if the errorbar has x/y errors.
134+
'''
117135

118136
def __init__(self, lines, has_xerr=False, has_yerr=False, **kwargs):
119137
self.lines = lines

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.