image.png
颜色,标记,线型
主要是plt.plot的一些参数
plt.figure(num=3,figsize=(8,5))
plt.plot([1,2,3],[5,7,4],color...image.png
刻度、标题、标签和图例!...()
plt.subplot(221)#第一个子图
plt.plot(x1,y1,'ro--')
plt.subplot(223)
plt.plot(x2,y2,'bo-')#第二个子图
plt.show...面向对象创建子图
#创建图形
fig=plt.figure()
#创建子图
ax1=fig.add_subplot(221)
ax2=fig.add_subplot(222)
ax3=fig.add_subplot...(2):
axes[i][j].hist(np.random.randn(100),5,color='g',alpha=0.75)
#调整子图之间的距离
fig.subplots_adjust