# Display gridlines

**URL:** <https://discourse.slicer.org/t/display-gridlines/36260>\
**Category:** Support\
**Created:** [May 19, 2024, 11:05am UTC](https://discourse.slicer.org/t/display-gridlines/36260 "2024-05-19T11:05:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![YLX](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@YLX](https://discourse.slicer.org/u/YLX)\
**Post date:** [May 19, 2024, 11:05am UTC](https://discourse.slicer.org/t/display-gridlines/36260/1 "2024-05-19T11:05:17Z")

</div>

Hello, I would like to know how to display gridlines in 3d slice software? Because I want to measure some of the lowest and highest points of the skull, after importing the skull data, there will be a large error due to subjectivity. So I would like to know if it is possible to add grid lines in the display interface to help me locate the landmarks I need more accurately.

Operating system:  
Slicer version: 5.6.1  
Expected behavior:  
Actual behavior:

---

<div class="post-metadata">

**Author:** ![philippepellerin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/philippepellerin/32/16062_2.png) [@philippepellerin](https://discourse.slicer.org/u/philippepellerin)\
**Post date:** [May 19, 2024, 3:00pm UTC](https://discourse.slicer.org/t/display-gridlines/36260/2 "2024-05-19T15:00:29Z")

</div>

create a transform, then display the grid(in the transform module)

---

<div class="post-metadata">

**Author:** ![Tina\_Kapur](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tina_kapur/32/3140_2.png) [@Tina\_Kapur](https://discourse.slicer.org/u/Tina_Kapur)\
**Post date:** [May 20, 2024, 1:13am UTC](https://discourse.slicer.org/t/display-gridlines/36260/3 "2024-05-20T01:13:49Z")

</div>

Please see this thread and let us know if it is helpful to you in making measurements and solving your problem:

> [@Create gridlines in 3D view, similar to the effect in the figure](https://discourse.slicer.org/t/create-gridlines-in-3d-view-similar-to-the-effect-in-the-figure/29127/1):
>

---

<div class="post-metadata">

**Author:** ![YLX](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@YLX](https://discourse.slicer.org/u/YLX)\
**Post date:** [May 20, 2024, 2:55am UTC](https://discourse.slicer.org/t/display-gridlines/36260/4 "2024-05-20T02:55:22Z")

</div>

Thank you for the method provided by the teacher. I tried the python code in the link and found that there seemed to be a grid in the three views below, but the main picture still did not show the grid I wanted. Also, I would like to ask how to add mesh customization for Slicermorpho?

 ![8N6YVI$J%DBG(2OOW$MRAAK](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/6/5688e3125e1d15fa114d88c7a139c19d732360ca.jpeg)

---

<div class="post-metadata">

**Author:** ![YLX](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@YLX](https://discourse.slicer.org/u/YLX)\
**Post date:** [May 20, 2024, 3:09am UTC](https://discourse.slicer.org/t/display-gridlines/36260/5 "2024-05-20T03:09:24Z")

</div>

To add a point, I am importing data in stl format for operation

---

<div class="post-metadata">

**Author:** ![philippepellerin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/philippepellerin/32/16062_2.png) [@philippepellerin](https://discourse.slicer.org/u/philippepellerin)\
**Post date:** [May 21, 2024, 9:09am UTC](https://discourse.slicer.org/t/display-gridlines/36260/6 "2024-05-21T09:09:38Z")

</div>

By using the transform module( ceate a new transform for your volume) you will display a grid in 3D as well as in 2D. The grid is fully parametrable and can, even be moved itself by a second transform, see the screen grabs

 ![Screenshot 2024-05-21 at 10.52.57](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/8/f811de330d784465beda09c82c9bf9f74b6f2b02.jpeg)  
 ![Screenshot 2024-05-21 at 10.53.23](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/7/573d3dd1583cff95f45962dfb7d506de8a8e1f09.jpeg)  
 ![Screenshot 2024-05-21 at 10.53.42](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/b/eb1051604b21e9f70628a66751e33556967950bd.jpeg)

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [May 21, 2024, 9:31am UTC](https://discourse.slicer.org/t/display-gridlines/36260/7 "2024-05-21T09:31:38Z")

</div>

> [@YLX](#):
>
> I tried the python code in the link and found that there seemed to be a grid in the three views below, but the main picture still did not show the grid

The code works, I just tried. If you paid attention you saw in the console and the log that you need to switch to parallel projection.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/9/29dbda985a2b6654e3f398616684b292521fd5d4.png)

---

<div class="post-metadata">

**Author:** ![YLX](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@YLX](https://discourse.slicer.org/u/YLX)\
**Post date:** [May 22, 2024, 3:16am UTC](https://discourse.slicer.org/t/display-gridlines/36260/8 "2024-05-22T03:16:15Z")

</div>

Thank you very much for your guidance. I followed your method, but there was another problem. When I selected the Regin option, the screen flashed back, is it the cause of my computer’s low configuration?

 ![OI@6W5W8@2E%0@THCGCO06](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/7/57e67fa2f480288b4a21ec5723c2a24600ff090c.png)

 ![f9530fdabaaca4451295a1155f1482bc](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/9/e/9e293e7d8da682a0c2cba6634677676741f2e603.jpeg)

---

<div class="post-metadata">

**Author:** ![YLX](https://avatars.discourse-cdn.com/v4/letter/y/c57346/32.png) [@YLX](https://discourse.slicer.org/u/YLX)\
**Post date:** [May 22, 2024, 3:19am UTC](https://discourse.slicer.org/t/display-gridlines/36260/9 "2024-05-22T03:19:38Z")

</div>

Thank you very much for your guidance, I would like to ask how to customize the code? Is that I open any data, do not need to re-enter the code, can directly use custom options, so as to set up a grid display?
