<div dir="ltr"><div>&gt; <span style="font-family:arial,sans-serif;font-size:13px">You do not </span><span style="font-family:arial,sans-serif;font-size:13px">possibly also have a clue how to get the size of the text field right?</span></div>

<div><br></div><div>Sorry. I don&#39;t have an answer for this. Not sure that I understand the question even :-) Hopefully, someone else that is more knowledgeable in this will answer.</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Tue, Mar 26, 2013 at 8:44 AM, Dr. Olaf Ippisch <span dir="ltr">&lt;<a href="mailto:olaf.ippisch@iwr.uni-heidelberg.de" target="_blank">olaf.ippisch@iwr.uni-heidelberg.de</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Berk,<br>
<br>
thank you for the fast response and for pointing me to the right point<br>
in the a bit scattered Paraview Python documentation. You do not<br>
possibly also have a clue how to get the size of the text field right?<br>
<br>
Best regards,<br>
Olaf<br>
<br>
Am 26.03.13 13:33, schrieb Berk Geveci:<br>
<div class="im">&gt; Hi Olaf,<br>
&gt;<br>
&gt; Given that there is no memory management in your code, it is not<br>
&gt; surprising that it leaks :-) One option is to use Delete() to get rid of<br>
&gt; objects after using them. There is a short section talking about it<br>
&gt; here: <a href="http://paraview.org/Wiki/ParaView/Python_Scripting" target="_blank">http://paraview.org/Wiki/ParaView/Python_Scripting</a><br>
&gt;<br>
&gt; The even better approach would be to create the pipeline and all the<br>
&gt; views only once and then simply update the filename in the loop. That<br>
&gt; would guarantee that all resources from a previous timestep are released<br>
&gt; when the  next one executes.<br>
&gt;<br>
&gt; Best,<br>
&gt; -berk<br>
&gt;<br>
&gt;<br>
&gt; On Mon, Mar 25, 2013 at 10:38 AM, Dr. Olaf Ippisch<br>
&gt; &lt;<a href="mailto:olaf.ippisch@iwr.uni-heidelberg.de">olaf.ippisch@iwr.uni-heidelberg.de</a><br>
</div><div><div class="h5">&gt; &lt;mailto:<a href="mailto:olaf.ippisch@iwr.uni-heidelberg.de">olaf.ippisch@iwr.uni-heidelberg.de</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Dear Paraview developers and users,<br>
&gt;<br>
&gt;     I have some problems when using the python interface to paraview. I<br>
&gt;     attached a small program I wrote to visualize data from several time<br>
&gt;     steps of a simulation. Two things are unclear to me:<br>
&gt;<br>
&gt;     - The program contains a loop over several files to be read from disk<br>
&gt;     and visualized. However, if I start the program, the memory consumption<br>
&gt;     of the python interpreter is growing steadily with each iteration. It<br>
&gt;     seems that the memory allocated for python objects storing data and<br>
&gt;     results is never freed again. Is there some command to tell the<br>
&gt;     interpreter to release the vtk/paraview data structures?<br>
&gt;     - In line 9 I create a text label. I can set its content and also<br>
&gt;     manipulate its position. However, I was not able to change the size of<br>
&gt;     the text field. For large numbers the text is just cut. I tried to play<br>
&gt;     with props.Position2, but I did not have any success. What is the trick?<br>
&gt;<br>
&gt;     Best regards,<br>
&gt;     Olaf Ippisch<br>
&gt;<br>
&gt;<br>
&gt;     --<br>
&gt;     Dr. Olaf Ippisch<br>
&gt;     Universität Heidelberg<br>
&gt;     Interdisziplinäres Zentrum für Wissenschaftliches Rechnen<br>
&gt;     Im Neuenheimer Feld 368, Raum 4.24<br>
&gt;     Tel: 06221/548252   Fax: 06221/548884<br>
&gt;     Mail: Im Neuenheimer Feld 368, 69120 Heidelberg<br>
&gt;     e-mail: &lt;<a href="mailto:olaf.ippisch@iwr.uni-heidelberg.de">olaf.ippisch@iwr.uni-heidelberg.de</a><br>
</div></div>&gt;     &lt;mailto:<a href="mailto:olaf.ippisch@iwr.uni-heidelberg.de">olaf.ippisch@iwr.uni-heidelberg.de</a>&gt;&gt;<br>
&gt;<br>
&gt;     _______________________________________________<br>
&gt;     Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a> &lt;<a href="http://www.kitware.com" target="_blank">http://www.kitware.com</a>&gt;<br>
<div class="im HOEnZb">&gt;<br>
&gt;     Visit other Kitware open-source projects at<br>
&gt;     <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt;     Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;     <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt;     Follow this link to subscribe/unsubscribe:<br>
&gt;     <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
<br>
</div><div class="HOEnZb"><div class="h5">--<br>
Dr. Olaf Ippisch<br>
Universität Heidelberg<br>
Interdisziplinäres Zentrum für Wissenschaftliches Rechnen<br>
Im Neuenheimer Feld 368, Raum 4.24<br>
Tel: 06221/548252   Fax: 06221/548884<br>
Mail: Im Neuenheimer Feld 368, 69120 Heidelberg<br>
e-mail: &lt;<a href="mailto:olaf.ippisch@iwr.uni-heidelberg.de">olaf.ippisch@iwr.uni-heidelberg.de</a>&gt;<br>
</div></div></blockquote></div><br></div>