python绘制多个子图的实例
作者:水之魂2018 时间:2023-01-31 02:24:24
绘制八个子图
import matplotlib.pyplot as plt
fig = plt.figure()
shape=['.','o','v','>','<','8','s','*']
for j in range(8):
x=[i for i in range(6)]
y=[i**2 for i in range(6)]
ax = fig.add_subplot(241+j)
ax.scatter(x,y,c='r',marker=shape[j])
ax.set_title('第'+str(j))
plt.show()
来源:https://blog.csdn.net/weixin_40198632/article/details/81482635
标签:python,绘制,子图
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
GoLang并发编程中条件变量sync.Cond的使用
2024-04-25 15:28:40
最简单的tab切换实例代码
2023-08-22 08:38:59
![](https://img.aspxhome.com/file/2023/6/56006_0s.jpg)
golang 并发安全Map以及分段锁的实现方法
2024-04-28 10:45:44
![](https://img.aspxhome.com/file/2023/8/134138_0s.jpg)
python使用smtplib模块发送邮件
2023-05-16 22:25:38
![](https://img.aspxhome.com/file/2023/7/87897_0s.jpg)
利用python实现汉诺塔游戏
2021-02-19 03:03:45
![](https://img.aspxhome.com/file/2023/3/87783_0s.jpg)
Python文件时间操作步骤代码详解
2022-02-17 03:26:25
详解Python的Twisted框架中reactor事件管理器的用法
2023-09-07 16:28:18
![](https://img.aspxhome.com/file/2023/9/124909_0s.png)
将字典转换为DataFrame并进行频次统计的方法
2023-11-21 05:37:30
![](https://img.aspxhome.com/file/2023/2/81712_0s.jpg)
使用Vue-router二级路由跳转另一条路由下的子级
2024-05-09 09:52:07
![](https://img.aspxhome.com/file/2023/0/127170_0s.png)
pandas基础 Series与Dataframe与numpy对二进制文件输入输出
2023-10-18 08:20:13
![](https://img.aspxhome.com/file/2023/4/118284_0s.png)
Javascript 动画初探(原理)
2009-02-06 15:53:00
MySQL 5数据库连接超时问题
2009-12-29 10:23:00
详解SQL Server数据库状态和文件状态
2024-01-26 14:09:28
HTML邮件的又一点思考
2009-05-06 13:33:00
![](https://img.aspxhome.com/file/UploadPic/20095/6/mail-59s.png)
Vue 解决多级动态面包屑导航的问题
2024-05-02 17:11:19
Python桌面文件清理脚本分享
2022-10-11 03:13:23
![](https://img.aspxhome.com/file/2023/8/105058_0s.png)
Python 虚拟环境工作原理解析
2023-02-21 02:18:50
Python抖音快手代码舞(字符舞)的实现方法
2023-11-08 14:12:23
![](https://img.aspxhome.com/file/2023/5/107285_0s.gif)
Python使用SocketServer模块编写基本服务器程序的教程
2023-09-19 12:44:12
简单介绍Python中用于求最小值的min()方法
2021-05-27 23:00:11