未读消息 : 忽略
查看全部
python中使用matplotlib模块的add_subplot函数添加子图,具体方法如下:
from matplotlib import pyplot as plt #导入matplotlib模块fig = plt.figure()ax1 = fig.add_subplot(231)ax2 = fig.add_subplot(232)ax3 = fig.add_subplot(233)ax4 = fig.add_subplot(234)ax5 = fig.add_subplot(235)ax6 = fig.add_subplot(236)plt.grid(True)plt.show()
from matplotlib import pyplot as plt #导入matplotlib模块
fig = plt.figure()
ax1 = fig.add_subplot(231)
ax2 = fig.add_subplot(232)
ax3 = fig.add_subplot(233)
ax4 = fig.add_subplot(234)
ax5 = fig.add_subplot(235)
ax6 = fig.add_subplot(236)
plt.grid(True)
plt.show()
在线客服
在线客服服务时间:9:00-18:00
客服热线
198991158157*24小时客服服务热线
关注微信