<div dir="ltr"><div>Also, you are (I think) using Times-Roman font. I suggest that you use Helvetica (sharper).<br></div><div>In your .hluresfile (in your home directory), add<br><br>! Font stuff<br>*appClass*Font : helvetica <br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 22, 2016 at 9:37 AM, Adam Phillips <span dir="ltr"><<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Ruksana,<div>I see that you are setting <span style="font-size:12.8px">lgres@gsLineThicknessF. H</span>ave you tried setting <span style="font-size:12.8px">lgres@</span>lgLineThicknessF instead?</div><div><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/lg.shtml#lgLineThicknessF" target="_blank">http://www.ncl.ucar.edu/Document/Graphics/Resources/lg.shtml#lgLineThicknessF</a><br></div><div><br></div><div>If that does not fix the issue let ncl-talk know..</div><div>Adam</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Jan 22, 2016 at 9:32 AM, Ruksana Abedin <span dir="ltr"><<a href="mailto:ruksana.abedin@gmail.com" target="_blank">ruksana.abedin@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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'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 "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/contrib/time_axis_labels.ncl"<br>;*****************************************************<br>begin<br>;***************************************************** <br>;read in data <br>;***************************************************** <br>f0=addfile ("....../<a href="http://wah2_sas_1985_2007.part.LRBdesh.ymonmean_1_11.nc" target="_blank">wah2_sas_1985_2007.part.LRBdesh.ymonmean_1_11.nc</a>", "r"); <br>f = addfile("......./APHRO_LRBdesh_ppt_1985_2007_ymonmean_1_11.nc", "r")<br>f1 = addfile("......./<a href="http://GPCC.precip.ymonmean_1_11.1985-2007.v6.360d.LRBdesh.nc" target="_blank">GPCC.precip.ymonmean_1_11.1985-2007.v6.360d.LRBdesh.nc</a>","r")<br>f2 = addfile("......../<a href="http://UoD.precip.360d.ymonmean.1985_2007_LRBDesh.v301.nc" target="_blank">UoD.precip.360d.ymonmean.1985_2007_LRBDesh.v301.nc</a>","r")<br><br>;***************************************************** <br>; parameters<br>;***************************************************** <br> <br>PPT_mod = f0->field90(:,0,:,:)<br>PPT_mod = PPT_mod*86400<br><br>PPT_obs = f->precip<br>PPT_obs1 = f1->precip/30<br>PPT_obs2 = f2->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->time0<br>x = PPT_mod&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("%0.2i",month)<br><br>;-- create the time strings, plot every axis annotation<br>incr = 1<br>labels = (/date_str_i(0::incr)/)<br>labels = (/"J","F","M","A","M","J","J","A","S","O","N"/)<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 = "Explicit" ; explicit time setting<br>res@tmXBValues = PPT_mod&time0(::incr) ; axis tick position<br>res@tmXBLabels = labels <br><br><br>colors = (/"blue","sky blue","yellow","orange"/)<br>lg_labels = (/"RCM","APHRODITE","GPCC","UoD"/)<br><br>printVarSummary(time)<br>printVarSummary(PPT_mod)<br>printVarSummary(PPT_obs)<br>printVarSummary(PPT_obs1)<br><br><br>wks = gsn_open_wks("eps","annpptcycle") <br><br>res =True<br>res@gsnDraw = False<br>res@gsnFrame = False<br>res@gsnPaperOrientation = "portrait"<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 = "portrait"<br><br><br>res= True ; plot mods desired<br>res@tiMainString = "Bangladesh with Larger Region"<br>res@tiYAxisString = "Precipitation (mm/day)" <br>res@tiXAxisString = "months" <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 = "Lines" <br>lgres@lgMonoDashIndex = True<br>lgres@lgDashIndex = "SolidLine" <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 = "Always"<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 = "BottomRight" ; 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>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist, </font></span><span><font color="#888888">Climate and Global Dynamics Laboratory, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a> </font></span><span><font color="#888888"><a href="tel:303-497-1726" value="+13034971726" target="_blank">303-497-1726</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div></div></div></div></div></div></div></div>
</font></span></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>