# Draw principal axes

**URL:** <https://discourse.slicer.org/t/draw-principal-axes/27144>\
**Category:** Support\
**Created:** [January 9, 2023, 10:49pm UTC](https://discourse.slicer.org/t/draw-principal-axes/27144 "2023-01-09T22:49:44Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![MdeBo](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mdebo/32/77259_2.png) [@MdeBo](https://discourse.slicer.org/u/MdeBo)\
**Post date:** [July 9, 2024, 7:36am UTC](https://discourse.slicer.org/t/draw-principal-axes/27144/4 "2024-07-09T07:36:28Z")

</div>

Hi,  
Thanks for the suggestion given above. I found the Python code and I believe I should change some string names. However, I am not sure with what name I can call the principal axes.  
For example: what should I put instead of `obb_direction_ras_x` within `"LabelmapSegmentStatisticsPlugin.obb_direction_ras_x"` to obtain the principal x axes?

In the end I would like to obtain a figure as in [this post](https://discourse.slicer.org/t/new-segment-statistics-oriented-bounding-box-diameter-and-more/10203), in the **Principal axes and moments** figure.

Thanks in advance!

---

_[View the full topic](https://discourse.slicer.org/t/draw-principal-axes/27144)._
