<div dir="ltr">In my opinion, there is a bug in gsn_csm_vector. I will open a ticket.<br><br>Try the following.<br><br>;<br>; Generate dummy vector data arrays<br>;<br> M = 30<br> N = 30<br> PI = 3.14159<br><br> V = 10.0 * cos(onedtond((2.0 * PI / M) * ispan(0,M-1,1),(/N,M/)))<br> U = 10.0 * cos(onedtond((2.0 * PI / N) * ispan(0,N-1,1),(/M,N/)))<br> W = sqrt(U^2 +V^2)<br><br> wks = gsn_open_wks ("x11", "vec_test") <br> res = True<br><br> res@tiMainString = "Title"<br> vector = gsn_csm_vector_scalar(wks,U,V,W,res)<br><br> res@lbOrientation = "vertical" ; vertical label bar<br> vector = gsn_csm_vector_scalar(wks,U,V,W,res)<br><br> delete(res@lbOrientation) ; return to horizontal<br><br> res@vcRefAnnoOrthogonalPosF = -1.0 ; move ref vector up<br> vector = gsn_csm_vector_scalar(wks,U,V,W,res)<br><br> res@vcRefAnnoOrthogonalPosF = -0.125 ; move ref vector up<br> vector = gsn_csm_vector_scalar(wks,U,V,W,res)<br><br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 8, 2016 at 6:54 AM, Kacie Shourd <span dir="ltr"><<a href="mailto:Kacie.Shourd@dri.edu" target="_blank">Kacie.Shourd@dri.edu</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="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt">You could also try to move the label bar up closer to the plot. Try poking around here: <a href="http://www.ncl.ucar.edu/Applications/labelbar.shtml" target="_blank">http://www.ncl.ucar.edu/Applications/labelbar.shtml</a>
<div>Specifically <a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/pm.shtml#pmLabelBarOrthogonalPosF" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133);font-family:verdana,sans-serif;font-size:13.3333px;line-height:16px;background-color:rgb(255,255,255)" target="_blank"><em style="margin:0px;padding:0px">pmLabelBarOrthogonalPosF</em></a><span style="font-family:verdana,sans-serif;font-size:13.3333px;line-height:16px;background-color:rgb(255,255,255)">
or </span><em style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133);font-family:verdana,sans-serif;font-size:13.3333px;line-height:16px;background-color:rgb(255,255,255)"><a href="http://www.ncl.ucar.edu/Document/Graphics/Resources/pm.shtml#pmLabelBarOrthogonalPosF" style="margin:0px;padding:0px;text-decoration:none;color:rgb(133,45,133);font-family:verdana,sans-serif;font-size:13.3333px;line-height:16px;background-color:rgb(255,255,255)" target="_blank">pmLabelBarParallelPosF</a>.</em></div>
<div><span style="font-family:verdana,sans-serif;font-size:13.3333px;line-height:16px;background-color:rgb(255,255,255)"><br>
</span></div>
<div><span style="font-family:verdana,sans-serif;font-size:13.3333px;line-height:16px;background-color:rgb(255,255,255)">best</span></div>
<div><span style="font-family:verdana,sans-serif;font-size:13.3333px;line-height:16px;background-color:rgb(255,255,255)">Kacie </span><br>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000" size="2"><span class=""><b>From:</b> <a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> [<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>] on behalf of Key Tone [<a href="mailto:keytone25@gmail.com" target="_blank">keytone25@gmail.com</a>]<br>
</span><b>Sent:</b> Tuesday, June 07, 2016 10:49 PM<br>
<b>To:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> [ncl-talk] Fwd: help<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>
<div dir="ltr"><br>
<div class="gmail_quote">---------- Forwarded message ----------<br>
From: <b class="gmail_sendername">Key Tone</b> <span dir="ltr"><<a href="mailto:keytone25@gmail.com" target="_blank">keytone25@gmail.com</a>></span><br>
Date: Wed, Jun 8, 2016 at 1:33 AM<br>
Subject: Re: [ncl-talk] help<br>
To: Kacie Shourd <<a href="mailto:Kacie.Shourd@dri.edu" target="_blank">Kacie.Shourd@dri.edu</a>><br>
<br>
<br>
<div dir="ltr">Hmm, even when I adjusted, it appears the legend still is cut off. Do you think this may be something more than just a resizing issue?
<div><br>
</div>
<div>Thanks</div>
</div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Wed, Jun 8, 2016 at 1:22 AM, Kacie Shourd <span dir="ltr">
<<a href="mailto:Kacie.Shourd@dri.edu" target="_blank">Kacie.Shourd@dri.edu</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="direction:ltr;font-family:Tahoma;color:#000000;font-size:10pt"><span style="font-size:13.3333px">Hi! </span>
<div style="font-size:13.3333px"><br>
</div>
<div style="font-size:13.3333px">It should work if you make the wks bigger.</div>
<div style="font-size:13.3333px"><br>
</div>
<div style="font-size:13.3333px">try adding this bit of code:</div>
<div style="font-size:13.3333px"><br>
</div>
<div style="font-size:13.3333px">
<div> wks_type = "x11"</div>
<div> wks_type@wkWidth = 2500</div>
<div> wks_type@wkHeight = 2500</div>
<div> wks = gsn_open_wks(wks_type, "cyclone_wind")</div>
<div><br>
</div>
<div>And adjust the numbers for width and height as necessary until the legend is no longer cut off.</div>
<div><br>
</div>
<div>Best,</div>
<div>Kacie</div>
<div><br>
</div>
</div>
<div style="font-family:Times New Roman;color:#000000;font-size:16px">
<hr>
<div style="direction:ltr"><font face="Tahoma" color="#000000" size="2"><b>From:</b>
<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a> [<a href="mailto:ncl-talk-bounces@ucar.edu" target="_blank">ncl-talk-bounces@ucar.edu</a>] on behalf of Key Tone [<a href="mailto:keytone25@gmail.com" target="_blank">keytone25@gmail.com</a>]<br>
<b>Sent:</b> Tuesday, June 07, 2016 10:12 PM<br>
<b>To:</b> <a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
<b>Subject:</b> [ncl-talk] help<br>
</font><br>
</div>
<div>
<div>
<div></div>
<div>
<div dir="ltr">Hello,
<div><br>
</div>
<div>For the vector plot, below, what should I include in my code to get the legend to show? It looks cut off: </div>
<div><img src="cid:ii_1552e6c0b8716609" alt="Inline image 1" height="454" width="432"><br>
</div>
<div><br>
</div>
<div>Here is the code I used to get this plot:</div>
<div><img src="cid:ii_1552e6d48cb3641e" alt="Inline image 2" height="201" width="454"><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<font face="Arial" size="2">PUBLIC RECORDS NOTICE: In accordance with NRS Chapter 239, this email and responses, unless otherwise made confidential by law, may be subject to the Nevada Public Records laws and may be disclosed to the public upon request.</font>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</div>
</div></div></div>
</div>
</div>
</div>
<br>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>