Find the folder where windows 10 Chinese fonts are located.
C:/Windows/Fonts/
Add the following before the code:
Import mapplotlib.pyplot as PLT PLT.rcparams ['font.sans-serif'] = ['simhei'] # Add Chinese font as bold PLT.rcparams ['axes.unicode _ minus'] = false ... # ax [0,0]. Set _ YLabel (u
Pay attention to that' u'. #ax[2,0]。 Set_ylabel(u "hey hey") ... # or importmapplotlib. pyplotlib from mapplotlib importfont _ managermy _ font =?
Font _ manager.font properties (fname = "c:/Windows/Fonts/simsun.ttf") # Add Chinese bold font ... ax [0,0]. Set_ylabel(u "haha", font properties = my _ font) ax [2,0]. set _ ylabel。
Development history
Python language has been widely used in system management tasks and Web programming since it was born in the early 1990s.
From 65438 to 0995, Guido van Rossum continued his Python work at the National Innovation Research Corporation (CNRI) in Virginia, where he released several versions of the software. ?
In May 2000, Guido van Rossum and Python's core development team moved to BeOpen.com and formed the BeOpen PythonLabs team. In the same year 10, the BeOpen PythonLabs team moved to Digital Creations (now Zope Corporation). ?
200 1, Python Software Foundation (PSF) was established, which is a non-profit organization specially created to own Python-related intellectual property rights. Zope is now a sponsor of PSF.