Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b4f5ea commit 93e00dfCopy full SHA for 93e00df
lib/matplotlib/text.py
@@ -384,12 +384,7 @@ def get_text_width_height_descent(*kl, **kwargs):
384
385
if valign=='center': offsety = (ymin + height/2.0)
386
elif valign=='top': offsety = (ymin + height)
387
- elif valign=='baseline':
388
- if self.get_rotation() == 0:
389
- offsety = (ymin + height) - baseline
390
- else:
391
- # if rotation is not 0, use va=bottom for baseline
392
- offsety = ymin
+ elif valign=='baseline': offsety = (ymin + height) - baseline
393
else: offsety = ymin
394
else:
395
xmin1, ymin1 = cornersHoriz[0]
0 commit comments