-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
As #829 and #592 said, the reason is "seaborn override default fonts specified in matplotlibrc configs".
Thus, you can set the default seaborn font style after import the seaborn as follows:
import seaborn as sns
sns.set_style("darkgrid",{"font.sans-serif":['simhei', 'Arial']})
The simhei is the chinese font, and make sure the simhei.ttf already in your "Lib\site-packages\matplotlib\mpl-data\fonts\ttf" folder.
This method just change the seaborn font setting temporarily, however I do not know how to do that permanently.
shavvn, cqcn1991, pp2moonbird, hp027, wwwxmu and 9 more
Metadata
Metadata
Assignees
Labels
No labels