爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 172|回复: 0

[作图] 【已解决】NCL-柱状图去掉边框线

[复制链接]

新浪微博达人勋

发表于 2025-3-13 09:21:56 | 显示全部楼层 |阅读模式

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

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

x
NCL的Bar Chart是默认有黑色边框线的,边框不能直接删掉,但可以通过设置RefLine的颜色使它隐形:

resBarPlot@gsnXYBarChart = True
; Setting/Turning off the outline of filled bars in a bar plot
resBarPlot@gsnYRefLine = 0. ; reference line
resBarPlot@gsnAboveYRefLineColor = LegendColors(0) ; above ref line fill with the given color
resBarPlot@gsnBelowYRefLineColor = LegendColors(0) ; below ref line fill with the given color
resBarPlot@xyLineColors = (/LegendColors(0),LegendColors(0)/) ; setting the outline of filled bars

当Bar Chart Plot与XY Plot叠加时,如果使用gsn_add_poly(如gsn_add_polyline)函数,Bar Chart的边框线会挡住XY Plot,换成gsn_csm_*(如gsn_csm_xy)就可以解决这个问题啦!

密码修改失败请联系微信:mofangbao
您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

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

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

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