Skip to content

Commit 9736069

Browse files
committed
Improve docstrings in offsetbox.py
1 parent aef04ab commit 9736069

File tree

6 files changed

+167
-103
lines changed

6 files changed

+167
-103
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.OffsetBox matplotlib.offsetbox.PackerBase matplotlib.offsetbox.VPacker matplotlib.offsetbox.HPacker matplotlib.offsetbox.PaddedBox matplotlib.offsetbox.DrawingArea matplotlib.offsetbox.TextArea matplotlib.offsetbox.AuxTransformBox matplotlib.offsetbox.AnchoredOffsetbox matplotlib.offsetbox.AnchoredText matplotlib.offsetbox.OffsetImage matplotlib.offsetbox.AnnotationBbox matplotlib.offsetbox.DraggableBase matplotlib.offsetbox.DraggableOffsetBox matplotlib.offsetbox.DraggableAnnotation
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
@@ -1463,7 +1463,7 @@ def _loop_delay(self, *args):
14631463

14641464
class ArtistAnimation(TimedAnimation):
14651465
"""
1466-
Animation using a fixed set of `Artist` objects.
1466+
Animation using a fixed set of `.Artist` objects.
14671467
14681468
Before creating an instance, all plotting should have taken place
14691469
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)