<div dir="ltr"><div class="gmail_default" style="font-size:small">Wenshan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">It is &quot;dangerous&quot; to have vpXXXX resources in your .hluresfile for the very reason that you are seeing.  This is going to set the height and width for every single plot that you create, which may cause unexpected results.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I believe what&#39;s happening is that when you attach text to the top of the plot, the gsn_xxxx scripts try to resize the plot slightly so that the titles don&#39;t run off the page.  The resizing is done with vpHeightF/vpWidthF resources, which apparently can&#39;t be reset if you&#39;ve already set them for the plot (confusing, I know).</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 22, 2014 at 1:08 AM, Wenshan Wang <span dir="ltr">&lt;<a href="mailto:wenshanw@uci.edu" target="_blank">wenshanw@uci.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>Hi Mary,</div><div><br></div><div>Thank you very much for the following up.</div><div>Sorry I forgot to forward the following email to you.</div><div><br></div><div>To sum up, I have these two lines in my .hluresfile, which cause the problem:</div><div><div><div>!- canvas size: ratio of plot</div><div>*vpHeightF  : 0.3</div><div>*vpWidthF   : 0.8</div></div></div><div><br></div><div>Is there a way that I can keep these two lines in .hluresfile? </div><div>Thank you~</div><span class=""><br clear="all"><div><div dir="ltr"><div><div><div><div>Best,<br></div>Wenshan<br>------------------------------------------------------------------------------<br></div>Graduate Student Researcher<br></div>Earth System Science<br></div>University of California, Irvine<br></div></div>
<br></span><div class="gmail_quote"><span class="">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Wenshan Wang</b> <span dir="ltr">&lt;<a href="mailto:wenshanw@uci.edu" target="_blank">wenshanw@uci.edu</a>&gt;</span><br>Date: Sat, Sep 6, 2014 at 4:52 AM<br>Subject: Re: [ncl-talk] warning:TextItemInitialize: Cannot set x, y, width, and height<br>To: Adam Phillips &lt;<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>&gt;<br><br><br></span><div dir="ltr"><span class=""><span>To be clear, no matter what scripts are loaded at the top, if you include gsnLeftString in your resource list you get the following error correct?<br><div><br></div></span></span><div>Yes. This is what happens on my computer.</div><div><br></div><div>===================================================================</div><div>I found the problem!!!</div><div><br></div><div>In my .hluresfile, I have these two lines:</div><div><div>!- canvas size: ratio of plot</div><div>*vpHeightF  : 0.3</div><div>*vpWidthF   : 0.8</div></div><div><br></div><div>It seems they are causing the problem. If I turn them off, there will be no warnings at all.</div><div>It&#39;s OK. I can just turn them off and include these two settings in each ncl script.</div><div><br></div></div><div class="gmail_extra"><span class=""><span><div><div dir="ltr"><div><div><div><div>Best,<br></div>Wenshan<br>------------------------------------------------------------------------------<br></div>Graduate Student Researcher<br></div>Earth System Science<br></div>University of California, Irvine<br></div></div>
<br><br></span></span><div><div class="h5"><div><div><div class="gmail_quote">On Fri, Sep 5, 2014 at 1:43 PM, Adam Phillips <span dir="ltr">&lt;<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Wenshan,<br></div>(I have cc&#39;d Mary Haley on this.)<br><br>First off: Thank you for including a short script that illustrates the problem on your end. That allows us to easily test things here. <br><br>I just tested your script (moving contributed.ncl below the gsn*ncl scripts) using v6.2.0 and v6.2.1 on a Linux machine here, and I see no such error messages and gsnLeftString is correctly used and displayed.<br><br></div><div>To be clear, no matter what scripts are loaded at the top, if you include gsnLeftString in your resource list you get the following error correct?<br><br></div><div>; warning:TextItemInitialize: Cannot set x,y,width,and height when other
 text attributes have been specified also, proceding with other text 
attribute requests<br></div><br></div>Mary: This is for NCL v6.2.0 and Ubuntu v14.04. <br><span><font color="#888888"><br></font></span></div><span><font color="#888888">Adam<br><div><br><br><div><div><br><div><div><br></div></div></div></div></div></font></span></div><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 5, 2014 at 12:01 PM, Wenshan Wang <span dir="ltr">&lt;<a href="mailto:wenshanw@uci.edu" target="_blank">wenshanw@uci.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr">Hi Adam,<div><br></div><div>Thank you very much for the reply!</div><div><br></div><div>I still have the warning even though:</div><div>1, move &#39;load contributed.ncl&#39; below the other two</div><div>2, load only gsn_csm</div><div>3, load nothing</div><div><br></div><div>I will get rid of it when I comment off res@gsnLeftString.</div><div>But this resource is quite useful. I&#39;d like to use it.</div><div>Actually, it never happened before. Only after I updated NCL to 6.2.0 and Ubuntu to 14.04.</div><div><br></div><div>NCL downloading is working now. Thank you!</div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><div><div><div>Best,<br></div>Wenshan<br>------------------------------------------------------------------------------<br></div>Graduate Student Researcher<br></div>Earth System Science<br></div>University of California, Irvine<br></div></div>
<br><br><div class="gmail_quote">On Fri, Sep 5, 2014 at 8:47 AM, Adam Phillips <span dir="ltr">&lt;<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Wenshan,<br></div>You are loading contributed.ncl before gsn_code.ncl and gsn_csm.ncl. contributed.ncl should always get loaded after the gsn*.ncl scripts. Try making that change and see if you continue to get the warning message.<br><br></div>And thanks for letting us know about the Earth System Grid downloading error. I believe it is being looked into...<br></div>Adam<br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Thu, Sep 4, 2014 at 4:08 PM, Wenshan Wang <span dir="ltr">&lt;<a href="mailto:wenshanw@uci.edu" target="_blank">wenshanw@uci.edu</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div><div dir="ltr"><div><u>Hi NCL group and users~~~</u></div><div><u><br></u></div><div><u>I get this warning recently with all my plots and have no idea what the cause is.</u></div><div><br></div><div><div>warning:TextItemInitialize: Cannot set x,y,width,and height when other text attributes have been specified also, proceding with other text attribute requests</div></div><div><br></div><div><u>Here is a simple script that can produce this msg:</u></div><div><br></div><div><div>; Written by Wang Wenshan 2014-09-04 Thursday 14:37:05</div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl&quot;</div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl&quot;</div><div>load &quot;$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl&quot;</div><div>;*************************************************************</div><div>; warning:TextItemInitialize: Cannot set x,y,width,and height when other text attributes have been specified also, proceding with other text attribute requests</div><div>;************************************************************</div><div>begin</div><div>x = ispan(1,100,1)</div><div>y = 0.1*x</div><div><br></div><div>wks   = gsn_open_wks (&quot;x11&quot;,&quot;xy&quot;)                ; open workstation</div><div><br></div><div>res                  = True                     ; plot mods desired</div><div>;res@tiMainString     = &quot;Basic XY plot&quot;          ; add title</div><div>;res@gsnLeftString  = &quot;left&quot;</div><div>res@gsnRightString = &quot;right&quot;</div><div><br></div><div>plot  = gsn_csm_xy (wks,x,y,res) ; create plot</div><div><br></div><div>print(&quot;done!&quot;)</div><div>end</div></div><div><br></div><div><u>NCL version: 6.2.0</u></div><div><u>System: Linux grele 3.13.0-34-generic #60-Ubuntu SMP Wed Aug 13 15:45:27 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux</u></div><div><u><br></u></div><div><u>Thank you very much!</u></div><div><u><br></u></div><div><u>BTW, there is a 404 Not Found Error when I tried to download NCL 6.2.1 from earthsystemgrid.</u></div><div><br></div><div><div>404 Not Found</div><div><br></div><div>The following file was not found:</div><div><br></div><div>ncl_ncarg-6.2.1.Linux_Debian6.0_i686_nodap_gcc445.tar.gz</div><div>If this file was part of a Archive Storage request, the file might have been removed from our cache. Please consider resubmitting your Archive Storage request.</div></div><div><br></div><div><br></div><br clear="all"><div><div dir="ltr"><div><div><div><div>Best,<br></div>Wenshan<br>------------------------------------------------------------------------------<br></div>Graduate Student Researcher<br></div>Earth System Science<br></div>University of California, Irvine<br></div></div>
</div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><span><font color="#888888"><br>-- <br><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Division, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888"><a href="tel:303-497-1726" value="+13034971726" target="_blank">303-497-1726</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div>
</font></span></font></span></div>
</blockquote></div><br></div>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><div><div><div><span><font color="#888888">Adam Phillips <br></font></span></div><span><font color="#888888">Associate Scientist,  </font></span><span><font color="#888888">Climate and Global Dynamics Division, NCAR<br></font></span></div></div><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli/" target="_blank">www.cgd.ucar.edu/staff/asphilli/</a>   </font></span><span><font color="#888888"><a href="tel:303-497-1726" value="+13034971726" target="_blank">303-497-1726</a> </font></span></div><span><font color="#888888"></font></span><div><div><span><font color="#888888"><br></font></span><div><span><font color="#888888"><a href="http://www.cgd.ucar.edu/staff/asphilli" target="_blank"></a></font></span></div></div></div></div>
</div>
</div></div></blockquote></div><br></div></div></div></div></div>
</div><br></div>
</blockquote></div><br></div>