- 积分
- 1938
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-1-19
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
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
|
|