爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5895|回复: 5

[其他] 组图x轴显示问题

[复制链接]

新浪微博达人勋

发表于 2022-7-26 21:01:12 | 显示全部楼层 |阅读模式

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

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

x
各位老师,如图1所示,我想让组图中上面两幅图不显示x轴的数值和单位,下面两幅图显示x轴的数值和单位,我尝试了1. 设置上面两幅图关闭x轴(res1@tmXBLabelsOn = False),下面两幅图显示x轴,但是出来的图如图1所示,
2.手动抹去x轴的数值,
res1@tmXBMode="Explicit"res1@tmXBValues=ispan(1950,2020,10)
res1@tmXBLabels=(/"","","","","","","",""/)
但是都不能达到想要的效果,请问这种问题应该怎么解决 图1.png

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

新浪微博达人勋

发表于 2022-7-27 13:47:16 | 显示全部楼层
上面两个子图的属性为res1,设置res1@tmXBLabelsOn = False;
下面两个子图的属性为res2,设置res2@tmXBValues=ispan(1950,2020,10)
res2@tmXBLabels=(/"1950","1960","1970","1980","1990","2000","2010","2020"/)
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2022-7-27 14:39:33 | 显示全部楼层
穿越的小瓶子 发表于 2022-7-27 13:47
上面两个子图的属性为res1,设置res1@tmXBLabelsOn = False;
下面两个子图的属性为res2,设置res2@tmXBVa ...

谢谢您的回答,这样子也不行
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2022-7-27 23:34:11 | 显示全部楼层
如果是想去掉那个刻度线的话 可以试试这个命令 res@tmXBOn                = False
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2022-7-28 11:04:38 | 显示全部楼层
要不你把相关代码贴出来?可能比较好找原因
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2022-8-2 09:12:00 | 显示全部楼层
穿越的小瓶子 发表于 2022-7-28 11:04
要不你把相关代码贴出来?可能比较好找原因

plot = new(10,graphic)

res1=True

res1@tiXAxisString="year"
;res1@xyLineColors="red"
;res1@xyLineThicknesses=5
res1@tiYAxisString="Lat(~S~o~N~N)"              ;F33表示官网第33个字体表,d表示第33个字体表中的编号为的符号,S表示开始上标,N表示结束上标
res1@vpHeightF=0.35
res1@vpWidthF=0.6
;res@tiYAxisFontColor="red"
res1@trXMinF               = 1950
res1@trXMaxF               = 2020
res1@trYMinF               = 0
res1@trYMaxF               = 35
res1@tmYLLabelFontHeightF=0.025
res1@tmXBLabelFontHeightF=0.025
res1@tiYAxisFontHeightF    = 0.025
res1@tiXAxisFontHeightF    = 0.025
res1@xyMarkLineMode="Markers"
res1@xyMarker="16"
res1@xyMarkerColor="black"

;res1@tmXBLabelsOn = False   ;关闭x轴坐标

res1@tmXBMinorThicknessF=0
res1@tmYLMinorThicknessF=0

;res1@tmXBMode="Explicit"
;res1@tmXBValues=ispan(1950,2020,10)
;res1@tmXBLabels=(/"","","","","","","",""/)

res2=True

res2@tiXAxisString="year"
;res1@xyLineColors="red"
;res1@xyLineThicknesses=5
res2@tiYAxisString="Lon(~S~o~N~N)"              ;F33表示官网第33个字体表,d表示第33个字体表中的编号为的符号,S表示开始上标,N表示结束上标
res2@vpHeightF=0.35
res2@vpWidthF=0.6
;res@tiYAxisFontColor="red"
res2@trXMinF               = 1950
res2@trXMaxF               = 2020
res2@trYMinF               = 100
res2@trYMaxF               = 140
res2@tmYLLabelFontHeightF=0.025
res2@tmXBLabelFontHeightF=0.025
res2@tiYAxisFontHeightF    = 0.025
res2@tiXAxisFontHeightF    = 0.025
res2@xyMarkLineMode="Markers"
res2@xyMarker="16"
res2@xyMarkerColor="black"

;res2@tmXBLabelsOn = False

res2@tmXBMinorThicknessF=0
res2@tmYLMinorThicknessF=0

;res2@tmXBMode="Explicit"
;res2@tmXBValues=ispan(1950,2020,10)
;res2@tmXBLabels=(/"","","","","","","",""/)



res3=True

res3@tiXAxisString="year"
;res1@xyLineColors="red"
;res1@xyLineThicknesses=5
res3@tiYAxisString="Lat(~S~o~N~N)"              ;F33表示官网第33个字体表,d表示第33个字体表中的编号为的符号,S表示开始上标,N表示结束上标
res3@vpHeightF=0.35
res3@vpWidthF=0.6
;res@tiYAxisFontColor="red"
res3@trXMinF               = 1950
res3@trXMaxF               = 2020
res3@trYMinF               = 0
res3@trYMaxF               = 35
res3@tmYLLabelFontHeightF=0.025
res3@tmXBLabelFontHeightF=0.025
res3@tiYAxisFontHeightF    = 0.025
res3@tiXAxisFontHeightF    = 0.025
res3@xyMarkLineMode="Markers"
res3@xyMarker="16"
res3@xyMarkerColor="black"

res3@tmXBMinorThicknessF=0
res3@tmYLMinorThicknessF=0


res3@tmXBMode="Explicit"
res3@tmXBValues=ispan(1950,2020,10)
res3@tmXBLabels=(/"1950","1960","1970","1980","1990","2000","2010","2020"/)


res4=True

res4@tiXAxisString="year"
;res1@xyLineColors="red"
;res1@xyLineThicknesses=5
res4@tiYAxisString="Lon(~S~o~N~N)"              ;F33表示官网第33个字体表,d表示第33个字体表中的编号为的符号,S表示开始上标,N表示结束上标
res4@vpHeightF=0.35
res4@vpWidthF=0.6
;res@tiYAxisFontColor="red"
res4@trXMinF               = 1950
res4@trXMaxF               = 2020
res4@trYMinF               = 100
res4@trYMaxF               = 140
res4@tmYLLabelFontHeightF=0.025
res4@tmXBLabelFontHeightF=0.025
res4@tiYAxisFontHeightF    = 0.025
res4@tiXAxisFontHeightF    = 0.025
res4@xyMarkLineMode="Markers"
res4@xyMarker="16"
res4@xyMarkerColor="black"

res4@tmXBMinorThicknessF=0
res4@tmYLMinorThicknessF=0

res4@tmXBMode="Explicit"
res4@tmXBValues=ispan(1950,2020,10)
res4@tmXBLabels=(/"1950","1960","1970","1980","1990","2000","2010","2020"/)


res=True
res@xyLineThicknesses=4
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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