image.png
颜色,标记,线型
主要是plt.plot的一些参数
plt.figure(num=3,figsize=(8,5))
plt.plot([1,2,3],[5,7,4],color...image.png
刻度、标题、标签和图例!...=3,figsize=(8,5))
plt.plot(x1,y1,'ro-',label="进口")
plt.plot(x2,y2,'bo--',label="出口")#label设置线条标签
#设置标题...fig=plt.figure()
#创建子图
ax1=fig.add_subplot(221)
ax2=fig.add_subplot(222)
ax3=fig.add_subplot(212)
#在子图上画图...image.png
后记:
线图先到这,还有柱状图,散点图,3d图等待续……
你可能感冒的文章:
我的机器学习numpy篇
我的机器学习pandas篇
我的机器学习微积分篇