<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 &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><br>begin<br> a     = addfile (&quot;<a href="http://consolidated_d04.nc">consolidated_d04.nc</a>&quot;,&quot;r&quot;)<br> wks   = gsn_open_wks (&quot;x11&quot;,&quot;xy&quot;)                ; open workstation<br> res                  = True                     ; plot mods desired<br> res@tiMainString     = &quot;PM2.5 at Mandir Marg&quot;          ; add title<br>res@xyLineColors      = (/&quot;blue&quot;,&quot;red&quot;/)          ; 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    = &quot;Always&quot;            ; turn on legend<br>res@xyExplicitLegendLabels = (/&quot;Sim.&quot;,&quot;Obs.&quot;/)         ; create explicit labels<br><br>time = fspan(0, 48, 49)<br>data = new((/49,49/),&quot;float&quot;)<br>PM25_sim = a-&gt;PM25(:,0,38,37)<br>PM25_obs = asciiread(&quot;PM2_5_MM.txt&quot;,(/49/),&quot;float&quot;)<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>