matplotlib not show Chinese

According to the following code:

matplotlib.pyplot AS PLT Import
% matplotlib inline
from pylab Import *
plt.rcParams [ 'serif-font.sans'] = [ 'SimHei'] # tab to normal display Chinese
plt.rcParams [ 'axes.unicode_minus'] = False # negative sign for normal display

Guess you like

Origin www.cnblogs.com/ceeyo/p/12028506.html