<div dir="ltr"><div><div><div><div>Hi,<br><br></div>I need to increase the thickness of the lines used as the indicators of the data types (RCM, UoD, GPCC, etc.) within the legend. Otherwise, reader can not see properly the legend and finds it hard to identify the line&#39;s colour indicating for a specific data source.  <br><br></div>Any suggestions will be highly appreciated.<br><br></div>Thank you,<br></div>Ruksana<br><div><div><div><div><div><br><br>;*****************************************************<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl&quot;<br>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/contrib/time_axis_labels.ncl&quot;<br>;*****************************************************<br>begin<br>;***************************************************** <br>;read in data <br>;***************************************************** <br>f0=addfile (&quot;....../<a href="http://wah2_sas_1985_2007.part.LRBdesh.ymonmean_1_11.nc">wah2_sas_1985_2007.part.LRBdesh.ymonmean_1_11.nc</a>&quot;, &quot;r&quot;);    <br>f = addfile(&quot;......./APHRO_LRBdesh_ppt_1985_2007_ymonmean_1_11.nc&quot;, &quot;r&quot;)<br>f1 = addfile(&quot;......./<a href="http://GPCC.precip.ymonmean_1_11.1985-2007.v6.360d.LRBdesh.nc">GPCC.precip.ymonmean_1_11.1985-2007.v6.360d.LRBdesh.nc</a>&quot;,&quot;r&quot;)<br>f2 = addfile(&quot;......../<a href="http://UoD.precip.360d.ymonmean.1985_2007_LRBDesh.v301.nc">UoD.precip.360d.ymonmean.1985_2007_LRBDesh.v301.nc</a>&quot;,&quot;r&quot;)<br><br>;***************************************************** <br>; parameters<br>;***************************************************** <br> <br>PPT_mod = f0-&gt;field90(:,0,:,:)<br>PPT_mod = PPT_mod*86400<br><br>PPT_obs = f-&gt;precip<br>PPT_obs1 = f1-&gt;precip/30<br>PPT_obs2 = f2-&gt;precip/3<br><br>fldmean0 = wgt_areaave_Wrap(PPT_mod,1.0,1.0,1)<br>fldmean = wgt_areaave_Wrap(PPT_obs,1.0,1.0,1)<br>fldmean1 = wgt_areaave_Wrap(PPT_obs1,1.0,1.0,1)<br>fldmean2 = wgt_areaave_Wrap(PPT_obs2,1.0,1.0,1)<br><br>time = f0-&gt;time0<br>x = PPT_mod&amp;time0<br>timax = dimsizes(time)-1<br><br>;--convert the time proleptic_gregorian calendar to UTC date <br>utc_date   = cd_calendar(time,0)<br><br>;-- set date variable names<br><br>year     = tointeger(utc_date(:,0))<br>month     = tointeger(utc_date(:,1))<br>day     = tointeger(utc_date(:,2))<br>hour      = tointeger(utc_date(:,3))<br>minute      = tointeger(utc_date(:,4))<br>second      = utc_date(:,5)<br><br>;-- write date as string (MM)<br>date_str_i = sprinti(&quot;%0.2i&quot;,month)<br><br>;-- create the time strings, plot every axis annotation<br>incr     = 1<br>labels      = (/date_str_i(0::incr)/)<br>labels   = (/&quot;J&quot;,&quot;F&quot;,&quot;M&quot;,&quot;A&quot;,&quot;M&quot;,&quot;J&quot;,&quot;J&quot;,&quot;A&quot;,&quot;S&quot;,&quot;O&quot;,&quot;N&quot;/)<br><br>;-- set resources <br>res = True<br>res@trXMinF           = time(0)             ; time minimum on axis <br>res@trXMaxF           = time(timax)         ; time maximum on axis <br>res@tmXBMode         = &quot;Explicit&quot;           ; explicit time setting<br>res@tmXBValues         = PPT_mod&amp;time0(::incr)  ; axis tick position<br>res@tmXBLabels         = labels <br><br><br>colors = (/&quot;blue&quot;,&quot;sky blue&quot;,&quot;yellow&quot;,&quot;orange&quot;/)<br>lg_labels = (/&quot;RCM&quot;,&quot;APHRODITE&quot;,&quot;GPCC&quot;,&quot;UoD&quot;/)<br><br>printVarSummary(time)<br>printVarSummary(PPT_mod)<br>printVarSummary(PPT_obs)<br>printVarSummary(PPT_obs1)<br><br><br>wks = gsn_open_wks(&quot;eps&quot;,&quot;annpptcycle&quot;)  <br><br>res =True<br>res@gsnDraw    = False<br>res@gsnFrame   = False<br>res@gsnPaperOrientation = &quot;portrait&quot;<br><br>res= True   ; plot mods desired<br>res =True<br>res@gsnMaximize= True<br>res@gsnDraw    = False<br>res@gsnFrame   = False<br>res@gsnPaperOrientation = &quot;portrait&quot;<br><br><br>res= True   ; plot mods desired<br>res@tiMainString = &quot;Bangladesh with Larger Region&quot;<br>res@tiYAxisString   = &quot;Precipitation (mm/day)&quot; <br>res@tiXAxisString   = &quot;months&quot; <br>res@xyLineThicknessF = (/6,5,5,5/)<br>res@trYMinF     = 0.0<br>res@trYMaxF     = 15.0<br><br>res@xyLineColor          = colors(0)<br>plot0 = gsn_csm_xy(wks,x,fldmean0,res)      <br>     <br>res@xyLineColor          = colors(1)<br>plot1 = gsn_csm_xy(wks,x,fldmean,res)     <br><br>res@xyLineColor          = colors(2)<br>plot2 = gsn_csm_xy(wks,x,fldmean1,res)   <br><br>res@xyLineColor          = colors(3)<br>plot3 = gsn_csm_xy(wks,x,fldmean2,res)   <br><br>overlay(plot0,plot1)<br>overlay(plot0,plot2)<br>overlay(plot0,plot3)<br><br><br>; Attach a legend<br><br>lgres = True<br>lgres@lgLineColors              = colors<br>lgres@lgMonoItemType        = True <br>lgres@lgItemType        = &quot;Lines&quot;   <br>lgres@lgMonoDashIndex        = True<br>lgres@lgDashIndex        = &quot;SolidLine&quot;  <br>lgres@gsLineDashPattern         = 0.<br>lgres@gsLineThicknessF          = 5.<br>lgres@lgLabelFontHeightF     = 0.25<br>lgres@lgBoxMinorExtentF      = 0.25<br>lgres@vpWidthF            = 0.25<br>lgres@vpHeightF         = 0.25<br>lgres@pmLegendDisplayMode     = &quot;Always&quot;<br>lgres@pmLegendWidthF          = 0.6<br>lgres@pmLegendHeightF          = 0.1<br>lgres@xyExplicitLabels         = lg_labels<br>lgres@lgBoxMinorExtentF     = 0.8<br>lgres@lgPerimOn                 = False<br>legend = gsn_create_legend(wks, 4, lg_labels, lgres)<br><br>amres                 = True <br>amres@amJust             = &quot;BottomRight&quot;     ; Use bottom right corner of box for determining its location.<br>amres@amOrthogonalPosF        = -0.12<br>amres@amParallelPosF         = -0.1<br><br>annoid  =  gsn_add_annotation(plot0, legend, amres)  ; add legend to plot <br><br>draw(plot0)<br><br>frame(wks)<br><br>end<br><br><br><img style="margin-right: 0px;" alt="Inline image 1" src="cid:ii_1526a26f32ff3672" height="355" width="338"><br></div></div></div></div></div></div>