Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e6181de

Browse files
committed
Reform kwarg documentation in axes_grid1.inset_locator
Add six import for consistency
1 parent a55250f commit e6181de

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

lib/mpl_toolkits/axes_grid1/inset_locator.py

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
unicode_literals)
66

77
from matplotlib import docstring
8+
from matplotlib.externals import six
89
from matplotlib.offsetbox import AnchoredOffsetbox
910
from matplotlib.patches import Patch, Rectangle
1011
from matplotlib.path import Path
@@ -157,8 +158,9 @@ def __init__(self, bbox, **kwargs):
157158
bbox : `matplotlib.transforms.Bbox`
158159
Bbox to use for the extents of this patch.
159160
160-
The kwargs are Patch properties:
161-
%(Patch)s
161+
**kwargs
162+
Patch properties. Valid arguments include:
163+
%(Patch)s
162164
"""
163165
if "transform" in kwargs:
164166
raise ValueError("transform should not be set")
@@ -302,8 +304,9 @@ def __init__(self, bbox1, bbox2, loc1, loc2=None, **kwargs):
302304
'lower left' : 3,
303305
'lower right' : 4
304306
305-
The kwargs are Patch properties for the line drawn:
306-
%(Patch)s
307+
**kwargs
308+
Patch properties for the line drawn. Valid arguments include:
309+
%(Patch)s
307310
"""
308311
if "transform" in kwargs:
309312
raise ValueError("transform should not be set")
@@ -355,8 +358,9 @@ def __init__(self, bbox1, bbox2, loc1a, loc2a, loc1b, loc2b, **kwargs):
355358
'lower left' : 3,
356359
'lower right' : 4
357360
358-
The kwargs are Patch properties for the line drawn:
359-
%(Patch)s
361+
**kwargs
362+
Patch properties for the line drawn:
363+
%(Patch)s
360364
"""
361365
if "transform" in kwargs:
362366
raise ValueError("transform should not be set")
@@ -564,8 +568,9 @@ def mark_inset(parent_axes, inset_axes, loc1, loc2, **kwargs):
564568
Corners to use for connecting the inset axes and the area in the
565569
parent axes.
566570
567-
The kwargs are Patch properties for the lines and box drawn:
568-
%(Patch)s
571+
**kwargs
572+
Patch properties for the lines and box drawn:
573+
%(Patch)s
569574
570575
Returns
571576
-------

0 commit comments

Comments
 (0)