# Change Axis Labels from RAS to XYZ (or something else custom)

**URL:** <https://discourse.slicer.org/t/change-axis-labels-from-ras-to-xyz-or-something-else-custom/17356>\
**Category:** Support\
**Created:** [April 27, 2021, 2:59pm UTC](https://discourse.slicer.org/t/change-axis-labels-from-ras-to-xyz-or-something-else-custom/17356 "2021-04-27T14:59:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan\_Lesage](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jonathan_lesage/32/4693_2.png) [@Jonathan\_Lesage](https://discourse.slicer.org/u/Jonathan_Lesage)\
**Post date:** [April 27, 2021, 2:59pm UTC](https://discourse.slicer.org/t/change-axis-labels-from-ras-to-xyz-or-something-else-custom/17356/1 "2021-04-27T14:59:44Z")

</div>

I was wondering if it is possible to change the RAS labels on the axes to XYZ? I am attempting to make using slicer more attractive to folks in the Nondestructive Testing world and being able to change RAS to XYZ will make the direction markers easier for us non-medical users more straightforward.

Many thanks!

---

<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:** [April 27, 2021, 6:44pm UTC](https://discourse.slicer.org/t/change-axis-labels-from-ras-to-xyz-or-something-else-custom/17356/2 "2021-04-27T18:44:59Z")

</div>

Yes, that’s configurable.

```auto
>>> v = getNode('*View*')
>>> v.SetAxisLabel(0, "Hello")

```

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

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lesage](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jonathan_lesage/32/4693_2.png) [@Jonathan\_Lesage](https://discourse.slicer.org/u/Jonathan_Lesage)\
**Post date:** [April 27, 2021, 7:05pm UTC](https://discourse.slicer.org/t/change-axis-labels-from-ras-to-xyz-or-something-else-custom/17356/3 "2021-04-27T19:05:24Z")

</div>

Hi pieper,

Thanks for the swift reply!

Is this also configurable for the axis arrows (see below):

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/e/bea84c481524df384e4637fa1c7cd9bfc5bc4b9a.png)

- Jon

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lesage](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jonathan_lesage/32/4693_2.png) [@Jonathan\_Lesage](https://discourse.slicer.org/u/Jonathan_Lesage)\
**Post date:** [April 27, 2021, 7:06pm UTC](https://discourse.slicer.org/t/change-axis-labels-from-ras-to-xyz-or-something-else-custom/17356/4 "2021-04-27T19:06:42Z")

</div>

… also on the slice views

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/e/de32dc20f5bc32af36c4f5e5ff4fcf8cc92d6cce.png)

---

<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:** [April 27, 2021, 7:23pm UTC](https://discourse.slicer.org/t/change-axis-labels-from-ras-to-xyz-or-something-else-custom/17356/5 "2021-04-27T19:23:45Z")

</div>

Yes, both Slice and ThreeD view nodes are subclasses of `vtkMRMLAbstractViewNode`. Probably you should look at [SlicerAstro](https://github.com/Punzo/SlicerAstro) to get ideas for removing the human-specific parts of the Slicer interface.

> <https://github.com/Slicer/Slicer/blob/0094e9a35bd266cc8b0e677858dabce797c9928f/Libs/MRML/Core/vtkMRMLAbstractViewNode.h#L268-L278>

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lesage](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jonathan_lesage/32/4693_2.png) [@Jonathan\_Lesage](https://discourse.slicer.org/u/Jonathan_Lesage)\
**Post date:** [April 28, 2021, 3:54pm UTC](https://discourse.slicer.org/t/change-axis-labels-from-ras-to-xyz-or-something-else-custom/17356/6 "2021-04-28T15:54:40Z")

</div>

Thank you so much! I will look into this.
