# Changing location of label for fiducial points

**URL:** <https://discourse.slicer.org/t/changing-location-of-label-for-fiducial-points/20608>\
**Category:** Support\
**Tags:** markups\
**Created:** [November 12, 2021, 10:23pm UTC](https://discourse.slicer.org/t/changing-location-of-label-for-fiducial-points/20608 "2021-11-12T22:23:16Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![neuralnet](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@neuralnet](https://discourse.slicer.org/u/neuralnet)\
**Post date:** [November 12, 2021, 10:23pm UTC](https://discourse.slicer.org/t/changing-location-of-label-for-fiducial-points/20608/1 "2021-11-12T22:23:16Z")

</div>

Hi all,

I’m new to slicer, so apologies if this question is basic. I’ve been reading the documentation, but haven’t been able to figure this out.

I need to annotate an image by marking several points. However, these points are extremely close to each other in the image. When I add points with labels, the labels overlap and become unreadable, no matter how small I make the text.

Is there any way that the label could be moved away from the point itself, perhaps with a line pointing to the marker? Here is an example of what is happening:

![Screen Shot 2021-11-12 at 2.22.31 PM](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/1/212f80113c88fc07bff92905cad897fa6f07da3f.png)

---

<div class="post-metadata">

**Author:** ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)\
**Post date:** [November 13, 2021, 12:02am UTC](https://discourse.slicer.org/t/changing-location-of-label-for-fiducial-points/20608/2 "2021-11-13T00:02:05Z")

</div>

Controls for this would be great! I don’t know if they exist, but I run into this problem frequently as well.

---

<div class="post-metadata">

**Author:** ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)\
**Post date:** [November 13, 2021, 1:08am UTC](https://discourse.slicer.org/t/changing-location-of-label-for-fiducial-points/20608/3 "2021-11-13T01:08:30Z")

</div>

Searching through this site, I found this, which might be helpful for you:

> [@Glyph text annotation orientation](https://discourse.slicer.org/t/glyph-text-annotation-orientation/14590):
>
> Hello, Is there a way to change the glyph label orientation? I have a situation where 10 glyphs are inline and the text is overlapping. It would be great if I could set the orientation to 900. Greydon

---

<div class="post-metadata">

**Author:** ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)\
**Post date:** [November 13, 2021, 1:24am UTC](https://discourse.slicer.org/t/changing-location-of-label-for-fiducial-points/20608/4 "2021-11-13T01:24:45Z")

</div>

Looks like many of the features we might find helpful are implemented through vtkTextProperty ([VTK: vtkTextProperty Class Reference](https://vtk.org/doc/nightly/html/classvtkTextProperty.html))

As noted above, orientation can be set with SetOrientation, distance from point (perpendicular to baseline) set with SetLineOffset, and relative positioning to point set via the following:

```auto
myMarkupNode.GetDisplayNode().GetTextProperty().SetJustificationToCentered()
myMarkupNode.GetDisplayNode().GetTextProperty().SetJustificationToLeft()
myMarkupNode.GetDisplayNode().GetTextProperty().SetJustificationToRight()
myMarkupNode.GetDisplayNode().GetTextProperty().SetVerticalJustificationToCentered()
myMarkupNode.GetDisplayNode().GetTextProperty().SetVerticalJustificationToBottom()
myMarkupNode.GetDisplayNode().GetTextProperty().SetVerticalJustificationToTop()

```

None of these will produce a line connecting the label with the point, but otherwise, there is a fair amount of flexibility here.

---

<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:** [November 13, 2021, 2:37pm UTC](https://discourse.slicer.org/t/changing-location-of-label-for-fiducial-points/20608/5 "2021-11-13T14:37:07Z")

</div>

Text size is defined in screen space, so you can make the labels non-overlapping by zooming in or reducing the text size.

Making the labels manually movable would be complicated to implement, especially because in each view the labels would need to be moved in different directions. But at some point we are going to implement this.

If you find that changing text orientation makes a big difference then submit a feature request for it at [issues.slicer.org](http://issues.slicer.org).

---

<div class="post-metadata">

**Author:** ![DIV](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/div/32/12816_2.png) [@DIV](https://discourse.slicer.org/u/DIV)\
**Post date:** [November 15, 2021, 7:30am UTC](https://discourse.slicer.org/t/changing-location-of-label-for-fiducial-points/20608/6 "2021-11-15T07:30:48Z")

</div>

Hello, neuralnet.  
I’m pretty new to Slicer too, so take the following suggestions with a grain of salt…

I’m not sure whether it helps in your case, but I found that sometimes it’s helpful to rotate the 3D view so that features are arranged more in a vertical line (so it ends up looking like bullets on a _PowerPoint_ slide) rather than in a horizontal line.  
Perhaps there is a similar trick that would help for a 2D slice?

Other than that, you could possibly add the points to different ‘nodes’, so that it is easier to show only some markers, and easier to give them distinct colours, rather than having them all toggled on (i.e. visible) together and all in the same colour.

One more thing: you can shrink the size of the points (set `Glyph size` in the _Display_ panel of the **Markups** module). From what I can see in your screenshot, this might help a little where the labels are being printed over the top of other points (which are all in the same colour).  
[Possibly it might also help if the text could be a different colour from the markers, in your case, but I don’t know whether that can be done in Slicer.]

—DIV

---

<div class="post-metadata">

**Author:** ![neuralnet](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@neuralnet](https://discourse.slicer.org/u/neuralnet)\
**Post date:** [November 17, 2021, 12:32am UTC](https://discourse.slicer.org/t/changing-location-of-label-for-fiducial-points/20608/7 "2021-11-17T00:32:31Z")

</div>

@mikebind wow!! thank you, this is hugely helpful

---

<div class="post-metadata">

**Author:** ![neuralnet](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@neuralnet](https://discourse.slicer.org/u/neuralnet)\
**Post date:** [November 17, 2021, 12:33am UTC](https://discourse.slicer.org/t/changing-location-of-label-for-fiducial-points/20608/8 "2021-11-17T00:33:24Z")

</div>

Thank you, Dr. Lasso!

---

<div class="post-metadata">

**Author:** ![neuralnet](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@neuralnet](https://discourse.slicer.org/u/neuralnet)\
**Post date:** [November 17, 2021, 12:34am UTC](https://discourse.slicer.org/t/changing-location-of-label-for-fiducial-points/20608/9 "2021-11-17T00:34:22Z")

</div>

@mikebind thank you!

---

<div class="post-metadata">

**Author:** ![neuralnet](https://avatars.discourse-cdn.com/v4/letter/n/b5a626/32.png) [@neuralnet](https://discourse.slicer.org/u/neuralnet)\
**Post date:** [November 17, 2021, 12:34am UTC](https://discourse.slicer.org/t/changing-location-of-label-for-fiducial-points/20608/10 "2021-11-17T00:34:48Z")

</div>

Hi DIV,

This is a great strategy. I will try it out! Thank you!

---

<div class="post-metadata">

**Author:** ![Anna\_M](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/anna_m/32/69762_2.png) [@Anna\_M](https://discourse.slicer.org/u/Anna_M)\
**Post date:** [March 25, 2024, 6:05pm UTC](https://discourse.slicer.org/t/changing-location-of-label-for-fiducial-points/20608/11 "2024-03-25T18:05:20Z")

</div>

Quick and dirty workaround: add spaces in front of your label name.  
(I know this is an old topic, but there’s still no added feature I can see and this is a common problem in my work.)

---

<div class="post-metadata">

**Author:** ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)\
**Post date:** [March 25, 2024, 7:52pm UTC](https://discourse.slicer.org/t/changing-location-of-label-for-fiducial-points/20608/12 "2024-03-25T19:52:42Z")

</div>

> [@Anna\_M](#):
>
> Quick and dirty workaround: add spaces in front of your label name.

Original poster was asking about an ability to draw a line pointing to a text, much like you might do in powerpoint. That’s now possible through the ExtraMarkups extension.

However, changing the position of control point labels would be a nice addition.
