<HTML>
<HEAD>
<TITLE>Re: [Paraview] Bug in Color Scale</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I&#8217;m running out of things to suggest. &nbsp;The only problem I can think of (and this is a stretch) is that somewhere the range in the data array is being incorrectly set either by some rouge call to the information object or because the data in the array changes without the vtkDataArray object being aware of it. &nbsp;Does anyone else have any ideas? &nbsp;Berk? &nbsp;Utkarsh?<BR>
<BR>
What range of values is reported in the Information panel? &nbsp;Is it giving the correct range, or the range used in the color scale?<BR>
<BR>
-Ken<BR>
<BR>
<BR>
On 11/28/08 7:46 AM, &quot;Takuya OSHIMA&quot; &lt;<a href="oshima@eng.niigata-u.ac.jp">oshima@eng.niigata-u.ac.jp</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi Shi, Ken, and all,<BR>
<BR>
A user of my reader reported exactly the same problem about the auto<BR>
scaling on ParaView 3.5.0. He told me that after applying Rescale to<BR>
Data Range to scalar attributes the range is always set to [0, 1],<BR>
even though the data actually has a range of e.g. [87200, 87250].<BR>
<BR>
He also provided me with one of the datasets that caused the problem<BR>
but so far I am not able to reproduce the problem (tested with the CVS<BR>
head on Windows and Linux 32bit). I kind of suspected an uninitialized<BR>
variable somewhere and tried a valgrind test but it didn't tell me<BR>
anything meaningful either.<BR>
<BR>
Hence, I'm interested in under what exact condition this problem would<BR>
occur...? Did anyone else encounter the problem, and if so, is it 100%<BR>
reproducible?<BR>
<BR>
Takuya OSHIMA, Ph.D.<BR>
Faculty of Engineering, Niigata University<BR>
8050 Ikarashi-Ninocho, Nishi-ku, Niigata, 950-2181, JAPAN<BR>
<BR>
From: Shi Jin &lt;<a href="jinzishuai@yahoo.com">jinzishuai@yahoo.com</a>&gt;<BR>
Subject: Re: [Paraview] Bug in Color Scale<BR>
Date: Tue, 25 Nov 2008 12:36:55 -0800 (PST)<BR>
<BR>
&gt; Thank you Ken.<BR>
&gt; This is really strange then. I just downloaded the 32-bit version for Linux<BR>
&gt; and had the same problems. It sounds like a problem of my linux box.<BR>
&gt;<BR>
&gt; By the way, I did change the color map to HSV earlier but I am sure I didn't<BR>
&gt; change anything else. And the new 32bit binary, I didn't do anything to it and<BR>
&gt; still get the [0,1] range. &nbsp;I guess I have to use some other machines to see<BR>
&gt; the problems.<BR>
&gt;<BR>
&gt; Thank you for your quick response and I will keep you updated on my findings.<BR>
&gt;<BR>
&gt; Shi<BR>
&gt;<BR>
&gt; ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<BR>
&gt; From: &quot;Moreland, Kenneth&quot; &lt;<a href="kmorel@sandia.gov">kmorel@sandia.gov</a>&gt;<BR>
&gt; To: Shi Jin &lt;<a href="jinzishuai@yahoo.com">jinzishuai@yahoo.com</a>&gt;; &quot;<a href="paraview@paraview.org">paraview@paraview.org</a>&quot;<BR>
&gt; &lt;<a href="paraview@paraview.org">paraview@paraview.org</a>&gt;<BR>
&gt; Sent: Tuesday, November 25, 2008 12:27:47 PM<BR>
&gt; Subject: Re: [Paraview] Bug in Color Scale<BR>
&gt;<BR>
&gt; Nope. &nbsp;I still can&#8217;t replicate the problem. &nbsp;I downloaded the binary you<BR>
&gt; specify, loaded the data set you sent, and it set the range fine.<BR>
&gt;<BR>
&gt; I notice from the image you sent that the color bar does not have the default<BR>
&gt; colors. &nbsp;Are you sure that you are actually using the version of ParaView you<BR>
&gt; downloaded as opposed to another version that might be in your path? &nbsp;Earlier<BR>
&gt; versions of ParaView used that rainbow scalar bar as a default. &nbsp;Either that<BR>
&gt; or you have been playing with color scale editor dialog box. &nbsp;In that case,<BR>
&gt; you may have accidently changed the range without realizing it.<BR>
&gt;<BR>
&gt; -Ken<BR>
&gt;<BR>
&gt; On 11/25/08 9:35 AM, &quot;Shi Jin&quot; &lt;<a href="jinzishuai@yahoo.com">jinzishuai@yahoo.com</a>&gt; wrote:<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;Hi Ken,<BR>
&gt; &nbsp;&nbsp;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;Thank you. I have attached my sample data file and a screenshot taken<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;under paraview-3.4.0 under 64bit Linux.<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;Just now I tried the Windows version and it seems to be working fine. So I<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;guess this is a problem only found in the Linux version. By looking at the<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;range for the variable Rank in the information panel, we can see it is<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;[3,3] however the color displays only for range [0,1].<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;Please let me know if you can reproduce this problem on Linux. The binary<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;I used is paraview-3.4.0-Linux-x86_64.<BR>
&gt; &nbsp;&nbsp;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;Thanks a lot.<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;Shi<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;From: &quot;Moreland, Kenneth&quot; &lt;<a href="kmorel@sandia.gov">kmorel@sandia.gov</a>&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;To: Shi Jin &lt;<a href="jinzishuai@yahoo.com">jinzishuai@yahoo.com</a>&gt;; &quot;<a href="paraview@paraview.org">paraview@paraview.org</a>&quot; &lt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;<a href="paraview@paraview.org">paraview@paraview.org</a>&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;Sent: Tuesday, November 25, 2008 7:50:42 AM<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;Subject: Re: [Paraview] Bug in Color Scale<BR>
&gt; &nbsp;&nbsp;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;Re: [Paraview] Bug in Color Scale Shi,<BR>
&gt; &nbsp;&nbsp;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;I have not run into this, nor have I heard of anyone else who has. &nbsp;Could<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;you tell us more about your data or, better yet, send us an example?<BR>
&gt; &nbsp;&nbsp;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;One thing that has changed with the rescale range feature recently is that<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;the range is now computed based on the values that appear throughout an<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;entire volume, not just what appears on the surface. &nbsp;Thus, if you are<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;rendering a volume of data with 1 in the middle but with the surface only<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;having up to 0.01, the range is still going to be up to 1. &nbsp;Check the<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;ranges in the Information panel. &nbsp;The scalar bar range should agree with<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;that. &nbsp;If you don&#8217;t know where the upper values are located, try using the<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;threshold filter to find them.<BR>
&gt; &nbsp;&nbsp;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;-Ken<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;On 11/24/08 8:24 PM, &quot;Shi Jin&quot; &lt;<a href="jinzishuai@yahoo.com">jinzishuai@yahoo.com</a>&gt; wrote:<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Hi there,<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I just upgraded my paraview from 3.10 to 3.40. Immediately I found<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;that the same data was not colored correctly with the new version. It<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;turned out that in the Display Tab, Rescale to Data Range button<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;actually does nothing. If I clicked on Edit Color Map.., I found that<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;the maximum of data range is always 1 (minimum always 0), no matter<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;what the real range is. I can of course uncheck Automatically Rescale<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;to Fit Data Range, and set the range using Rescale Range button by<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hand. However, I think this is not what it is supposed to be. &nbsp;I tried<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;both the Linux-64bit binary found online and my own build on an ubuntu<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;box and they have the same problem. &nbsp;Please let me know if it is<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indeed a bug or just something I didn't get right. Thanks a lot.<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thanks a lot.<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Shi<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_______________________________________________<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ParaView mailing list<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="ParaView@paraview.org">ParaView@paraview.org</a><BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;*********** <BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/‾kmorel">http://www.cs.unm.edu/‾kmorel</a> &lt;<a href="http://www.cs.unm.edu/">http://www.cs.unm.edu/</a><BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;%7Ekmorel&gt;<BR>
&gt;<BR>
&gt; &nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
&gt; *********** <BR>
&gt; *** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
&gt; ** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&gt; &nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/‾kmorel">http://www.cs.unm.edu/‾kmorel</a><BR>
&gt;<BR>
&gt; *<BR>
&gt;<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="1"><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:7.5pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/‾kmorel">http://www.cs.unm.edu/‾kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>