matplotlib 畫圖中文字變方框怎麼辦?
-
在 Python 程式裡常會用 matplotlib 畫圖,但很困擾的是中文都會變成方框框。
[image: matplotlib 畫的圖中文字變方框框]
圖、matplotlib 畫的圖中文字變方框框
這是因為 matplotlib 預設字體是 DejaVu
Sans,所以無法顯示中文。既然是預設字體...
3 天前
© All Rights Reserved. 【我的小小记事】
SkinPress.com | Converted into Blogger Templates by Theme Craft