<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office"><head><!--[if gte mso 9]><xml><o:OfficeDocumentSettings><o:AllowPNG/><o:PixelsPerInch>96</o:PixelsPerInch></o:OfficeDocumentSettings></xml><![endif]--></head><body><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;"><div></div>
        <div>Dear Mary,</div><div>Thank you so much for your nice reply.</div><div>Obviously I had seen most examples of this page: <a href="http://www.ncl.ucar.edu/Applications/bar.shtml" rel="nofollow" target="_blank">http://www.ncl.ucar.edu/Applications/bar.shtml</a></div><div>However I have some difficulties and for that reason I just need more help. My code is somehow different from <a href="http://www.ncl.ucar.edu/Applications/bar.shtml#ex14" rel="nofollow" target="_blank">http://www.ncl.ucar.edu/Applications/bar.shtml#ex14</a>, but much similar to it.</div><div>However I failed to 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" to this example. I'll be thankful if I could have some lines for that.</span></span></div><div>Your links are so helpful and I saw them.</div><div><br></div><div>Sincerely</div><div>Ehsan </div><div><br></div>
        
        </div><div id="yahoo_quoted_8988006417" class="yahoo_quoted">
            <div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
                
                <div>
                    On Friday, October 5, 2018, 9:51:53 PM GMT+3:30, Mary Haley <haley@ucar.edu> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="yiv7741417751"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="yiv7741417751gmail_default" style="font-size:small;">There are several examples on that page of how to add a legend using labelbars.  See:</div><div class="yiv7741417751gmail_default" style="font-size:small;"><br clear="none"></div><div class="yiv7741417751gmail_default"><a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Applications/bar.shtml#ex7">http://www.ncl.ucar.edu/Applications/bar.shtml#ex7</a><br clear="none"></div><div class="yiv7741417751gmail_default"><a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Applications/bar.shtml#ex11">http://www.ncl.ucar.edu/Applications/bar.shtml#ex11</a><br clear="none"></div><div class="yiv7741417751gmail_default"><a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Applications/bar.shtml#ex22">http://www.ncl.ucar.edu/Applications/bar.shtml#ex22</a><br clear="none"></div><div class="yiv7741417751gmail_default"><br clear="none"></div><div class="yiv7741417751gmail_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="yiv7741417751gmail_default"><br clear="none"></div><div class="yiv7741417751gmail_default">The primitives page has many examples. See:</div><div class="yiv7741417751gmail_default"><br clear="none"></div><div class="yiv7741417751gmail_default"><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-color:initial;float:none;display:inline;"><a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Applications/polyg.shtml#ex8">http://www.ncl.ucar.edu/Applications/polyg.shtml#ex8</a></span></div><div class="yiv7741417751gmail_default"><a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Applications/polyg.shtml#ex16">http://www.ncl.ucar.edu/Applications/polyg.shtml#ex16</a><br clear="none"></div><div class="yiv7741417751gmail_default"><a rel="nofollow" shape="rect" target="_blank" href="http://www.ncl.ucar.edu/Applications/polyg.shtml#ex18">http://www.ncl.ucar.edu/Applications/polyg.shtml#ex18</a><br clear="none"></div><div class="yiv7741417751gmail_default"><br clear="none"></div><div class="yiv7741417751gmail_default">--Mary</div><div class="yiv7741417751gmail_default"><br clear="none"></div><div class="yiv7741417751gmail_default"><br clear="none"></div></div></div></div></div></div></div><div class="yiv7741417751gmail_extra"><br clear="none"><div class="yiv7741417751gmail_quote">On Fri, Oct 5, 2018 at 8:41 AM, Ehsan Taghizadeh <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:ehsantaghizadeh@yahoo.com" target="_blank" href="mailto:ehsantaghizadeh@yahoo.com">ehsantaghizadeh@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv7741417751gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv7741417751yqt9318264758" id="yiv7741417751yqt69060"><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></span><div style="color:rgb(0,0,0);">Hi,</div><div style="color:rgb(0,0,0);">May I ask how add legend, <span><span style="color:rgb(0,0,0);">"vpWidthF" and "vpHeightF" </span></span> to script (bar_14.ncl):</div><div style="color:rgb(0,0,0);"><a rel="nofollow" shape="rect" class="yiv7741417751m_-1643570866279292297enhancr_card_8884959890" target="_blank" href="https://www.ncl.ucar.edu/Applications/bar.shtml">NCL Graphics: Bar Charts</a><br clear="none"></div><div><br clear="none"></div><div class="yiv7741417751m_-1643570866279292297ydp536cf4ffyahoo-link-enhancr-card yiv7741417751m_-1643570866279292297ydp536cf4ffyahoo-link-enhancr-not-allow-cover yiv7741417751m_-1643570866279292297ydp536cf4ffymail-preserve-class yiv7741417751m_-1643570866279292297ydp536cf4ffymail-preserve-style" id="yiv7741417751m_-1643570866279292297ydp536cf4ffenhancr_card_8884959890" style="max-width:400px;"><a rel="nofollow" shape="rect" class="yiv7741417751m_-1643570866279292297ydp536cf4ffyahoo-enhancr-cardlink" target="_blank" href="https://www.ncl.ucar.edu/Applications/bar.shtml" style="text-decoration:none!important;color:#000!important;"><table class="yiv7741417751m_-1643570866279292297ydp536cf4ffcard-wrapper yiv7741417751m_-1643570866279292297ydp536cf4ffyahoo-ignore-table" border="0" cellpadding="0" cellspacing="0" style="max-width:400px;"><tbody><tr><td colspan="1" rowspan="1" width="400"><table class="yiv7741417751m_-1643570866279292297ydp536cf4ffcard yiv7741417751m_-1643570866279292297ydp536cf4ffyahoo-ignore-table" border="0" 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 colspan="1" rowspan="1"><table class="yiv7741417751m_-1643570866279292297ydp536cf4ffcard-info yiv7741417751m_-1643570866279292297ydp536cf4ffyahoo-ignore-table" border="0" 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 colspan="1" rowspan="1" style="background-color:#ffffff;padding:16px 0 16px 12px;vertical-align:top;border-radius:0 0 0 2px;"></td><td colspan="1" rowspan="1" style="vertical-align:middle;padding:12px 24px 16px 12px;width:99%;"><h2 class="yiv7741417751m_-1643570866279292297ydp536cf4ffcard-title" style="font-size:14px;line-height:19px;margin:0px 0px 6px;">NCL Graphics: Bar Charts</h2><p class="yiv7741417751m_-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 clear="none"></div><div><br clear="none"></div><div style="color:rgb(0,0,0);"><br clear="none"></div><div style="color:rgb(0,0,0);">Sincerely<span class="yiv7741417751HOEnZb"><font color="#888888"><br clear="none"></font></span></div><span class="yiv7741417751HOEnZb"><font color="#888888"></font></span><div style="color:rgb(0,0,0);">Ehsan</div></div></div></div></div><br clear="none">______________________________ _________________<br clear="none">
ncl-talk mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/ mailman/listinfo/ncl-talk</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div></div>
            </div>
        </div></div></body></html>