Axes objects tree viewer

Shows objects contained within axes as a tree and lets you manipulate them interactively.
757 Downloads
Updated 29 Nov 2010

View License

AxesTree(ax,'Property','Value',...)

Opens a figure with a tree view of all handle graphic objects in the input
axes. Objects type and tag are displayed.

Objects can be selected from the tree. Double Clicking in the tree deselects all objects. Right-click opens a context menu with following possibilities: 'Visible' toggles selected objects visibility; 'Delete' removes the selected objects; 'Properties' opens the property inspector for selected objects.

Note: The tree automatically updates when objects are parented or removed
from the axes, or when a property is changed. The code uses some
undocumented Matlab features(usage of handle.listener and uitree) of release 2007b. It should work on later
releases as well (depending on the usage of handle.listener())

Cite As

Pirmin Borer (2024). Axes objects tree viewer (https://www.mathworks.com/matlabcentral/fileexchange/29552-axes-objects-tree-viewer), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2007b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Graphics Objects in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0.0

handles of Objects that are added to the axes are now converted to double before adding to the tree. (Preventing that they are wrapped with a BeanAdapter). Fixed also some errors.

1.0.0.0