MantisBT - ParaView
View Issue Details
0014980ParaView(No Category)public2014-09-01 07:222016-08-12 09:59
Vadim SANDLER 
Tristan Coulange 
normalminorhave not tried
closedmoved 
4.1 
 
ParaViS
incorrect functionality
0014980: Scalar bar legend labels have not reliable behaviour for display
In the "Color map editor", there is a dialog box "Edit color legend parameters".
It allows to choose the number of labels that you want to show along the scalar bar legend by filling the field "Number Of Labels".
But the number of the labels asked for the displaying doesn't correspond to the real number of the displayed labels.
The behaviour is similar to the following:

Number Of Labels = 1 --> 0 label is displayed
Number Of Labels = 2 --> 1 label is displayed
Number Of Labels = 3 to 5 --> 2 labels are displayed
Number Of Labels = 6 to 14 --> 5 labels are displayed
Number Of Labels = 15 to 23 --> 14 labels are displayed
Number Of Labels = 24 to 29 --> 23 labels are displayed
Number Of Labels = 30 to 59 --> 29 labels are displayed
Number Of Labels => 60 OR = 0 --> 59 labels are displayed


Could it be possible that the number of labels asked is exactly the number of labels displayed ?
No tags attached.
Issue History
2014-09-01 07:22Vadim SANDLERNew Issue
2014-09-01 07:22Vadim SANDLERAssigned To => Tristan Coulange
2014-09-04 11:25Tristan CoulangeNote Added: 0033308
2014-09-04 11:26Tristan CoulangeNote Edited: 0033308bug_revision_view_page.php?bugnote_id=33308#r826
2015-02-17 07:48Tristan CoulangeNote Added: 0034222
2016-08-12 09:59Kitware RobotNote Added: 0038648
2016-08-12 09:59Kitware RobotStatusbacklog => closed
2016-08-12 09:59Kitware RobotResolutionopen => moved

Notes
(0033308)
Tristan Coulange   
2014-09-04 11:25   
(edited on: 2014-09-04 11:26)
Hello,

Actually this number is the "Maximum number of labels", so it was renamed in ParaView 4.2. ParaView computes the real number of labels using this maximum, and in most cases it is not the same.

For now, the only way to set an exact number of labels is the "Annotation" functionality:
- Open the "Color Map Editor" panel
- Click on the "Advanced properties" button
- At the bottom of the panel there is a table in which you can add Annotations
- Then you can show/hide them in the "Edit Color Legend Parameters" panel
This is not user-friendly but it works.

If you want we can develop an improvement of this functionality to create automatically these Annotations from a number of Annotations and a range defined by the user. The development is estimated at about 3 days.
What do you think about this?

Tristan

(0034222)
Tristan Coulange   
2015-02-17 07:48   
The improvement is done and merged into master:

http://review.source.kitware.com/#/c/18227/ [^]

Add a PV scalar bar option to automatically generate annotations.

The option allows to automatically create annotations at the
boundary of two dicreet colors. This allows to see the bounds
each color represents when working with a small amount of colors.

Change-Id: I73096651406f21d01d58ae8ce57fea69557f1256
(0038648)
Kitware Robot   
2016-08-12 09:59   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current ParaView Issues page linked in the banner at the top of this page.