请选择 进入手机版 | 继续访问电脑版
爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 12263|回复: 3

[作图] panel会出现多余的图像遮挡

[复制链接]

新浪微博达人勋

发表于 2021-8-10 09:16:45 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 推开世界的门 于 2021-8-10 09:26 编辑

1.png 大佬们,不知道怎么回事我绘制panel图 多出一张图,有哪位大佬了解是怎么回事吗?希望大佬们不吝指教,先谢谢大佬们了。代码如下:

wks=gsn_open_wks("png","panel")

plot = new(3,graphic)

gsn_define_colormap(wks,"BlueRed")

res=True
res@gsnAddCyclic=False
res@mpMinLatF           = 0        ; zoom in on map
res@mpMaxLatF           = 30
res@mpMinLonF           = 100
res@mpMaxLonF           = 180
res@cnFillOn=True
res@cnLinesOn=False                                    ;
res@mpGeophysicalLineThicknessF=2.0

plot(0)=gsn_csm_contour_map(wks,cor,res)

tres=True
tres@gsMarkerSizeF=20                                  ;
tres@gsMarkerIndex="12"                                ;
tres@gsMarkerColor="black"
tres@gsMarkerThicknessF=3.0                            ;


res2 = True
res2@gsnDraw         = False                      ; do not draw  
res2@gsnFrame        = False                      ; do not advance frame
res2@gsnMaximize      = True
res2@cnMonoFillPattern  = False
res2@cnFillOn              = True             ; turn on color
res2@cnLinesOn             = False           ; turn off contour lines
res2@cnLineLabelsOn        = False
res2@lbLabelBarOn          = False
res2@cnInfoLabelOn         = False
res2@cnLevelSelectionMode = "ExplicitLevels"
res2@cnFillDotSizeF=0.003   
res2@gsnRightString = ""
res2@gsnLeftString = ""
res2@cnLevels = (/0.01/)                       ;
res2@cnFillPatterns = (/17,-1/)                ;
res2@cnFillColors = (/"black","white"/)        ;


plot3 = gsn_csm_contour(wks,sign,res2)



overlay(plot(0),plot3)
draw(plot(0))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


plot(1)=gsn_csm_contour_map(wks,cor1,res)



plot6 = gsn_csm_contour(wks,sign1,res2)



overlay(plot(1),plot6)
draw(plot(1))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;



plot(2)=gsn_csm_contour_map(wks,cor2,res)



plot9 = gsn_csm_contour(wks,sign2,res2)



overlay(plot(2),plot9)
draw(plot(2))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

pres=True


pres@txFontHeightF=0.02
pres@gsnPanelFigureStringsFontHeightF=0.01
pres@gsnPanelFigureStrings=(/"a","b","c"/)
pres@amJust="topLeft"

gsn_panel(wks,plot,(/3,1/),pres)


end


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

新浪微博达人勋

发表于 2021-8-10 10:16:13 | 显示全部楼层
关掉3个draw
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2021-8-10 10:45:03 | 显示全部楼层

谢谢您,成功了
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2021-8-10 14:25:47 | 显示全部楼层

不客气~
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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