Bug summary
3D text rotated along a given axis, e.g. zdir = "x" or zdir = (1, 0, 0), is always rotated roughly 60 degrees and does not respect the rotation argument for changing the orientation to e.g. 0 or 90 to be parallel with the specified axis.
Code for reproduction
import matplotlib.pyplot as plt
fig, ax = plt.subplots(subplot_kw = {"projection" : "3d"})
ax.text(0.3, 0.4, 0, "Horizontal", zdir = (1, 0, 0), rotation = 0, rotation_mode = "default", fontsize = 20)
ax.text(0.3, 0.1, 0, "Vertical", zdir = (1, 0, 0), rotation = 90, rotation_mode = "default", fontsize = 20)
plt.show()
Actual outcome
Expected outcome
Additional information
No response
Operating system
Windows
Matplotlib Version
3.6.0
Matplotlib Backend
TkAgg
Python version
3.10.6
Jupyter version
No response
Installation
pip