# Command to close Tree figure

**URL:** <https://scilab.discourse.group/t/command-to-close-tree-figure/967>\
**Category:** GUI\
**Created:** [June 10, 2025, 5:57pm UTC](https://scilab.discourse.group/t/command-to-close-tree-figure/967 "2025-06-10T17:57:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kjb000](https://avatars.discourse-cdn.com/v4/letter/k/fbc32d/32.png) [@kjb000](https://scilab.discourse.group/u/kjb000)\
**Post date:** [June 10, 2025, 5:57pm UTC](https://scilab.discourse.group/t/command-to-close-tree-figure/967/1 "2025-06-10T17:57:21Z")

</div>

Dear all,

is there a way, how can I close figure with Tree (e.g. from example of uiDisplayTree) with command close (without closing the figure manually)?

Thanks and regards,  
Jakub

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [June 11, 2025, 11:31am UTC](https://scilab.discourse.group/t/command-to-close-tree-figure/967/2 "2025-06-11T11:31:11Z")

</div>

Hello,

There is no way to do this programmatically as the window displaying the tree is not part of the graphical hierarchy (figures, axes, …).

S.
