8000 Improve docstrings in offsetbox.py (#16085) · matplotlib/matplotlib@7c119b6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7c119b6

Browse files
authored
Improve docstrings in offsetbox.py (#16085)
* Improve docstrings in offsetbox.py * Improve docstrings in offsetbox.py
1 parent 42d4f03 commit 7c119b6

File tree

6 files changed

+159
-106
lines changed

6 files changed

+159
-106
lines changed

doc/api/offsetbox_api.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
``matplotlib.offsetbox``
33
************************
44

5+
.. inheritance-diagram:: matplotlib.offsetbox
6+
:parts: 1
7+
58
.. automodule:: matplotlib.offsetbox
69
:members:
710
:undoc-members:

lib/matplotlib/animation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,7 +1477,7 @@ def _loop_delay(self, *args):
14771477

14781478
class ArtistAnimation(TimedAnimation):
14791479
"""
1480-
Animation using a fixed set of `Artist` objects.
1480+
Animation using a fixed set of `.Artist` objects.
14811481
14821482
Before creating an instance, all plotting should have taken place
14831483
and the relevant artists saved.

lib/matplotlib/artist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1217,7 +1217,7 @@ def __init__(self, o):
12171217
r"""
12181218
Initialize the artist inspector with an `Artist` or an iterable of
12191219
`Artist`\s. If an iterable is used, we assume it is a homogeneous
1220-
sequence (all `Artists` are of the same type) and it is your
1220+
sequence (all `Artist`\s are of the same type) and it is your
12211221
responsibility to make sure this is so.
12221222
"""
12231223
if not isinstance(o, Artist):

lib/matplotlib/legend.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def __init__(self, parent, handles, labels,
424424
self._scatteryoffsets = np.tile(self._scatteryoffsets,
425425
reps)[:self.scatterpoints]
426426

427-
# _legend_box is an OffsetBox instance that contains all
427+
# _legend_box is a VPacker instance that contains all
428428
# legend items and will be initialized from _init_legend_box()
429429
# method.
430430
self._legend_box = None

0 commit comments

Comments
 (0)
0