# Renaming Scalar Bar to Color Bar

**URL:** <https://discourse.slicer.org/t/renaming-scalar-bar-to-color-bar/11274>\
**Category:** Development\
**Created:** [April 23, 2020, 10:10pm UTC](https://discourse.slicer.org/t/renaming-scalar-bar-to-color-bar/11274 "2020-04-23T22:10:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [April 23, 2020, 10:10pm UTC](https://discourse.slicer.org/t/renaming-scalar-bar-to-color-bar/11274/1 "2020-04-23T22:10:25Z")

</div>

Could we rename “ScalarBar” to something like “Color Bar” or “Color Scalar Bar” in the GUI? I know the underlying vtk object is called a [vtkScalarBarActor](https://vtk.org/doc/nightly/html/classvtkScalarBarActor.html#details) with the description:

> A scalar bar is a legend that indicates to the viewer the correspondence between color value and data value.

I’m not sure why “Color” was not included in the name of the object.

I have noticed in various forum posts people referring to it as the “Color Bar” while in the GUI it is labeled as “ScalarBar”. This is probably a contributing factor for people struggling to find it in addition to it being buried in DataProbe module which is a separate issue.

 ![scalar-bar-slicer](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/8/0/80e249f8d3c8b04482ed9567a438206252c40599.png)

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [April 23, 2020, 10:24pm UTC](https://discourse.slicer.org/t/renaming-scalar-bar-to-color-bar/11274/2 "2020-04-23T22:24:21Z")

</div>

It’s also confusing that the controls for the 2D scalar bar are in the DataProbe and the 3D scalar bar is in the Colors module. I think it would be logical to access this kind of setting via right click on the background of the viewer (or maybe in the controller widget, but those are very busy already).

+1 for “Color Scalar Bar” in the GUI

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [April 25, 2020, 5:46pm UTC](https://discourse.slicer.org/t/renaming-scalar-bar-to-color-bar/11274/3 "2020-04-25T17:46:53Z")

</div>

I issued [https://github.com/Slicer/Slicer/pull/4889](https://github.com/Slicer/Slicer/pull/4889) to update the name used in the GUI to “Color Scalar Bar”.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 25, 2020, 8:53pm UTC](https://discourse.slicer.org/t/renaming-scalar-bar-to-color-bar/11274/4 "2020-04-25T20:53:30Z")

</div>

> [@pieper](#):
>
> I think it would be logical to access this kind of setting via right click on the background of the viewer (or maybe in the controller widget, but those are very busy already).

Yes, it should be shown/hidden at the same place where the displayed volumes are selected. Probably it just happened to be placed in the Data Probe module just because the developer who has implemented it was only comfortable with Python and did not know that it should have been implemented properly using a displayable manager. I think we already have an issue for reworking the Data Probe module.

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [April 25, 2020, 9:09pm UTC](https://discourse.slicer.org/t/renaming-scalar-bar-to-color-bar/11274/5 "2020-04-25T21:09:30Z")

</div>

I don’t see a github issue for that work or transitioning it to use a displayable manager. The closest git issue seems to be [https://github.com/Slicer/Slicer/issues/3820](https://github.com/Slicer/Slicer/issues/3820) which is incorporating some changes from the Paraview scalar bar. You might want to write up a git issue with these specific details about converting to use a displayable manager

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [April 26, 2020, 1:12am UTC](https://discourse.slicer.org/t/renaming-scalar-bar-to-color-bar/11274/6 "2020-04-26T01:12:04Z")

</div>

I could not find a related issue, so added this:

> <https://github.com/Slicer/Slicer/issues/4891>
>
> Color bars in slice and 3D views are currently not handled by displayable managers and not managed by appropriate modules.
> All color...
