# How to change the scale bar and units in the 2D view area

**URL:** <https://discourse.slicer.org/t/how-to-change-the-scale-bar-and-units-in-the-2d-view-area/21718>\
**Category:** Support\
**Created:** [January 31, 2022, 7:16pm UTC](https://discourse.slicer.org/t/how-to-change-the-scale-bar-and-units-in-the-2d-view-area/21718 "2022-01-31T19:16:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve01](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@steve01](https://discourse.slicer.org/u/steve01)\
**Post date:** [January 31, 2022, 7:16pm UTC](https://discourse.slicer.org/t/how-to-change-the-scale-bar-and-units-in-the-2d-view-area/21718/1 "2022-01-31T19:16:41Z")

</div>

I just finished working in the Segment Editor and I added a scale bar to the red, 2D image. I noticed that the scale bar is very big. The red circle in the image is approximately 300µm in diameter. How do I change the size of the scale bar and the units associated with it? The images were originally from a DICOM which I dropped into image J, concatenated 3 different files, and then exported it as one tiff stack. I can not program so I will not be able to work directly with python. Any help would be greatly appreciated. Thank you,

Steve

 ![Screen Shot 2022-01-31 at 11.09.14 AM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/4/d4c912a1ceffb04d556b4bb8ca6a60d17a1476e3.jpeg)  
[Screen Shot 2022-01-31 at 10.59.20 AM|589x500](https://discourse.slicer.org/uploads/short-url/7HDhIsbvThdxiH6at9MYc4AluQ6.jpeg)

---

<div class="post-metadata">

**Author:** ![steve01](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@steve01](https://discourse.slicer.org/u/steve01)\
**Post date:** [January 31, 2022, 7:19pm UTC](https://discourse.slicer.org/t/how-to-change-the-scale-bar-and-units-in-the-2d-view-area/21718/2 "2022-01-31T19:19:44Z")

</div>

![Screen Shot 2022-01-31 at 10.59.20 AM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/5/35fde696d429dc6105938e34788fb61b6dbec62e.jpeg)  
It seems this screen shot didn’t make it into my first message.

---

<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:** [February 1, 2022, 2:44am UTC](https://discourse.slicer.org/t/how-to-change-the-scale-bar-and-units-in-the-2d-view-area/21718/3 "2022-02-01T02:44:46Z")

</div>

It seems that you need to set the correct spacing in the image because ImageJ has lost it either during DICOM import or when it saved the data into TIFF format.

You can go to Volumes module and set the correct spacing values in Volume Information section. Spacing of segmentations is not directly editable, so you can either export it to a labelmap volume and edit the spacing there (you can then convert it to a segmentation again) or apply a scaling transform to the segmentation in Transforms module.

In the future, I would recommend to load the images using Slicer. If you try a recent Slicer Preview Release and it does not load the images then upload it somewhere (dropbox, onedrive, …) and post the link here and we update the DICOM importer as needed.

Using TIFF format for 3D image storage is not ideal either, due to no standard way of storing essential 3D metadata (such as origin, spacing, axis directions). Instead, you can use NRRD file format, which is very simple and works well.

---

<div class="post-metadata">

**Author:** ![steve01](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@steve01](https://discourse.slicer.org/u/steve01)\
**Post date:** [February 1, 2022, 2:43pm UTC](https://discourse.slicer.org/t/how-to-change-the-scale-bar-and-units-in-the-2d-view-area/21718/4 "2022-02-01T14:43:30Z")

</div>

Thank you very much.

I’ll try it.

Steve

---

<div class="post-metadata">

**Author:** ![steve01](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@steve01](https://discourse.slicer.org/u/steve01)\
**Post date:** [February 4, 2022, 6:42pm UTC](https://discourse.slicer.org/t/how-to-change-the-scale-bar-and-units-in-the-2d-view-area/21718/5 "2022-02-04T18:42:11Z")

</div>

Mr. Lasso,

Thank you for your help. I was able to export as a labelmap volume and edit it, but how do I convert it back to a segmentaiton.

---

<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:** [February 4, 2022, 7:00pm UTC](https://discourse.slicer.org/t/how-to-change-the-scale-bar-and-units-in-the-2d-view-area/21718/6 "2022-02-04T19:00:44Z")

</div>

In Data module you can right click on the labelmap to convert it to segmentation.

---

<div class="post-metadata">

**Author:** ![steve01](https://avatars.discourse-cdn.com/v4/letter/s/e68b1a/32.png) [@steve01](https://discourse.slicer.org/u/steve01)\
**Post date:** [February 4, 2022, 7:41pm UTC](https://discourse.slicer.org/t/how-to-change-the-scale-bar-and-units-in-the-2d-view-area/21718/7 "2022-02-04T19:41:09Z")

</div>

I supplied a before and after screen shot for reference. I must have done something wrong, although the scale bar looks correct now. What happened to the 2D images?

 ![Screen Shot 2022-01-31 at 10.59.20 AM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/5/35fde696d429dc6105938e34788fb61b6dbec62e.jpeg)  
 ![After](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/7/f7a0a1610a99915edf692957ec6a35e235a36147.jpeg)

---

<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:** [February 8, 2022, 8:00pm UTC](https://discourse.slicer.org/t/how-to-change-the-scale-bar-and-units-in-the-2d-view-area/21718/8 "2022-02-08T20:00:49Z")

</div>

Everything looks good to me. The slice viewers show cross-sections of the image with segmentations and/or labelmap volumes overlaid on it.
