<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" width="394" height="204"><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,0.80,0.99,lgres)<br></div><div><br></div><div>...to...</div><div><br></div><div>gsn_legend_ndc(wks,(/8,9/),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>***********************************************</div><div>; legend resources</div><div>;***********************************************</div><div> labels = (/"VR-CESM28 - 1980-2005","VR-CESM28 - 2025-2050","VR-CESM28 - 2075-2100","PRISM","BCSD-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","Green","royalblue3","royalblue2","royalblue1","gray40","gray45","gray50","gray55","gray60","gray65","gray70","gray75","gray80"/)</div><div> lgres@lgDashIndexes = (/0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1/) ; dash indexes</div><div> lgres@lgItemOrder = (/ 16,15,14,13,12,11,10,9,8,7,6,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,0.80,0.99,lgres)</div></div><div><br></div><div>Thanks in advance!</div><div><br></div><div>AR</div><div><br></div>-- <br><div class="gmail_signature" 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">amrhoades@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>
</div>