Skip to content

rotated text does not align #14239

Closed as duplicate of#13044
Closed as duplicate of#13044
@chapochn

Description

@chapochn

Bug report

Bug summary

rotating different text by 90 degrees give different baseline alignment

Code for reproduction

import matplotlib.pyplot as plt
plt.figure(figsize=(2., 2.))
plt.text(0.5, 0.0, 'yB', fontsize=40, rotation=90)
plt.text(0.5, 0.5, 'By', fontsize=40, rotation=90)
plt.show()

Actual outcome
Figure_1

Expected outcome

Expected 'yB' and 'By' to be aligned

Matplotlib version

  • Operating system: CentOS Linux 7
  • Matplotlib version: 3.0.3
  • Matplotlib backend (print(matplotlib.get_backend())): Qt5Agg
  • Python version: 3.6.8

installed via conda

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions