[Bug]: multialignment='right'
in ax.text()
with path_effects
breaks when using LaTeX package \usepackage[T1]{fontenc}
#28675
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Bug summary
When I plot a multiline text using
ax.text()
withpath_effects
under TeX environment with package\usepackage[T1]{fontenc}
the multiline coalignment to right breaks.Code for reproduction
Actual outcome
The

ma='right'
breaks for the bottom two texts withpath_effects
.Expected outcome
I would expect something similar without

\usepackage[T1]{fontenc}
below, but somehow I really want to include it because it provides some additional support, for example, nesting\textsc{}
in\textbf{}
.Additional information
No response
Operating system
WSL 2.2.4.0/Ubuntu 22.04.3 LTS
Matplotlib Version
3.9.1
Matplotlib Backend
qtagg
Python version
3.12.2
Jupyter version
No response
Installation
None
The text was updated successfully, but these errors were encountered: