MantisBT - ParaView
View Issue Details
0013033ParaView(No Category)public2012-03-27 12:562012-10-29 17:04
Andy Bauer 
Yumin Yuan 
normalmajorhave not tried
closedfixed 
git-master 
3.14.13.98.0 
Sandia
13033-color-editor
incorrect functionality
0013033: problems with scalar bar
Steps to reproduce:
1. load can.ex2->apply
2. color by displacement
3. open color scale editor
4. close color scale editor
5. go to last time step
4. rescale


color will be stuck on a single color
No tags attached.
Issue History
2012-03-27 12:56Andy BauerNew Issue
2012-03-27 12:56Andy BauerAssigned To => Andy Bauer
2012-03-27 13:04Andy BauerStatusbacklog => todo
2012-03-27 13:04Andy BauerStatustodo => active development
2012-03-27 13:43Andy BauerDescription Updatedbug_revision_view_page.php?rev_id=428#r428
2012-03-28 11:26Andy BauerAssigned ToAndy Bauer => Yumin Yuan
2012-03-30 09:46Yumin YuanTopic Name => 13033_color_rescale
2012-03-30 09:46Yumin YuanNote Added: 0028411
2012-03-30 09:46Yumin YuanStatusactive development => gatekeeper review
2012-03-30 09:46Yumin YuanFixed in Version => 3.14.1
2012-03-30 09:46Yumin YuanResolutionopen => fixed
2012-03-30 14:07Utkarsh AyachitFixed in Version3.14.1 =>
2012-03-30 14:07Utkarsh AyachitTarget Version => 3.14.1
2012-03-30 14:20Utkarsh AyachitFixed in Version => git-master
2012-03-30 14:20Utkarsh AyachitStatusgatekeeper review => customer review
2012-03-30 14:20Utkarsh AyachitNote Added: 0028416
2012-04-05 17:03Utkarsh AyachitFixed in Versiongit-master => 3.14.1
2012-04-11 19:27Alan ScottNote Added: 0028448
2012-04-11 19:27Alan ScottStatuscustomer review => todo
2012-04-11 19:28Alan ScottSeverityminor => major
2012-04-12 12:58Yumin YuanNote Added: 0028455
2012-04-12 12:58Yumin YuanStatustodo => active development
2012-04-17 14:41Yumin YuanTopic Name13033_color_rescale => 13033-color-editor
2012-04-17 14:41Yumin YuanNote Added: 0028486
2012-04-17 14:41Yumin YuanStatusactive development => gatekeeper review
2012-04-20 13:50Utkarsh AyachitFixed in Version3.14.1 => git-master
2012-04-20 13:51Utkarsh AyachitStatusgatekeeper review => customer review
2012-04-20 13:51Utkarsh AyachitNote Added: 0028493
2012-04-30 19:50Alan ScottNote Added: 0028558
2012-04-30 19:50Alan ScottStatuscustomer review => closed
2012-10-29 17:04Utkarsh AyachitFixed in Versiongit-master => 3.98.0

Notes
(0028411)
Yumin Yuan   
2012-03-30 09:46   
The main cause of the bug is when the scalar range is just one value, and the scalars2colors proxy-processing always assumes there are at least two values in the color transfer function. However the color-editor is not assuming that. The fix is to make them consistent.
(0028416)
Utkarsh Ayachit   
2012-03-30 14:20   
merged into master (if applicable)
(0028448)
Alan Scott   
2012-04-11 19:27   
I am pretty sure that there still are bugs that are showing up with this report. Thus, I will just write up the bugs here. There are two that I can trivially find.

PV 3.14.1
Load can.ex2. All variables on. Apply.
Color by displacement.
Open color scale editor.
* Notice that the main color bar, top of the window, no longer exists.
* You can click on Scalar Color, and change it as a single color. This is incorrect. If you unselect Automatically Rescale to Fit Data Range, then Rescale Range, change the Max to 1, this is what we should have.

Next,
Re-select the Automatically Rescale to Fit Data Range.
Choose Preset. Cold and Hot. OK.
Close.
Open a Color Legend.
Last Time Step.
Rescale to Data Range.
Note that we are still stuck with a single color - yellow. This is incorrect, we should have a color table!

I think this bug is important enough that it fatally breaks 3.14.1, thus I am marking this as high priority.
(0028455)
Yumin Yuan   
2012-04-12 12:58   
When the min and max is the same, the top color table does become
hidden, and a color-chosen button will show up instead. That behavior
is intentional since all you need is really just one color. Once you
rescale the data range (min != max), then the color table will show up
again. If we don't want this behavior, we could do something about it
later.

The second part of the bug sounds like a real bug. I am currently looking into that.
(0028486)
Yumin Yuan   
2012-04-17 14:41   
We (Utkarsh, Dave D, and I) had a short meeting to discuss what could be the proper fix for this bug, and the decision is to bring back the color table for single scalar value, but the table will still only show one color given a preset. This is essentially the pre-3.14 behavior.

If we, especially Alan :), feel strongly that we should display the whole preset-color table even for a single scalar, we can report another issue/feature request for that.
(0028493)
Utkarsh Ayachit   
2012-04-20 13:51   
merged into master, where applicable.
(0028558)
Alan Scott   
2012-04-30 19:50   
Perrrrrfect! Thanks Yumin.

Tested Linux, local server, Master.

can.exo.