<div dir="ltr"><div class="gmail_default" style="font-size:small">I do (sort of) consider this a bug in gsn_csm_vector, but I also think that most people end up moving the vector annotation into the plot, or to the side, because it looks odd when it is between the plot and the labelbar.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The reason why gsnMaximize works is because this resource not only resizes plots to fix the page, but it will also *reduce* them if they are too large for the page. This was actually an unintended, but useful consequence of this resource.  It probably should have been renamed &quot;gsnFitPlotToFrame&quot; or something similar.  :-)</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 class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 8, 2016 at 9:39 AM, Dennis Shea <span dir="ltr">&lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;</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><div><div>Mary Haley informed me that using<br><br></div>   res@gsnMaximize = True<br><br></div>would fix the problem. I actually had that statement commented out in my sample script. I removed it to avoid extra unused lines in the sample script.<br><br></div>Inserting the above fixes the problem.<br></div>I am not sure why   :-(<br><br></div>Anyway, it works.<br><div><div><br><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 8, 2016 at 7:29 AM, Dennis Shea <span dir="ltr">&lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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 (&quot;x11&quot;, &quot;vec_test&quot;)       <br>  res                     = True<br><br>  res@tiMainString         = &quot;Title&quot;<br>  vector = gsn_csm_vector_scalar(wks,U,V,W,res)<br><br>  res@lbOrientation =   &quot;vertical&quot;          ; 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"><div><div>On Wed, Jun 8, 2016 at 6:54 AM, Kacie Shourd <span dir="ltr">&lt;<a href="mailto:Kacie.Shourd@dri.edu" target="_blank">Kacie.Shourd@dri.edu</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>




<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><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>
<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">&lt;<a href="mailto:keytone25@gmail.com" target="_blank">keytone25@gmail.com</a>&gt;</span><br>
Date: Wed, Jun 8, 2016 at 1:33 AM<br>
Subject: Re: [ncl-talk] help<br>
To: Kacie Shourd &lt;<a href="mailto:Kacie.Shourd@dri.edu" target="_blank">Kacie.Shourd@dri.edu</a>&gt;<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">
&lt;<a href="mailto:Kacie.Shourd@dri.edu" target="_blank">Kacie.Shourd@dri.edu</a>&gt;</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 = &quot;x11&quot;</div>
<div>  wks_type@wkWidth = 2500</div>
<div>  wks_type@wkHeight = 2500</div>
<div>  wks = gsn_open_wks(wks_type, &quot;cyclone_wind&quot;)</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></div></div>_______________________________________________<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/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></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>