<div dir="ltr"><div class="gmail_default" style="font-size:small">Sandro,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">On the same legend page that Rick pointed you to, you could also check out the "simple_legend" function that Adam Phillips created. Examples 16, 17, and 19 show how to use this function.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you need to draw the legend outside the plot, then simple_legend_ndc can be used. This function has not yet been released, so I've attached it here. You would need to load it with:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">load "./simple_legend_ndc.ncl"</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Examples 20 and 21 show how to use that function.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Mar 17, 2018 at 7:46 AM, Rick Brownrigg <span dir="ltr"><<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</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><div><div>Hi,<br><br></div>I now understand what you are saying. I'm not expert at this, but I wonder if pmLegendWidthF is the resource you need (<a href="http://ncl.ucar.edu/Document/Graphics/Resources/pm.shtml" target="_blank">http://ncl.ucar.edu/Document/<wbr>Graphics/Resources/pm.shtml</a>). There are several examples that explicitly set this at:<br><br>    <a href="http://ncl.ucar.edu/Applications/legend.shtml" target="_blank">http://ncl.ucar.edu/Applicatio<wbr>ns/legend.shtml</a><br><br></div>If that does not help, please reply back to ncl-talk, as perhaps others with more experience can offer advise. <br><br></div>Rick<br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 16, 2018 at 10:06 PM, Vattioni Sandro <span dir="ltr"><<a href="mailto:sandro.vattioni@outlook.com" target="_blank">sandro.vattioni@outlook.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 dir="ltr" style="font-family:'Calibri','Segoe UI','Meiryo','Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','sans-serif';font-size:12pt">
<div>Hi Rick</div>
<div><br>
</div>
<div>Thanks for your fast answer.</div>
<div>Attached I’m sending you a screen-shot.</div>
<div>I just want to decrease the length of the dash paterns in the legend. It looks kind of silly when they are so long. I tried to draw the desired outcome 😃</div>
<div><br>
</div>
<div>Thank you very much for your help.</div>
<div><br>
</div>
<div>Sandro <br>
</div>
<div><br>
</div>
<div style="padding-top:5px;border-top-color:rgb(229,229,229);border-top-width:1px;border-top-style:solid">
<div><font style="line-height:15pt;letter-spacing:0.02em;font-family:"Calibri","Segoe UI","Meiryo","Microsoft YaHei UI","Microsoft JhengHei UI","Malgun Gothic","sans-serif";font-size:12pt" face=" 'Calibri', 'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif'"><b>Von:</b> <a href="mailto:brownrig@ucar.edu" target="_blank">Rick
 Brownrigg</a><br>
<b>Gesendet:</b> ‎Freitag‎, ‎16‎. ‎März‎ ‎2018 ‎23‎:‎34<br>
<b>An:</b> <a href="mailto:sandro.vattioni@outlook.com" target="_blank">Vattioni Sandro</a><br>
<b>Cc:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a></font></div>
</div><div><div class="h5"><div><div class="m_5724805878400498104m_-3838862962810226191h5">
<div><br>
</div>
<div dir="">
<div dir="ltr">
<div>
<div>Hi Sandro,<br>
<br>
</div>
Can you post a picture of what you talking about? I am having trouble visualizing what the issue is... :-/<br>
<br>
</div>
Rick<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Mar 16, 2018 at 9:15 PM, Vattioni Sandro <span dir="ltr">
<<a href="mailto:sandro.vattioni@outlook.com" target="_blank">sandro.vattioni@outlook.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid">
<div dir="ltr">
<div style="font-family:"Calibri","Segoe UI","Meiryo","Microsoft YaHei UI","Microsoft JhengHei UI","Malgun Gothic","sans-serif";font-size:12pt" dir="ltr">
<div>Dear Madam or Sir</div>
<div><br>
</div>
<div>I wnat to draw a legend for my xy-plot in ncl, but the dash patern of the line is very long compared to the text. I tried to make the dash pattern shorter with lgLineDashSegLenF but it did not work. How can I controll the length of the dash pattern using
 the legendClass?</div>
<div><br>
</div>
<div>Kind regards,</div>
<div>Sandro</div>
<div><br>
</div>
<div>legend = create "Legend" legendClass wks<br>
   "lgTitleString"            : "Left Hand Side Column: 10~F34~0~F~N-10~F34~0~F~S emission"<br>
   "vpXF"                     : 0.2                  ; orientation on page<br>
   "vpYF"                     : 0.15  ;0.48<br>
   "vpWidthF"                 : 0.1 ;0.3                     ; width<br>
   "vpHeightF"                : 0.12                    ; height<br>
   "lgAutoManage"             : True<br>
   "lgPerimOn"                : False                   ; no perimeter<br>
   "lgItemCount"              : 5                      ; how many<br>
   "lgItemType"               : "Lines"<br>
   "lgLabelStrings"           : (/"Reference run","Continuous aerosol emission","Continuous <br>
   "lgLabelsOn"               : True                    ; no default lables<br>
   "lgLabelOffsetF"           : 0.0<br>
   "lgLineLabelFontHeightF"   : 2.0<br>
   "lgLineDashSegLenF"        : 0.01<br>
   "lgDashIndexes"            : (/0,0,0,0,0/)   ;4<br>
   "lgLineColors"             : (/"black","blue","red","darkvi<wbr>olet","orange"/)</div>
<div><br>
</div>
<div> end create</div>
<div><br>
</div>
<div> draw(legend)<br>
<br>
</div>
</div>
</div>
<br>
______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div></div></div></div></div>
</div>

</blockquote></div><br></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>