matplot display Chinese in Mac program

Use matplotlib Chinese that the problem often appears abnormal.

Many online all speak Chinese need to download the font package ... occasionally see someone made a simple solution to put ah. On the Mac itself supports Chinese font package ah. Introduced just fine
paste the code

plt.rcParams["font.family"] = 'Arial Unicode MS'

Guess you like

Origin www.cnblogs.com/shine-rainbow/p/11841136.html