登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
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)就可以解决这个问题啦!
|