# Remove markup lines on adjacent slices

**URL:** <https://discourse.slicer.org/t/remove-markup-lines-on-adjacent-slices/16136>\
**Category:** Support\
**Created:** [February 22, 2021, 3:26pm UTC](https://discourse.slicer.org/t/remove-markup-lines-on-adjacent-slices/16136 "2021-02-22T15:26:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kmalexander](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@kmalexander](https://discourse.slicer.org/u/kmalexander)\
**Post date:** [February 22, 2021, 3:26pm UTC](https://discourse.slicer.org/t/remove-markup-lines-on-adjacent-slices/16136/1 "2021-02-22T15:26:30Z")

</div>

I’m drawing straight lines across a CT image (using the ruler markup tool). When scrolling between adjacent slices, the line still appears on slices adjacent (either blue or red). Is there any way to have the markup line only appear on the one slice where it is drawn, and not ‘fade’ out on adjacent slices? Thanks.

---

<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:** [February 22, 2021, 4:09pm UTC](https://discourse.slicer.org/t/remove-markup-lines-on-adjacent-slices/16136/2 "2021-02-22T16:09:27Z")

</div>

SOunds like you might have 2D Projection enabled. You can disable that from the Display option of the Markups module (find the section called 2D Display).

---

<div class="post-metadata">

**Author:** ![kmalexander](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@kmalexander](https://discourse.slicer.org/u/kmalexander)\
**Post date:** [February 22, 2021, 4:17pm UTC](https://discourse.slicer.org/t/remove-markup-lines-on-adjacent-slices/16136/3 "2021-02-22T16:17:30Z")

</div>

@muratmaga That’s what I thought too - but everything in the 2D Display tab is unchecked yet it still appears. Checking the ‘projection visibility’ box and adjusting the opacity slider only seems to change the opacity of the glyphs, and not the line itself.

---

<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 22, 2021, 4:45pm UTC](https://discourse.slicer.org/t/remove-markup-lines-on-adjacent-slices/16136/4 "2021-02-22T16:45:45Z")

</div>

Projection only controls visibility of control points. Indeed, lines are fading out gradually, by default along 10 slices. You can make the line fade out

```python
dn=getNode('C').GetDisplayNode()
dn.SetLineColorFadingStart(0.1)
dn.SetLineColorFadingEnd(0.5)

```

@Sunderlandkyl What do you think? It makes sense to make a line look like 2D annotation (appear in a single slice) if it is planar and it is in the current slice, but I’m not sure if it is better to A. reduce fading range, or B. hide the line outside the (similarly how we hide the ROI widget completely when it does not intersect the current slice view). For lines both A and B could work similarly, but for curves, probably only B would work well.

---

<div class="post-metadata">

**Author:** ![kmalexander](https://avatars.discourse-cdn.com/v4/letter/k/bc79bd/32.png) [@kmalexander](https://discourse.slicer.org/u/kmalexander)\
**Post date:** [February 22, 2021, 4:53pm UTC](https://discourse.slicer.org/t/remove-markup-lines-on-adjacent-slices/16136/5 "2021-02-22T16:53:28Z")

</div>

@lassoan @Sunderlandkyl

Thanks! I suppose I was used to using the ruler tool in previous usages such as the Line Profile Tool, or the gel/film slicelets and figured the markup line would only appear on the single slice. Would be interesting if there was a way to set the thickness of a markup line.

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [February 22, 2021, 5:00pm UTC](https://discourse.slicer.org/t/remove-markup-lines-on-adjacent-slices/16136/6 "2021-02-22T17:00:46Z")

</div>

I’m not sure either. Probably B is better since it would still help with visualization of lines/curves that intersect but are mostly perpendicular with the slice.

---

<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 22, 2021, 5:10pm UTC](https://discourse.slicer.org/t/remove-markup-lines-on-adjacent-slices/16136/7 "2021-02-22T17:10:14Z")

</div>

I’ve created an issue for it:

> <https://github.com/Slicer/Slicer/issues/5480>
>
> Is your feature request related to a problem? Please describe.
> It is confusing for users that lines are visible on neighbor slices....
