<div dir="ltr"><div class="gmail_default" style="font-family:trebuchet ms,sans-serif">Hi<br><br></div><div>I am using the following script:<font face="trebuchet ms, sans-serif" color="#666666" size="2"><br><br><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;display:inline">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"<br><br>begin<br> a = addfile ("<a href="http://consolidated_d04.nc">consolidated_d04.nc</a>","r")<br> wks = gsn_open_wks ("x11","xy") ; open workstation<br> res = True ; plot mods desired<br> res@tiMainString = "PM2.5 at Mandir Marg" ; add title<br>res@xyLineColors = (/"blue","red"/) ; change line color<br>res@xyDashPattern = 0 ; Make curves all solid<br>res@xyLineThicknesses = (/2.0,2.0/) ; make 2nd lines thicker<br>res@pmLegendDisplayMode = "Always" ; turn on legend<br>res@xyExplicitLegendLabels = (/"Sim.","Obs."/) ; create explicit labels<br><br>time = fspan(0, 48, 49)<br>data = new((/49,49/),"float")<br>PM25_sim = a->PM25(:,0,38,37)<br>PM25_obs = asciiread("PM2_5_MM.txt",(/49/),"float")<br>data(0,:)= PM25_sim<br>data(1,:)= PM25_obs<br> plot = gsn_csm_xy (wks,time,data,res) ; create plot<br>end<br><br><span style="color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif"><br></span></span></div><div class="gmail_default" style="display:inline"><span style="color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif">However, I </span></span></div><div class="gmail_default" style="display:inline"><span style="color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif">am not getting the desired legend names.<br><br></span></span></div><div class="gmail_default" style="display:inline"><span style="color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif">Please help me out<br><br></span></span></div><div class="gmail_default" style="display:inline"><span style="color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif">Thanks a lot<br><br></span></span></div><div class="gmail_default" style="font-family:trebuchet ms,sans-serif;display:inline"><span style="color:rgb(0,0,0)"><span style="font-family:arial,helvetica,sans-serif">Tabish</span></span></div><br><br><br><br>Tabish U Ansari<br>IBM Research India Laboratory<br></font></div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><font face="trebuchet ms, sans-serif" color="#666666" size="2">New Delhi<br></font></div></div></div></div></div></div></div>
</div>