<div dir="ltr"><div><div>I agree with you -- I don't think there's a way to it directly. But you could make two calls to gsn_legend_ndc() to get the same effect (I know its a bit more painful). I had initially thought you might get the desired effect by using the graphical-table functions (<a href="http://ncl.ucar.edu/Applications/table.shtml">http://ncl.ucar.edu/Applications/table.shtml</a>), which would certainly handle the layout problem, but I'm not sure how/if it would be possible to include the color line segments.<br><br></div>Hope that helps...<br></div>Rick<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 10, 2016 at 1:19 PM, Alan Rhoades <span dir="ltr"><<a href="mailto:alan.m.rhoades@gmail.com" target="_blank">alan.m.rhoades@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>Hello,</div><div><br></div><div>I have a question in regards to using the gsn_legend_ndc legend generator. </div><div><br></div><div><img src="cid:ii_15675dfd44a4d054" alt="Inline image 1" height="204" width="394"><br></div><div><br></div><div>I'd like to make plot A) (generated using the resources highlighted below) look more like plot B) (modified manually) without generating two legends with the gsn_legend_ndc and overlaying the plots. </div><div><br></div><div>The functionality I have in mind would be setting gsn_legend_ndc from...</div><div><br></div><div>gsn_legend_ndc(wks,17,labels,<wbr>0.80,0.99,lgres)<br></div><div><br></div><div>...to...</div><div><br></div><div>gsn_legend_ndc(wks,(/8,9/),<wbr>labels,0.80,0.99,lgres)<br></div><div><br></div><div>...to allow for a return on the legend labels where the new labels would be placed to the right of the first set of labels. After reviewing all of the NCL legend/xy examples, I don't think this is currently possible though.</div><div><br></div><div>Here are the resources that I used to generate the "dummy" plot (i.e., A) ) above...</div><div><br></div><div><div>******************************<wbr>*****************</div><div>; legend resources</div><div>;*****************************<wbr>******************</div><div> labels = (/"VR-CESM28 - 1980-2005","VR-CESM28 - 2025-2050","VR-CESM28 - 2075-2100","PRISM","BCSD-<wbr>CMIP5","NLDAS14 MOSAIC","NLDAS14 NOAH","NLDAS14 VIC","NARCCAP - CRCM-CCSM","NARCCAP - CRCM-CGCM3","NARCCAP - ECP2-GFDL","NARCCAP - HRM3-HADCM3","NARCCAP - MM5-CCSM","NARCCAP - MM5-HADCM3","NARCCAP - RCM3-CGCM3","NARCCAP - RCM3-CGCM3","NARCCAP - RCM3-GFDL","NARCCAP - WRFG-CCSM"/)</div><div><br></div><div> lgres = True</div><div>; LEGEND LABELS AND COLORS</div><div> lgres@lgMonoLineColor = False</div><div> lgres@lgBoxMinorExtentF = 0.1 ; default 0.6 - controls how long a line segment</div><div> lgres@lgLineLabelStrings = labels</div><div> lgres@lgLineColors = (/"Black","Red3","Red4","Cyan"<wbr>,"Green","royalblue3","<wbr>royalblue2","royalblue1","<wbr>gray40","gray45","gray50","<wbr>gray55","gray60","gray65","<wbr>gray70","gray75","gray80"/)</div><div> lgres@lgDashIndexes = (/0,0,0,1,1,1,1,1,1,1,1,1,1,1,<wbr>1,1,1/) ; dash indexes</div><div> lgres@lgItemOrder = (/ 16,15,14,13,12,11,10,9,8,7,6,<wbr>5,4,3,2,1,0 /) ; Reorder the legends</div><div><br></div><div>; LEGEND HEIGHT AND WIDTH</div><div> lgres@vpWidthF = 0.15 ; width of legend (NDC)</div><div> lgres@vpHeightF = 0.175 ; height of legend (NDC)</div><div><br></div><div>; LEGEND FONT HEIGHT (AVOID IF POSSIBLE)</div><div>; lgres@lgAutoManage = False ; Necessary to set font hgt</div><div>; lgres@lgLabelFontHeightF = 0.025 ; label font height</div><div><br></div><div>; LEGEND BORDER AND COLORFILL</div><div> lgres@lgPerimOn = False ; turn off/on box around</div><div> lgres@lgPerimFill = "SolidFill" ; Fill legend box w/white</div><div> lgres@lgPerimFillColor = "white" ; so it masks XY curves</div><div><br></div><div>;</div><div>; Draw the legend, indicating the number of items, a label for each</div><div>; item, and the X, Y position of the legend in NDC coordinates.</div><div>;</div><div> gsn_legend_ndc(wks,17,labels,<wbr>0.80,0.99,lgres)</div></div><div><br></div><div>Thanks in advance!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>AR</div><div><br></div>-- <br><div data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-weight:bold"><font color="#000000"><br></font></div><div><font color="#000000"><font size="1"><b>Alan Rhoades | </b></font><b style="font-size:12.8px"><font size="1">PhD Candidate | </font></b></font><b style="font-size:12.8px"><font color="#000000" size="1">University of California, Davis</font></b></div><div><b style="font-size:12.8px"><font color="#000000" size="1">Atmospheric Science Graduate Group | </font></b><b style="font-size:12.8px"><font color="#000000" size="1">Climate Change Water and Society (CCWAS) NSF IGERT Trainee</font></b></div><div><div><b style="color:rgb(0,0,0);font-size:12.8px"><i><font face="arial, helvetica, sans-serif"><u><font size="1"><a href="mailto:alan.m.rhoades@gmail.com" target="_blank">alan.m.rhoades@gmail.com</a></font></u></font><span style="font-size:12.8px"> |</span><span style="font-size:12.8px"> </span><u style="font-size:12.8px;font-family:arial,helvetica,sans-serif"><a href="mailto:amrhoades@ucdavis.edu" target="_blank"><font size="1">amr<wbr>hoades@ucdavis.edu</font></a></u></i></b><b><font color="#000000" size="1"><br></font></b></div><div><font color="#000000"><b><i><font size="1"><u><a href="http://alanrhoades.weebly.com/" target="_blank">Website</a></u></font><span style="font-size:12.8px"> |</span><span style="font-size:12.8px"> </span><font size="1"><u><a href="https://www.researchgate.net/profile/Alan_Rhoades" target="_blank">Research Gate</a></u></font><span style="font-size:12.8px"> |</span><font size="1"> </font><u style="font-size:12.8px"><font size="1"><a href="https://www.linkedin.com/pub/alan-rhoades/22/5bb/52a" target="_blank">LinkedIn</a></font></u></i></b></font><b style="font-size:12.8px;color:rgb(0,0,0)"><i><span style="font-size:12.8px"> | </span></i></b><b style="font-size:12.8px;color:rgb(0,0,0)"><i><font size="1"><u><a href="https://scholar.google.gr/citations?user=AVFLiFsAAAAJ&hl=en" target="_blank">Google Scholar</a></u></font></i></b></div></div></div></div></div></div></div></div></div></div></div></div></div>
</font></span></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>