Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
Bug report
Bug summary
Incomplete Text Render when Chinese and English characters are used together in an upright vertical way. The Chinese characters after the English characters will only show the left half.
Code for reproduction
importmatplotlib.pyplotaspltplt.rcParams['font.sans-serif']= ['SimHei']plt.text(0,0,'\n'.join("现代美学"))#all chinese is fineplt.text(0.2,0,'\n'.join("hello world 123"))# all english/number is fineplt.text(0.4,0,'\n'.join("现代hello美学"))#a mixture results in incomplete render of the chinese characters after the English charsplt.show()
Actual outcome
https://i.imgur.com/BXWiW0H.png
Expected outcome
https://i.imgur.com/9syXGpC.jpeg
Matplotlib version
- Operating system: windows 10
- Matplotlib version: 3.11
- Matplotlib backend: module://ipykernel.pylab.backend_inline
- Python version: 3.7.4
- Jupyter version (if applicable): 6.0.1
- Other libraries: