摘要:
# coding=utf-8from matplotlib import pyplot as pltfrom matplotlib import font_managera=[131, 98, 125, 131, 124, 139, 131, 117, 128, 108, 135, 138, 131, 102, 107, 114, 119, 128, 121, 142, 127, 130, ... 阅读全文
摘要:
plt.bar()# coding=utf-8from matplotlib import pyplot as pltfrom matplotlib import font_managermy_font = font_manager.FontProperties(fname="/System/Library/Fonts/Hiragino Sans GB.ttc")a = ["战狼2","速度与激情... 阅读全文
摘要:
与绘制直线图的唯一区别:plt.scatter# coding=utf-8from matplotlib import pyplot as pltfrom matplotlib import font_managermy_font = font_manager.FontProperties(fname="/System/Library/Fonts/Hiragino Sans GB.ttc")y_3... 阅读全文
摘要:
from matplotlib import pyplot as plt#设置图形大小plt.figure(figsize=(20,8),dpi=80)plt.plot(x,y,color="cyan",linestyle="",linewidth="",alpha=0.4,label="")#设置网格plt.grid(alpha="",linestyle="")#设置图例plt.legend(l... 阅读全文