<div dir="ltr"><div>Easiest "tric" would be to set:</div><div>res@xyExplicitLegendLabels = (/"obs","baseline","pulse","","","","<wbr>","","","<wbr>","",""/) <br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Does this work? There are several other ways to get this done, let me know if this does not work.<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 20, 2018 at 1:26 PM, Tabish Ansari <span dir="ltr"><<a href="mailto:tabishumaransari@gmail.com" target="_blank">tabishumaransari@gmail.com</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"><div style="font-family:trebuchet ms,sans-serif">Hi<br><br></div><div style="font-family:trebuchet ms,sans-serif">I have a time-series with 12 different datasets plotted together in a single xy plot.<br></div><div style="font-family:trebuchet ms,sans-serif"><br>The color looks something like:<br>res@xyLineColors = (/"black","blue","red","red","<wbr>red","red","red","red","red","<wbr>red","red","red" /)<br><br></div><div style="font-family:trebuchet ms,sans-serif">And the labeling is currently:<br>res@xyExplicitLegendLabels = (/"obs","baseline","pulse18","<wbr>pulse19","pulse20","pulse21","<wbr>pulse22","pulse23","pulse24","<wbr>pulse25","pulse26","pulse27"/) <br><br></div><div style="font-family:trebuchet ms,sans-serif">However, I do not want all the labels. Since all the "pulse" data are red in color, I just want to draw a single red legend with a name "pulse".<br></div><div style="font-family:trebuchet ms,sans-serif">If I do something like: res@xyExplicitLegendLabels = (/"obs","baseline","pulse"/) , NCL still uses default legend names for all the remaining data.<br></div><div style="font-family:trebuchet ms,sans-serif">I do not want that. Is there a way to only draw 3 legends when the data itself has more than 3 arrays within it?<br><br></div><div style="font-family:trebuchet ms,sans-serif">Thanks<br><br></div><div style="font-family:trebuchet ms,sans-serif">Tabish<br></div><div style="font-family:trebuchet ms,sans-serif"><br></div><div style="font-family:trebuchet ms,sans-serif"><br clear="all"></div><div><div class="m_3311577145073747805gmail_signature"><div dir="ltr"><div><div><font size="1"><span style="font-family:tahoma,sans-serif">Tabish U Ansari<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">PhD student, Lancaster Environment Center<br></span></font></div><font size="1"><span style="font-family:tahoma,sans-serif">Lancaster Univeristy<br> <span>Bailrigg</span>, <span>Lancaster</span>, <br><span>LA1 4YW</span>, <span>United Kingdom</span></span></font><br></div></div></div>
</div>
<br>______________________________<wbr>_________________<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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div></div>