how to add space in legend between legend line and label

From: <ren.whc_at_nyahnyahspammersnyahnyah>
Date: Sun Dec 15 2013 - 07:16:30 MST

hello
I'm trying to add one or two <space> between legend line and lebel in xy plot so that they would not be so close , I add some space in
 res@xyExplicitLegendLabels = (/" Ensemble Mean"/)
but there are no space in the plot ,the result is the same as (/"Ensemble Mean"/) .
I want to be ,could you help me ?




all codes are as follows
res = True
  res@vpHeightF = 0.5 ; Changes the aspect ratio
  res@vpWidthF = 0.7
  res@vpXF = 0.10 ; change start locations
  res@vpYF = 0.85 ; the plot
res@gsnDraw = False
res@gsnFrame = False

res@xyDashPatterns = (/0,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0/)
res@xyLineColors = (/"red","black",\
"gray","gray","gray","gray","gray","gray","gray","gray","gray","gray","gray","gray","gray","gray","gray","gray","gray","gray","gray","gray","gray","gray"/)
res@xyLineThicknesses = (/3,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1/)
res@tmXBMode = "Explicit"
res@tmXBValues = ispan(ybg,yed,25)
res@tmXBLabels = ispan(ybg,yed,25)
; res@tmXBLabelStride = 10
res@tmXBMinorValues =ispan(ybg,yed,5)
;res@tmLabelAutoStride = True ; nice stride on labels
res@gsnStringFontHeightF = 0.03
; res@tiMainString = "Arctic Oscillation Index - historical"
res@tiMainFontHeightF =0.02


res@trXMinF = 1901
res@trXMaxF = 2005
res@trYMinF = -5
res@trYMaxF = 5

res@tmXBLabelFontHeightF = 0.014
res@tmYLLabelFontHeightF = 0.014

plot1 = gsn_csm_xy(wks,ispan(ybg,yed,1),data_output,res)
  res@pmLegendDisplayMode = "Always" ; turn on legend
  res@lgPerimOn = False
  res@pmLegendWidthF = 0.1 ; Change width and
  res@pmLegendHeightF = 0.07 ; height of legend.
  res@lgLabelFontHeightF = .012 ; change font height
  res@pmLegendOrthogonalPosF = -0.3 ; move up slightly
  res@lgBoxMinorExtentF = 0.6
delete(res@xyLineColors)
  res@xyLineColors = "red"
  res@xyExplicitLegendLabels = (/" Ensemble Mean"/)
  res@pmLegendParallelPosF = 0.75

plot2 = gsn_csm_xy(wks,ispan(ybg,yed,1),data_output(0,:),res)
  res@xyLineColors = "black"
label1=(/" OBS-HadSLP2"/)
print(strlen(label1))
  res@xyExplicitLegendLabels =stringtochar(label1)
  res@pmLegendParallelPosF = 0.25

plot3 = gsn_csm_xy(wks,ispan(ybg,yed,1),data_output(1,:),res)
  overlay(plot1,plot3)
  overlay(plot1,plot2)
draw(plot1)
frame(wks)



ren.whc@gmail.com

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk

AR0_X_GCAYF7WX_S_12-15-22-15-19_.jpg WD7_QI25G_CCO__I_12-15-22-15-19_.jpg 5___5_Z_7199Z28__12-15-22-15-19_.jpg
Received on Sun Dec 15 07:16:52 2013

This archive was generated by hypermail 2.1.8 : Wed Dec 18 2013 - 14:29:51 MST