为什么无法显示中文
matplotlib默认不支持中文字符,因为默认的英文字体无法先显示汉字
from matplotlib import pyplot as plt
import random
x=range(0,120)
y=[random.randint(20,35) for i in range(120)]
plt.figure(figsize=(10,5),dpi=200)
plt.plot(x,y)
time=["10点:{}分".format(i) fo
为什么无法显示中文
matplotlib默认不支持中文字符,因为默认的英文字体无法先显示汉字
from matplotlib import pyplot as plt
import random
x=range(0,120)
y=[random.randint(20,35) for i in range(120)]
plt.figure(figsize=(10,5),dpi=200)
plt.plot(x,y)
time=["10点:{}分".format(i) fo