绘制子图
import matplotlib.pyplot as plt
def subplotUse1():
'''
subplot在一个figure中绘制多个子图
'''...plt.figure()
# 绘制第一个子图
plt.subplot(2, 2, 1)
plt.plot([0, 1], [0, 1])
# 绘制第二个子图...def subplotUse2():
'''
subplot在一个figure中绘制多个子图
'''
plt.figure()
# 绘制第一个子图
plt.subplot..., 1])
# 绘制第三个子图
plt.subplot(2, 3, 5)
plt.plot([0, 1], [0, 1])
# 绘制第四个子图
plt.subplot...3列,取得第一个子图的句柄,
# 第一个子图跨度为1行3列,起点是表格(0, 0)
ax1 = plt.subplot2grid((3, 3), (0, 0), colspan=3, rowspan