当前位置:网站首页>The drawing method of side-by-side diagram, multi row and multi column
The drawing method of side-by-side diagram, multi row and multi column
2022-07-04 21:55:00 【Cochlear notes】
import matplotlib.pyplot as plt
plt.style.use('seaborn-whitegrid')
plt.rcParams['font.sans-serif']=['SimHei']
plt.rcParams['axes.unicode_minus'] = False
fig = plt.figure(figsize=(70, 60),dpi=60)
for i in range(1,42):
ax = fig.add_subplot(7,6,i)
ax.spines['bottom'].set_linewidth('1.0')# Set the border line width to 2.0
ax.spines['bottom'].set_color('black')
ax.spines['top'].set_linewidth('1.0')# Set the border line width to 2.0
ax.spines['top'].set_color('black')
ax.spines['right'].set_linewidth('1.0')# Set the border line width to 2.0
ax.spines['right'].set_color('black')
ax.spines['left'].set_linewidth('1.0')# Set the border line width to 2.0
ax.spines['left'].set_color('black')
plt.xticks(fontsize = 20)
plt.yticks(fontsize = 20)
plt.scatter(data_std_all[data_std_all['firm'] == i]['year'], data_std_all[data_std_all['firm'] == i]['tfpch'], c='black', edgecolors='black')
plt.plot(data_std_all[data_std_all['firm'] == i]['year'], data_std_all[data_std_all['firm'] == i]['y_forecast'],color='black',linestyle = '-',linewidth=2, markersize=12)
if len(data_std_all[(data_std_all['firm'] == i)&(data_std_all['group'] == 1)]['year']) !=0:
plt.plot([data_std_all[(data_std_all['firm'] == i)&(data_std_all['group'] == 1)]['year'].iloc[0],data_std_all[(data_std_all['firm'] == i)&(data_std_all['group'] == 1)]['year'].iloc[0]],[-2.5,2.5],
color='black',linestyle = '-.',linewidth=2, markersize=12)
plt.ylim(-3, 3)
plt.xlim(2009, 2022)
plt.xticks(size=30)
plt.yticks(size=30)
plt.title(data_std_all[data_std_all['firm'] == i]['area'].iloc[0],size=30)
plt.show()
边栏推荐
- Compréhension approfondie du symbole [langue C]
- Daily question -leetcode1200- minimum absolute difference - array - sort
- minidom 模塊寫入和解析 XML
- 【公开课预告】:视频质量评价基础与实践
- GTEST from ignorance to proficient use (2) what is test fixture
- 如何借助自动化工具落地DevOps
- gtest从一无所知到熟练使用(3)什么是test suite和test case
- Case sharing | integrated construction of data operation and maintenance in the financial industry
- 【活动早知道】LiveVideoStack近期活动一览
- Bookmark
猜你喜欢

How is the entered query SQL statement executed?

做BI开发,为什么一定要熟悉行业和企业业务?

Why do you have to be familiar with industry and enterprise business when doing Bi development?

历史最全混合专家(MOE)模型相关精选论文、系统、应用整理分享

What is business intelligence (BI), just look at this article is enough

Application practice | Shuhai supply chain construction of data center based on Apache Doris
![[wechat applet] collaborative work and release](/img/14/2658cf0ba6be9432c74b2490e53d05.png)
[wechat applet] collaborative work and release

【公开课预告】:视频质量评价基础与实践

案例分享|金融业数据运营运维一体化建设

【活动早知道】LiveVideoStack近期活动一览
随机推荐
Application practice | Shuhai supply chain construction of data center based on Apache Doris
输入的查询SQL语句,是如何执行的?
Cadeus has never stopped innovating. Decentralized edge rendering technology makes the metauniverse no longer far away
Analyzing the maker space contained in steam Education
At the right time, the Guangzhou station of the city chain science and Technology Strategy Summit was successfully held
[wechat applet] collaborative work and release
Golang interview finishing three resumes how to write
如何借助自动化工具落地DevOps
Exclusive interview of open source summer | new committer Xie Qijun of Apache iotdb community
Kubedm initialization error: [error cri]: container runtime is not running
哈希表(Hash Tabel)
flink1.13 sql基础语法(一)DDL、DML
Open3D 曲面法向量计算
LambdaQueryWrapper用法
bizchart+slider实现分组柱状图
学习突围3 - 关于精力
刘锦程荣获2022年度中国电商行业创新人物奖
创客思维在高等教育中的启迪作用
Open3d surface normal vector calculation
Delphi SOAP WebService 服务器端多个 SoapDataModule 实现相同的接口方法,接口继承