爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 6091|回复: 4

[作图] ncl怎样把组图之间的空白调小

[复制链接]

新浪微博达人勋

发表于 2019-3-10 10:34:43 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
我画了一张1X4的折线图的组图,因为几张图的纵坐标都相同,我就让中间第2、3、4张图左侧的tmYLOn = False,但是画下来,图与图之间的空白挺大的,请问一下如何将空白调小?
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-3-10 14:13:39 | 显示全部楼层
;---Add some extra space between plots since they are too close together
    resP@gsnPanelXWhiteSpacePercent = 0
    resP@gsnPanelYWhiteSpacePercent = 0

这个么
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2019-3-10 21:50:54 | 显示全部楼层
haysen 发表于 2019-3-10 14:13
;---Add some extra space between plots since they are too close together
    resP@gsnPanelXWhiteSpa ...

调了之后没改变诶
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-12-16 16:31:30 | 显示全部楼层
请问解决了吗
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2022-2-21 14:43:43 | 显示全部楼层
我也遇到了类似的问题,2x2的组图,右侧图片和左侧之间空白过大,用了下面的命令成功解决啦~
resPanel@gsnPanelXF  = (/0.10,0.535,0.10,0.535/)
附官网关于这个函数的介绍:
gsnPanelXF
The gsn_panel routine calculates the NDC X and Y positions of the upper left corner of every plot on the panel. If you want to tweak any of the X positions, then you can set the gsnPanelXF resource to an array of the same length as the number of plots you want to panel, and give it the new NDC coordinates you want for the X positions.
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表