官方教程: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绘图参数设置:

待补充.....
本文详细介绍Matplotlib库的使用方法,包括官方教程链接、kesci讲解资源及seaborn库对比。涵盖figure创建、子图绘制、plot参数设置等核心内容,并提供实例代码。
4114

被折叠的 条评论
为什么被折叠?



