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

Skip to content

Commit a79ff86

Browse files
committed
make centre_baseline legal for Text.set_verticalalignment
1 parent aadd0e0 commit a79ff86

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/matplotlib/text.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1147,9 +1147,10 @@ def set_verticalalignment(self, align):
11471147
"""
11481148
Set the vertical alignment
11491149
1150-
ACCEPTS: [ 'center' | 'top' | 'bottom' | 'baseline' ]
1150+
ACCEPTS: [ 'center' | 'top' | 'bottom' | 'baseline' |
1151+
'center_baseline' ]
11511152
"""
1152-
legal = ('top', 'bottom', 'center', 'baseline')
1153+
legal = ('top', 'bottom', 'center', 'baseline', 'centre_baseline')
11531154
if align not in legal:
11541155
raise ValueError('Vertical alignment must be one of %s' %
11551156
str(legal))

0 commit comments

Comments
 (0)