虚拟主机域名注册-常见问题 → 网站推广 → 网站推广问题


Python Matplotlib subplot函数详解:创建子图
作者:

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()




来源:
阅读:433 次
日期:2024-12-25

【 双击滚屏 】 【 推荐朋友 】 【 收藏 】 【 打印 】 【 关闭 】 【 字体:大 中 小 】 
上一篇:什么是安全漏洞?常见的网络安全漏洞类型
下一篇:python中使用最多的函数有哪些
  >> 相关文章
 

在线
客服

在线客服服务时间:9:00-21:00

客服
热线

19899115815
7*24小时客服服务热线

关注
微信

关注官方微信
顶部