MantisBT - ParaView
View Issue Details
0005460ParaView(No Category)public2007-08-08 14:532011-01-13 17:00
Alan Scott 
Utkarsh Ayachit 
urgentmajoralways
closedfixed 
 
 
0005460: Log color legend is incorrect
The color legend is displaying the colors vs numbers correctly, but in the wrong format. If I have a variable that ranges from 1 to 10000, it currently will use 1,2500,5000, 7500, 10000. It should use 1,10,100,1000,10000. In other words, use 10e0, 10e1, 10e2, 10e3, and then 10e4. This needs to be fixed for 3.2 for a very important visualization.
No tags attached.
Issue History
2007-08-08 14:53Alan ScottNew Issue
2007-08-08 17:13Ken MorelandNote Added: 0008382
2007-08-29 15:47Berk GeveciAssigned To => Berk Geveci
2007-08-29 15:47Berk GeveciPrioritynormal => urgent
2007-08-29 15:47Berk GeveciStatusbacklog => tabled
2007-08-29 15:47Berk GeveciCategory => 3.2
2007-09-10 14:37Utkarsh AyachitAssigned ToBerk Geveci => Utkarsh Ayachit
2007-09-10 15:27Utkarsh AyachitStatustabled => @80@
2007-09-10 15:27Utkarsh AyachitResolutionopen => fixed
2007-09-10 15:27Utkarsh AyachitNote Added: 0008912
2007-09-12 21:56Alan ScottStatus@80@ => closed
2011-01-13 17:00Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00Source_changeset_attached => VTK master 020ef709
2011-06-16 13:09Zack GalbreathCategory => (No Category)

Notes
(0008382)
Ken Moreland   
2007-08-08 17:13   
Just to clarify, the color bar legend is showing the correct number for colors, and there is nothing wrong with the formatting of the number per se. The problem is that the color bar legend is shown with a linear scale even when the colors themselves have a log scale. Thus, in the example in the description, the second lowest number on the color bar legend is 2500, which is actually mapped to a color at the top part of the color range. Thus, the color bar will look all red.

Here is an easy way to demonstrate the problem. Make a Mandelbrot source and then run it through the array calculator with the following expression: 10^(Iterations/10). Now turn on the color bar for the Result array and change to log scaling. You will see that, although the numbers are technically correct, most of the viewable colors are red and the labels are not very useful.
(0008912)
Utkarsh Ayachit   
2007-09-10 15:27   
Adding virtual method to vtkScalarsToColors to get if the
subclass is using log mapping. Overridden by vtkPVLookupTable and vtkLookupTable
to repsond appropriately. ScalarBar uses the value returned by this method to
decide if it should show labels using log scale or not.

/cvsroot/ParaView3/ParaView3/VTK/Common/vtkLookupTable.h,v <-- vtkLookupTable.h
new revision: 1.81; previous revision: 1.80
/cvsroot/ParaView3/ParaView3/VTK/Common/vtkScalarsToColors.h,v <-- vtkScalarsToColors.h
new revision: 1.36; previous revision: 1.35
/cvsroot/ParaView3/ParaView3/VTK/Rendering/vtkScalarBarActor.cxx,v <-- vtkScalarBarActor.cxx
new revision: 1.62; previous revision: 1.61
/cvsroot/ParaView3/ParaView3/Servers/Filters/vtkPVLookupTable.h,v <-- vtkPVLookupTable.h
new revision: 1.9; previous revision: 1.8