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

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 5586|回复: 3

[作图] XY折线图图例设置

[复制链接]

新浪微博达人勋

发表于 2018-11-23 11:00:15 | 显示全部楼层 |阅读模式

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

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

x
请问各位,我在画XY折线图的时候,右侧坐标轴上会多出来一个图例,不知道怎么消除,求问各位有什么好办法设置一下么?我的res如下:
resL                 = True                         ; make plot mods   
   resL@gsnLeftString     = " "
   resL@gsnRightString    = " "
   resL@vpWidthF     = 0.7
   resL@vpHeightF    = 0.35
   resL@vpXF         = 0.16
   resL@vpYF         = 0.75
   resL@trXMinF       = spring
   resL@trXMaxF       = summer
   resL@trYMinF          = 0          ; min value on y-axis
   resL@trYMaxF          = 240
   resL@tiXAxisString   = "date"    ; Label for the X axis
   resL@tiYAxisString   = "O3"
      resL@tmXTOn               = False
   resL@tmYROn               = False
   resL@xyLineThicknesses      = 1
   resL@xyLineColors      = color1
   resL@tmXBMode   = "Explicit"
   resL@tmXBValues = fspan(spring,summer,14)
      resL@tmXBLabels = (/"6/1"," 6/8"," 6/15"," 6/22"," 6/29",\
        " 7/6"," 7/13"," 7/20"," 7/27",\
        " 8/3"," 8/10"," 8/17"," 8/24"," 8/31"/)
   resL@pmLegendOrthogonalPosF = -1.25
   resL@pmLegendParallelPosF   = 0.85
   resL@pmLegendDisplayMode    = "Always"
   resL@pmLegendWidthF         = 0.17
   resL@pmLegendHeightF        = 0.06
   resL@gsnYRefLine            = (/o3_all/)
   resL@gsnYRefLineColor       = (/color1/)
   
   resR                        = True                     
   ;resR@xyDashPatterns         = 1                   ; dashed line for 2nd
   resR@xyLineThicknesses      = 1                  ; thicker line
   resR@tiYAxisString     = "T(~S~o~N~C)"  
   resR@trYMaxF           = 40.                    ; axis max
   resR@trYMinF           = 15.                    ; axis min
   resR@xyLineColors      = (/color2/)   
   resR@pmLegendOrthogonalPosF = -1.08
   resR@pmLegendParallelPosF   = 0.6
   resR@pmLegendDisplayMode    = "Always"
   resR@pmLegendWidthF         = 0.17
   resR@pmLegendHeightF        = 0.06
   resR@xyExplicitLegendLabels = (/"temperature"/)
   resR@gsnYRefLine   = (/30/)
   resR@gsnYRefLineColor = (/color2/)
   
   res3                        = True                     
   ;res3@xyDashPatterns         = 1                   ; dashed line for 2nd
   res3@xyLineThicknesses      = 1                  ; thicker line
   res3@tiYAxisString     = "%"  
   res3@trYMaxF           = 100.                    ; axis max
   res3@trYMinF           = 0.                    ; axis min
   res3@xyLineColors      = (/color3/)   
   res3@pmLegendOrthogonalPosF = -0.97
   res3@pmLegendParallelPosF   = 0.35
   res3@pmLegendDisplayMode    = "Always"
   res3@pmLegendWidthF         = 0.17
   res3@pmLegendHeightF        = 0.06
   res3@xyExplicitLegendLabels = (/"relative humity"/)
   res3@gsnYRefLine   = (/60/)
   res3@gsnYRefLineColor = (/color3/)
   res3@amOrthogonalPosF = 0.7

微信截图_20181123105924.png

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

新浪微博达人勋

 楼主| 发表于 2018-11-25 17:23:01 | 显示全部楼层
此帖仅作者可见
密码修改失败请联系微信:mofangbao

使用道具 举报

新浪微博达人勋

 成长值: 19710
发表于 2018-11-26 23:43:02 | 显示全部楼层
此帖仅作者可见
密码修改失败请联系微信:mofangbao

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2018-11-27 15:01:23 | 显示全部楼层
此帖仅作者可见
密码修改失败请联系微信:mofangbao

使用道具 举报

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

本版积分规则

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

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

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