Matplotlib
Matplotlib 是一个 Python 绘图库,可以跨平台生成各种硬拷贝格式和交互式环境的出版品质数据。...ax.fill(x, y, color='blue')
# 在 y 值和 0 之间填充
ax.fill_between(x, y, color='yellow')
output_28_1.png
2D...(0, 0, 0.5, 0.5)
# 绘制箭头的 2D 字段
axes[1, 1].quiver(y, z)
# 绘制箭头的 2D 字段
axes[0, 1].streamplot(X, Y, U, V...轴和y轴标签
ax.set(title='An Example Axes',
ylabel='Y-Axis',
xlabel='X-Axis')
# 不重叠的图元素
ax.legend...# 调整子图之间的间距
fig3.subplots_adjust(wspace=0.5,
hspace=0.3,
left