Skip to content

Commit 7fd4bb5

Browse files
authored
Show and correct default alignment parameters in text.py
For issue [Doc]: text alignment defaults #27345
1 parent f533687 commit 7fd4bb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/text.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def __init__(self,
123123
124124
The text is aligned relative to the anchor point (*x*, *y*) according
125125
to ``horizontalalignment`` (default: 'left') and ``verticalalignment``
126-
(default: 'bottom'). See also
126+
(default: 'baseline'). See also
127127
:doc:`/gallery/text_labels_and_annotations/text_alignment`.
128128
129129
While Text accepts the 'label' keyword argument, by default it is not
@@ -1002,7 +1002,7 @@ def set_horizontalalignment(self, align):
10021002
10031003
Parameters
10041004
----------
1005-
align : {'left', 'center', 'right'}
1005+
align : {'left', 'center', 'right'}, default: left
10061006
"""
10071007
_api.check_in_list(['center', 'right', 'left'], align=align)
10081008
self._horizontalalignment = align
@@ -1251,7 +1251,7 @@ def set_verticalalignment(self, align):
12511251
12521252
Parameters
12531253
----------
1254-
align : {'bottom', 'baseline', 'center', 'center_baseline', 'top'}
1254+
align : {'bottom', 'baseline', 'center', 'center_baseline', 'top'}, default: baseline
12551255
"""
12561256
_api.check_in_list(
12571257
['top', 'bottom', 'center', 'baseline', 'center_baseline'],

0 commit comments

Comments
 (0)