# Color bar in slice viewers

**URL:** <https://discourse.slicer.org/t/color-bar-in-slice-viewers/6291>\
**Category:** Support\
**Created:** [March 26, 2019, 2:40pm UTC](https://discourse.slicer.org/t/color-bar-in-slice-viewers/6291 "2019-03-26T14:40:57Z")\
**Posts on this page:** 1\
**Showing post:** 8

<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:** [March 8, 2022, 11:41pm UTC](https://discourse.slicer.org/t/color-bar-in-slice-viewers/6291/8 "2022-03-08T23:41:29Z")

</div>

Color legend has been hugely improved in recent Slicer versions (you can show multiple color legends, for more node types, works automatically for continuous and discrete colormaps, etc.) and it is now also simpler to show/hide it. See example in the script repository: [Script repository — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#show-color-legend-for-a-volume-node)

More information on the new color legend:

> [@"Color Scalar Bar" reworked and upgraded, now it’s called "Color Legend"](https://discourse.slicer.org/t/color-scalar-bar-reworked-and-upgraded-now-it-s-called-color-legend/21567):
>
> Starting from version [30530 build 2022-01-15](https://github.com/Slicer/Slicer/pull/5828/commits/170a0e0edd448fd2c5d8e47ac6de591293fc8354) “Color Scalar Bar” section from “Colors” module was replaced with “Color Legend” section. The “Color Legend” section has been also added to the “Volume”, “Model” and “Markups” modules to control visibility and behavior of color legend. New major features: More unified API. Each Volume, Model, Markups or any other displayable node now can have an individual color legend by means of [vtkMRMLColorLegendDisplayNode](https://apidocs.slicer.org/master/classvtkMRMLColorLegendDisplayNode.html). Displayed LUT is in sy…

---

_[View the full topic](https://discourse.slicer.org/t/color-bar-in-slice-viewers/6291)._
