<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">There are several examples on that page of how to add a legend using labelbars. See:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/bar.shtml#ex7">http://www.ncl.ucar.edu/Applications/bar.shtml#ex7</a><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/bar.shtml#ex11">http://www.ncl.ucar.edu/Applications/bar.shtml#ex11</a><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/bar.shtml#ex22">http://www.ncl.ucar.edu/Applications/bar.shtml#ex22</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">If you don't want a labelbar, then you can use markers, text, and/or lines to add your own legend, using calls to gsn_text_ndc, gsn_polyline_ndc, gsn_polymarker_ndc, and gsn_polygon_nc.</div><div class="gmail_default"><br></div><div class="gmail_default">The primitives page has many examples. See:</div><div class="gmail_default"><br></div><div class="gmail_default"><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><a href="http://www.ncl.ucar.edu/Applications/polyg.shtml#ex8">http://www.ncl.ucar.edu/Applications/polyg.shtml#ex8</a></span></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/polyg.shtml#ex16">http://www.ncl.ucar.edu/Applications/polyg.shtml#ex16</a><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/polyg.shtml#ex18">http://www.ncl.ucar.edu/Applications/polyg.shtml#ex18</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div><div class="gmail_default"><br></div></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 5, 2018 at 8:41 AM, Ehsan Taghizadeh <span dir="ltr"><<a href="mailto:ehsantaghizadeh@yahoo.com" target="_blank">ehsantaghizadeh@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-family:bookman old style,new york,times,serif;font-size:16px"><div style="font-family:bookman old style,new york,times,serif;font-size:16px"><span><div style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px">Hi,</div><div style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px">May I ask how add legend, <span><span style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px">"vpWidthF" and "vpHeightF" </span></span> to script (bar_14.ncl):</div><div style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px"><a href="https://www.ncl.ucar.edu/Applications/bar.shtml" rel="nofollow" class="m_-1643570866279292297enhancr_card_8884959890" target="_blank">NCL Graphics: Bar Charts</a><br></div><div><br></div><div id="m_-1643570866279292297ydp536cf4ffenhancr_card_8884959890" class="m_-1643570866279292297ydp536cf4ffyahoo-link-enhancr-card m_-1643570866279292297ydp536cf4ffyahoo-link-enhancr-not-allow-cover m_-1643570866279292297ydp536cf4ffymail-preserve-class m_-1643570866279292297ydp536cf4ffymail-preserve-style" style="max-width:400px;font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,sans-serif"><a href="https://www.ncl.ucar.edu/Applications/bar.shtml" style="text-decoration:none!important;color:#000!important" class="m_-1643570866279292297ydp536cf4ffyahoo-enhancr-cardlink" rel="nofollow" target="_blank"><table border="0" class="m_-1643570866279292297ydp536cf4ffcard-wrapper m_-1643570866279292297ydp536cf4ffyahoo-ignore-table" cellpadding="0" cellspacing="0" style="max-width:400px"><tbody><tr><td width="400"><table border="0" class="m_-1643570866279292297ydp536cf4ffcard m_-1643570866279292297ydp536cf4ffyahoo-ignore-table" cellpadding="0" cellspacing="0" width="100%" style="max-width:400px;border-width:1px;border-style:solid;border-color:rgb(224,228,233);border-radius:2px"><tbody><tr><td><table border="0" class="m_-1643570866279292297ydp536cf4ffcard-info m_-1643570866279292297ydp536cf4ffyahoo-ignore-table" cellpadding="0" cellspacing="0" style="background:#fff;width:100%;max-width:400px;border-radius:0 0 2px 2px;border-top:1px solid rgb(224,228,233)"><tbody><tr><td style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;border-radius:0 0 0 2px"></td><td style="vertical-align:middle;padding:12px 24px 16px 12px;width:99%;font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,sans-serif;border-radius:0 0 2px 0"><h2 class="m_-1643570866279292297ydp536cf4ffcard-title" style="font-size:14px;line-height:19px;margin:0px 0px 6px;font-family:"Helvetica Neue","Segoe UI",Helvetica,Arial,sans-serif;color:rgb(38,40,42)">NCL Graphics: Bar Charts</h2><p class="m_-1643570866279292297ydp536cf4ffcard-description" style="font-size:12px;line-height:16px;margin:0px;color:rgb(151,155,167)">NCL graphics examples page. Describes how to create bar charts.</p></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></a></div><div><br></div><div><br></div><div style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px"><br></div><div style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px">Sincerely<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div style="color:rgb(0,0,0);font-family:"bookman old style","new york",times,serif;font-size:16px">Ehsan</div></font></span></span></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>