# Display transform using Python

**URL:** <https://discourse.slicer.org/t/display-transform-using-python/36168>\
**Category:** Support\
**Tags:** transforms, python\
**Created:** [May 15, 2024, 1:34pm UTC](https://discourse.slicer.org/t/display-transform-using-python/36168 "2024-05-15T13:34:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matteboo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/matteboo/32/66548_2.png) [@Matteboo](https://discourse.slicer.org/u/Matteboo)\
**Post date:** [May 15, 2024, 1:34pm UTC](https://discourse.slicer.org/t/display-transform-using-python/36168/1 "2024-05-15T13:34:25Z")

</div>

Hello,  
I’m trying to display segmentation using python just like in this image  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/c/1ce635ac08dcaf069bb996180b5b78f736f604ff.png)

However, in the [doc](https://slicer.readthedocs.io/en/latest/user_guide/modules/transforms.html#display), the link to the display section is dead ([dead link](http://transforms.md/#display) )

I can’t find doc or the code for the **display** part of the transform module

If somebody knows where the code is or where I can find documentation for the display transform part that would be very usefull

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [May 15, 2024, 2:48pm UTC](https://discourse.slicer.org/t/display-transform-using-python/36168/2 "2024-05-15T14:48:29Z")

</div>

This is the full link:  
[https://slicer.readthedocs.io/en/latest/user\_guide/modules/transforms.html#display](https://slicer.readthedocs.io/en/latest/user_guide/modules/transforms.html#display)

Where did you see the other link? If it was in the source code these get configured to full URLs when the page is built and deployed.

---

<div class="post-metadata">

**Author:** ![Matteboo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/matteboo/32/66548_2.png) [@Matteboo](https://discourse.slicer.org/u/Matteboo)\
**Post date:** [May 15, 2024, 3:36pm UTC](https://discourse.slicer.org/t/display-transform-using-python/36168/3 "2024-05-15T15:36:13Z")

</div>

Here is where I found the link  
[https://slicer.readthedocs.io/en/latest/user\_guide/modules/transforms.html#visualize-transform](https://slicer.readthedocs.io/en/latest/user_guide/modules/transforms.html#visualize-transform)

Thank you for the link, but I already found this page. I’m looking for developper information since I want to display transform in a script.  
I want to answer questions like  
“How do I programmaticaly change the scale factor?”

I was hoping that the dead link was a link to the Github page

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [May 15, 2024, 3:59pm UTC](https://discourse.slicer.org/t/display-transform-using-python/36168/4 "2024-05-15T15:59:20Z")

</div>

There are API docs here: [https://apidocs.slicer.org/main/](https://apidocs.slicer.org/main/)

But generally this approach works well:

[https://slicer.readthedocs.io/en/latest/developer\_guide/python\_faq.html#how-to-find-a-python-function-for-any-slicer-features](https://slicer.readthedocs.io/en/latest/developer_guide/python_faq.html#how-to-find-a-python-function-for-any-slicer-features)

---

<div class="post-metadata">

**Author:** ![Matteboo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/matteboo/32/66548_2.png) [@Matteboo](https://discourse.slicer.org/u/Matteboo)\
**Post date:** [May 16, 2024, 12:14pm UTC](https://discourse.slicer.org/t/display-transform-using-python/36168/5 "2024-05-16T12:14:01Z")

</div>

Thank you, Imanaged to find the answer to my questions  
😄
