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

Skip to content

Commit 33822f5

Browse files
authored
Merge pull request #20460 from anntzer/aob
Shorten the AnchoredOffsetbox docstring.
2 parents 9ee6ff5 + 8a878ff commit 33822f5

File tree

1 file changed

+4
-20
lines changed

1 file changed

+4
-20
lines changed

lib/matplotlib/offsetbox.py

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -970,43 +970,27 @@ def __init__(self, loc,
970970
Parameters
971971
----------
972972
loc : str
973-
The box location. Supported values:
974-
975-
- 'upper right'
976-
- 'upper left'
977-
- 'lower left'
978-
- 'lower right'
979-
- 'center left'
980-
- 'center right'
981-
- 'lower center'
982-
- 'upper center'
983-
- 'center'
984-
973+
The box location. Valid locations are
974+
'upper left', 'upper center', 'upper right',
975+
'center left', 'center', 'center right',
976+
'lower left', 'lower center, 'lower right'.
985977
For backward compatibility, numeric values are accepted as well.
986978
See the parameter *loc* of `.Legend` for details.
987-
988979
pad : float, default: 0.4
989980
Padding around the child as fraction of the fontsize.
990-
991981
borderpad : float, default: 0.5
992982
Padding between the offsetbox frame and the *bbox_to_anchor*.
993-
994983
child : `.OffsetBox`
995984
The box that will be anchored.
996-
997985
prop : `.FontProperties`
998986
This is only used as a reference for paddings. If not given,
999987
:rc:`legend.fontsize` is used.
1000-
1001988
frameon : bool
1002989
Whether to draw a frame around the box.
1003-
1004990
bbox_to_anchor : `.BboxBase`, 2-tuple, or 4-tuple of floats
1005991
Box that is used to position the legend in conjunction with *loc*.
1006-
1007992
bbox_transform : None or :class:`matplotlib.transforms.Transform`
1008993
The transform for the bounding box (*bbox_to_anchor*).
1009-
1010994
**kwargs
1011995
All other parameters are passed on to `.OffsetBox`.
1012996

0 commit comments

Comments
 (0)