python 实现图与图之间的间距调整subplots_adjust

作者:菜鸟小胡 时间:2023-10-05 00:52:42 

如下所示:


plt.subplots_adjust(left=None,bottom=None,right=None,top=None,wspace=0.15,hspace=0.15)

图与图之间的间距调整


wspace=0.15,hspace=0.15

python 实现图与图之间的间距调整subplots_adjust

补充:python如何调整subplot的间距

https://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots_adjust.html


plt.subplots_adjust(left=None, bottom=None, right=None, top=None,
               wspace=None, hspace=None)

left  = 0.125  # the left side of the subplots of the figure
right = 0.9    # the right side of the subplots of the figure
bottom = 0.1   # the bottom of the subplots of the figure
top = 0.9      # the top of the subplots of the figure
wspace = 0.2   # the amount of width reserved for blank space between subplots,
              # expressed as a fraction of the average axis width
hspace = 0.2   # the amount of height reserved for white space between subplots,
              # expressed as a fraction of the average axis height

来源:https://blog.csdn.net/weixin_45492560/article/details/105054801

标签:python,间距,subplots,adjust
0
投稿

猜你喜欢

  • 详解Go strconv包

    2024-04-23 09:42:08
  • Python关键字 asynico基本用法

    2023-02-19 08:34:42
  • 小看了setTimeout()

    2009-12-04 12:44:00
  • 【启发】不用循环计算1到100的和

    2009-03-04 12:16:00
  • 基于Mysql+JavaSwing的超市商品管理系统设计与实现

    2024-01-29 00:31:46
  • SQL Server 出现Error: 1326错误(管理器无法连接远程数据库)问题解决方案

    2024-01-25 09:23:42
  • 一文轻松掌握python语言命名规范规则

    2023-03-23 02:11:43
  • SQL Server数据库于应用程序的关系

    2010-07-26 14:21:00
  • Django 状态保持搭配与存储的实现

    2021-05-10 04:16:00
  • beam search及pytorch的实现方式

    2023-08-02 10:29:30
  • 查看mysql当前连接数的方法详解

    2024-01-21 03:24:59
  • 面试官问订单ID是如何生成的?难道不是MySQL自增主键

    2024-01-24 00:36:24
  • mysql慢查询使用详解

    2024-01-25 05:07:18
  • python获取文件版本信息、公司名和产品名的方法

    2022-05-31 17:30:23
  • Asp无组件生成缩略图

    2007-10-26 12:08:00
  • Python可视化函数plt.scatter详解

    2023-07-02 17:54:01
  • Python 使用tf-idf算法计算文档关键字权重并生成词云的方法

    2022-03-28 13:09:18
  • 浅谈python标准库--functools.partial

    2023-01-03 20:08:36
  • 在VS2008中编译MYSQL5.1.48的方法

    2023-07-12 00:42:46
  • python委派生成器的具体方法

    2022-06-14 01:23:39
  • asp之家 网络编程 m.aspxhome.com