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
Description
Bug summary
Font-Fallback implemented in#20740 does not work for title or labels.
Code for reproduction
importmatplotlib.pyplotaspltdefplot_graph():fig,ax=plt.subplots(figsize=(6,3))text='There are 多个汉字 👈👉 in between!'plt.rcParams['font.family']= ['Segoe UI Emoji','SimHei']plt.figtext(0.3,0.7,text)plt.title(text)plt.xlabel(text)plt.ylabel(text)plt.show()plot_graph()
Actual outcome
Expected outcome
Title and labels should be displayed correctly like the figtext.
Additional information
No response
Operating system
Windows
Matplotlib Version
3.6.0
Matplotlib Backend
TkAgg
Python version
3.10.7
Jupyter version
No response
Installation
pip