<div dir="ltr"><div class="gmail_default" style="font-size:small">I'm sorry, but I don't know what you mean by "I failed to add legend, vpWidthF and vpHeightF to this example".</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Do you mean you are trying to set a height and width for your legend and it's not working? Are you using gsn_legend_ndc to create a legend? If not, then what kind of legend are you trying to create?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you have a problem with an NCL script, you MUST tell us what you have tried so far, and show us some code and explain in detail what you are trying to do. </div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 5, 2018 at 1:21 PM, 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"><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/<wbr>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/<wbr>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><span class="HOEnZb"><font color="#888888"><div>Ehsan </div><div><br></div>
        
        </font></span></div><div><div class="h5"><div id="m_-2974062071287236047yahoo_quoted_8988006417" class="m_-2974062071287236047yahoo_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 <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>> wrote:
                </div>
                <div><br></div>
                <div><br></div>
                <div><div id="m_-2974062071287236047yiv7741417751"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="m_-2974062071287236047yiv7741417751gmail_default" style="font-size:small">There are several examples on that page of how to add a legend using labelbars.  See:</div><div class="m_-2974062071287236047yiv7741417751gmail_default" style="font-size:small"><br clear="none"></div><div class="m_-2974062071287236047yiv7741417751gmail_default"><a rel="nofollow" shape="rect" href="http://www.ncl.ucar.edu/Applications/bar.shtml#ex7" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/bar.shtml#ex7</a><br clear="none"></div><div class="m_-2974062071287236047yiv7741417751gmail_default"><a rel="nofollow" shape="rect" href="http://www.ncl.ucar.edu/Applications/bar.shtml#ex11" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/bar.shtml#ex11</a><br clear="none"></div><div class="m_-2974062071287236047yiv7741417751gmail_default"><a rel="nofollow" shape="rect" href="http://www.ncl.ucar.edu/Applications/bar.shtml#ex22" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/bar.shtml#ex22</a><br clear="none"></div><div class="m_-2974062071287236047yiv7741417751gmail_default"><br clear="none"></div><div class="m_-2974062071287236047yiv7741417751gmail_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="m_-2974062071287236047yiv7741417751gmail_default"><br clear="none"></div><div class="m_-2974062071287236047yiv7741417751gmail_default">The primitives page has many examples. See:</div><div class="m_-2974062071287236047yiv7741417751gmail_default"><br clear="none"></div><div class="m_-2974062071287236047yiv7741417751gmail_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" href="http://www.ncl.ucar.edu/Applications/polyg.shtml#ex8" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/polyg.shtml#ex8</a></span></div><div class="m_-2974062071287236047yiv7741417751gmail_default"><a rel="nofollow" shape="rect" href="http://www.ncl.ucar.edu/Applications/polyg.shtml#ex16" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/polyg.shtml#ex16</a><br clear="none"></div><div class="m_-2974062071287236047yiv7741417751gmail_default"><a rel="nofollow" shape="rect" href="http://www.ncl.ucar.edu/Applications/polyg.shtml#ex18" target="_blank">http://www.ncl.ucar.edu/<wbr>Applications/polyg.shtml#ex18</a><br clear="none"></div><div class="m_-2974062071287236047yiv7741417751gmail_default"><br clear="none"></div><div class="m_-2974062071287236047yiv7741417751gmail_default">--Mary</div><div class="m_-2974062071287236047yiv7741417751gmail_default"><br clear="none"></div><div class="m_-2974062071287236047yiv7741417751gmail_default"><br clear="none"></div></div></div></div></div></div></div><div class="m_-2974062071287236047yiv7741417751gmail_extra"><br clear="none"><div class="m_-2974062071287236047yiv7741417751gmail_quote">On Fri, Oct 5, 2018 at 8:41 AM, Ehsan Taghizadeh <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:ehsantaghizadeh@yahoo.com" target="_blank">ehsantaghizadeh@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="m_-2974062071287236047yiv7741417751gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="m_-2974062071287236047yiv7741417751yqt9318264758" id="m_-2974062071287236047yiv7741417751yqt69060"><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="m_-2974062071287236047yiv7741417751m_-1643570866279292297enhancr_card_8884959890" href="https://www.ncl.ucar.edu/Applications/bar.shtml" target="_blank">NCL Graphics: Bar Charts</a><br clear="none"></div><div><br clear="none"></div><div class="m_-2974062071287236047yiv7741417751m_-1643570866279292297ydp536cf4ffyahoo-link-enhancr-card m_-2974062071287236047yiv7741417751m_-1643570866279292297ydp536cf4ffyahoo-link-enhancr-not-allow-cover m_-2974062071287236047yiv7741417751m_-1643570866279292297ydp536cf4ffymail-preserve-class m_-2974062071287236047yiv7741417751m_-1643570866279292297ydp536cf4ffymail-preserve-style" id="m_-2974062071287236047yiv7741417751m_-1643570866279292297ydp536cf4ffenhancr_card_8884959890" style="max-width:400px"><a rel="nofollow" shape="rect" class="m_-2974062071287236047yiv7741417751m_-1643570866279292297ydp536cf4ffyahoo-enhancr-cardlink" href="https://www.ncl.ucar.edu/Applications/bar.shtml" style="text-decoration:none!important;color:#000!important" target="_blank"><table class="m_-2974062071287236047yiv7741417751m_-1643570866279292297ydp536cf4ffcard-wrapper m_-2974062071287236047yiv7741417751m_-1643570866279292297ydp536cf4ffyahoo-ignore-table" border="0" cellpadding="0" cellspacing="0" style="max-width:400px"><tbody><tr><td colspan="1" rowspan="1" width="400"><table class="m_-2974062071287236047yiv7741417751m_-1643570866279292297ydp536cf4ffcard m_-2974062071287236047yiv7741417751m_-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="m_-2974062071287236047yiv7741417751m_-1643570866279292297ydp536cf4ffcard-info m_-2974062071287236047yiv7741417751m_-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="m_-2974062071287236047yiv7741417751m_-1643570866279292297ydp536cf4ffcard-title" style="font-size:14px;line-height:19px;margin:0px 0px 6px">NCL Graphics: Bar Charts</h2><p class="m_-2974062071287236047yiv7741417751m_-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="m_-2974062071287236047yiv7741417751HOEnZb"><font color="#888888"><br clear="none"></font></span></div><span class="m_-2974062071287236047yiv7741417751HOEnZb"><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" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br clear="none">
List instructions, subscriber options, unsubscribe:<br clear="none">
<a rel="nofollow" shape="rect" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">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></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>