<div dir="ltr"><div><div>Could you share your generated file? I&#39;m not sure why the rescale to data range is scaling it to the range [0,1]. Also, what version of ParaView are you using?<br><br></div>Modifying the file won&#39;t cause ParaView to reread it as the reader will not notice that the time stamp on the file has changed.<br>
<br></div>Andy<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 2, 2013 at 4:20 PM, Paw Møller <span dir="ltr">&lt;<a href="mailto:pawsen@gmail.com" target="_blank">pawsen@gmail.com</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">Superb,<div>That was it. Thanks, both of you.</div><div><br></div><div>But I have another question.</div>
<div>The automatic scaling of the vector field works as expected.</div><div>
The scaling of the temperature however does not(array of floats). It set the range to [0 1], regardless of the actual values.</div><div><br></div><div>Paraview(under information) gives the data range = [3.5 1333.5], which is correct. And if I manually set the color range to this, everything is good.</div>

<div>Pressing the automatic color scale(rescale to data), the used interval is set back to [0 1].</div><div>Why is that?</div><div><br></div><div>I use to code suggested by Joe,</div><div><div>
    vtkFloatArray* temperature = vtkFloatArray::New();</div><div>    temperature-&gt;SetName(&quot;Temperature&quot;);</div><div>    temperature-&gt;SetNumberOfComponents(1);</div><div>    temperature-&gt;SetNumberOfValues(mesh.nn);</div>

<div>    for(int i=0;i&lt;mesh.nn;i++){</div><div>       temperature-&gt;SetValue(i,3.5);</div><div>    }</div><div>    rgrid-&gt;GetPointData()-&gt;AddArray(temperature);</div></div><div><br></div><div>And is it possible to update the plot if I overwrite the .vtr file, without closing and reopening the file?</div>
<span class="HOEnZb"><font color="#888888">
<div><br></div><div>Paw</div></font></span></div>
</blockquote></div><br></div>