官方教程:https://matplotlib.org/api/_as_gen/matplotlib.pyplot.plot.html
kesci讲解:https://matplotlib.org/api/_as_gen/matplotlib.pyplot.plot.html
对比matpolib的seaborn库:https://seaborn.pydata.org/index.html
一、常见的绘图1
创建figure:
导入模块:import matplotlib.pyplot as plt
方式1:直接通过plt操作
方式2:ax=plt.axes()通过ax来操作
子图绘制:
举例:
方式1:
plt.subplot(321)
plt.plot(x, x)
plt.show()
方式2:
fig = plt.figure()
ax1 =fig.add_subplot(191)
plot绘图参数设置:
待补充.....