爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 6448|回复: 3

ncl 等值线绘图标签问题

[复制链接]
发表于 2022-12-1 16:05:31 | 显示全部楼层 |阅读模式

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

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

x
我画一个等值线叠填色图,设置了坐标轴标签就是显示不出来是怎么回事

部分脚本mres = True
;mres=res
mres@gsnDraw              = False
mres@gsnFrame             = False
mres@vpHeightF = 0.55
mres@vpWidthF  = 0.55
mres@gsnCenterString            = "";图的标题
mres@gsnRightString             = ""
mres@gsnLeftString              = ""
mres@tmYROn = False
mres@tmXTOn = False
mres@cnInfoLabelOn              = False;关闭右下角coutour form 的标签
mres@cnLevelSpacingF=15;等值线间隔
mres@cnLinesOn =True
mres@cnLineLabelsOn =True;等值线标签
mres@cnLabelDrawOrder ="PostDraw"
res@cnLineLabelAngleF=0.0
mres@cnLineLabelDensityF=0.5
mres@cnLineLabelInterval=1
;mres@cnInfoLabelOn  =True
mres@cnLineDashPattern=1
;mres@cnLineColor="OrangeRed"
mres@cnLineColor="ForestGreen"
;mres@cnLineLabelBackgroundColor="white"
mres@cnLineLabelFontThicknessF=0.5
;mres@cnLineLabelInterval=1
;mres@cnLineLabelDensityF=0.5
do i=0,7
  plot1=gsn_csm_contour(wks,hgt_high(i,:,:),mres)
  overlay(plot(i),plot1)
end do
密码修改失败请联系微信:mofangbao
 楼主| 发表于 2022-12-1 16:41:09 | 显示全部楼层
图在这里。。。。
微信图片_20221201160551.png
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

发表于 2022-12-1 21:39:26 | 显示全部楼层
1. mres@cnLabelDrawOrder ="PreDraw"来回调换
2. mres@cnLineLabelDensityF=3试一试
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

发表于 2022-12-2 09:17:14 | 显示全部楼层
本帖最后由 是冉冉升起的冉 于 2022-12-2 09:18 编辑

坐标轴标签是等值线的标签么?如果是等值线的标签的话设置这个mres@cnInfoLabelOn  =True,或者是不是图片太大了造成没显示全,试试这个调整图片的方向gsnPaperOrientation = "portrait"(纵向)"landscape"(横向)
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

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

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