# How can I draw a coordinate system on the image?

**URL:** <https://discourse.slicer.org/t/how-can-i-draw-a-coordinate-system-on-the-image/6205>\
**Category:** Development\
**Created:** [March 19, 2019, 11:47am UTC](https://discourse.slicer.org/t/how-can-i-draw-a-coordinate-system-on-the-image/6205 "2019-03-19T11:47:26Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![ZiyunLiang](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@ZiyunLiang](https://discourse.slicer.org/u/ZiyunLiang)\
**Post date:** [March 21, 2019, 1:43pm UTC](https://discourse.slicer.org/t/how-can-i-draw-a-coordinate-system-on-the-image/6205/21 "2019-03-21T13:43:46Z")

</div>

Hi, thanks so much for the advice! This seems like an awesome idea, I’ll definitely try it in the next couple days.

---

<div class="post-metadata">

**Author:** ![ZiyunLiang](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@ZiyunLiang](https://discourse.slicer.org/u/ZiyunLiang)\
**Post date:** [March 24, 2019, 8:42am UTC](https://discourse.slicer.org/t/how-can-i-draw-a-coordinate-system-on-the-image/6205/22 "2019-03-24T08:42:36Z")

</div>

Hi, when writing this in python, I run into some problems.

> Blockquote

I don’t know how to write this in python. Can you help with this?

Thanks for your time!

---

<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:** [March 24, 2019, 1:56pm UTC](https://discourse.slicer.org/t/how-can-i-draw-a-coordinate-system-on-the-image/6205/23 "2019-03-24T13:56:40Z")

</div>

[Slicer programming tutorial](https://www.slicer.org/wiki/Documentation/Nightly/Training#Slicer4_Programming_Tutorial) and examples in [Slicer script repository](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository) may be a good starting points. Let us know if you have any specific questions.

---

<div class="post-metadata">

**Author:** ![ZiyunLiang](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@ZiyunLiang](https://discourse.slicer.org/u/ZiyunLiang)\
**Post date:** [March 24, 2019, 3:30pm UTC](https://discourse.slicer.org/t/how-can-i-draw-a-coordinate-system-on-the-image/6205/24 "2019-03-24T15:30:24Z")

</div>

Hi, something went wrong with my quote in my last post.  
What I’m trying to say is how to write _visualize it in slice views as projection using Models module_ in python. I tried some functions myself, but they didn’t work.  
Thanks for your help!

---

<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:** [March 24, 2019, 6:22pm UTC](https://discourse.slicer.org/t/how-can-i-draw-a-coordinate-system-on-the-image/6205/25 "2019-03-24T18:22:26Z")

</div>

To show the model as projection on the slice, call [`SetSliceDisplayModeToProjection()`](http://apidocs.slicer.org/master/classvtkMRMLModelDisplayNode.html#a20839b43f4c88cd2258fb0afdee25a85) method of the model’s display node.

---

<div class="post-metadata">

**Author:** ![ZiyunLiang](https://avatars.discourse-cdn.com/v4/letter/z/5daacb/32.png) [@ZiyunLiang](https://discourse.slicer.org/u/ZiyunLiang)\
**Post date:** [March 25, 2019, 9:39am UTC](https://discourse.slicer.org/t/how-can-i-draw-a-coordinate-system-on-the-image/6205/26 "2019-03-25T09:39:15Z")

</div>

Awesome, it works. Thanks.😃

[Previous page](https://discourse.slicer.org/t/how-can-i-draw-a-coordinate-system-on-the-image/6205.md?page=1)
