Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commita49b6bc

Browse files
authored
Merge pull request#28474 from QuLogic/container-types
Fix typing and docs for containers
2 parentsd347c32 +bb20e8e commita49b6bc

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

‎lib/matplotlib/axes/_axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3533,11 +3533,11 @@ def errorbar(self, x, y, yerr=None, xerr=None,
35333533
`.ErrorbarContainer`
35343534
The container contains:
35353535
3536-
-plotline: `~matplotlib.lines.Line2D` instance of x, y plot markers
3536+
-data_line : A `~matplotlib.lines.Line2D` instance of x, y plot markers
35373537
and/or line.
3538-
- caplines: A tuple of `~matplotlib.lines.Line2D` instances of the error
3538+
- caplines: A tuple of `~matplotlib.lines.Line2D` instances of the error
35393539
bar caps.
3540-
- barlinecols: A tuple of `.LineCollection` with the horizontal and
3540+
- barlinecols: A tuple of `.LineCollection` with the horizontal and
35413541
vertical error ranges.
35423542
35433543
Other Parameters

‎lib/matplotlib/container.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ class ErrorbarContainer(Container):
8787
lines : tuple
8888
Tuple of ``(data_line, caplines, barlinecols)``.
8989
90-
- data_line ::class:`~matplotlib.lines.Line2D` instance of
91-
x, y plot markersand/or line.
92-
- caplines : tuple of:class:`~matplotlib.lines.Line2D` instances of
93-
the errorbar caps.
94-
- barlinecols :listof:class:`~matplotlib.collections.LineCollection`
95-
with thehorizontal and vertical error ranges.
90+
- data_line :A`~matplotlib.lines.Line2D` instance of x, y plot markers
91+
and/or line.
92+
- caplines :Atuple of `~matplotlib.lines.Line2D` instances of the error
93+
bar caps.
94+
- barlinecols :A tupleof `~matplotlib.collections.LineCollection` with the
95+
horizontal and vertical error ranges.
9696
9797
has_xerr, has_yerr : bool
9898
``True`` if the errorbar has x/y errors.
@@ -115,13 +115,13 @@ class StemContainer(Container):
115115
116116
Attributes
117117
----------
118-
markerline : :class:`~matplotlib.lines.Line2D`
118+
markerline : `~matplotlib.lines.Line2D`
119119
The artist of the markers at the stem heads.
120120
121-
stemlines :list of :class:`~matplotlib.lines.Line2D`
121+
stemlines : `~matplotlib.collections.LineCollection`
122122
The artists of the vertical lines for all stems.
123123
124-
baseline ::class:`~matplotlib.lines.Line2D`
124+
baseline : `~matplotlib.lines.Line2D`
125125
The artist of the horizontal baseline.
126126
"""
127127
def__init__(self,markerline_stemlines_baseline,**kwargs):
@@ -130,7 +130,7 @@ def __init__(self, markerline_stemlines_baseline, **kwargs):
130130
----------
131131
markerline_stemlines_baseline : tuple
132132
Tuple of ``(markerline, stemlines, baseline)``.
133-
``markerline`` contains the `.LineCollection` of the markers,
133+
``markerline`` contains the `.Line2D` of the markers,
134134
``stemlines`` is a `.LineCollection` of the main lines,
135135
``baseline`` is the `.Line2D` of the baseline.
136136
"""

‎lib/matplotlib/container.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ class BarContainer(Container):
3434
)->None: ...
3535

3636
classErrorbarContainer(Container):
37-
lines:tuple[Line2D,Line2D,LineCollection]
37+
lines:tuple[Line2D,tuple[Line2D,...],tuple[LineCollection, ...]]
3838
has_xerr:bool
3939
has_yerr:bool
4040
def__init__(
4141
self,
42-
lines:tuple[Line2D,Line2D,LineCollection],
42+
lines:tuple[Line2D,tuple[Line2D,...],tuple[LineCollection, ...]],
4343
has_xerr:bool= ...,
4444
has_yerr:bool= ...,
4545
**kwargs

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp