copyUIAxes
Copy UIAxes (eg. AppDesigner) and most properties to a new figure and recreate the legend and colorbar if they exist.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Editor's Note: This file was selected as MATLAB Central Pick of the Week
Cite As
Adam Danz (2026). copyUIAxes (https://au.mathworks.com/matlabcentral/fileexchange/73103-copyuiaxes), MATLAB Central File Exchange. Retrieved .
General Information
- Version 4.0.1 (200 KB)
MATLAB Release Compatibility
- Compatible with R2016a to R2020b
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 4.0.1 | Fixed error with Matlab version check in r2021a. |
||
| 4.0.0 | Now supports yyaxis plots & copies subtitles. PositionConstraint no longer copied. |
||
| 3.0.0 | copyPosition input added to copy the axes position within the figure. Other minor changes. |
||
| 2.0.0 | Updated release compatibility fields; no changes to code. |
||
| 2.0.0-0 | Updated for changes made to Matlab r2020a |
||
| 1.2.0 | Announcement: Update for r2020a coming soon. |
||
| 1.2.0-0 | Now works with categoricalHistograms; new warning message appears if there's a problem copying a property; drawnow() added prior to copying; axis visibility is set at the end only when the UIAxis visibility is 'on'. |
||
| 1.1.1 | Changed thumbnail image only. |
||
| 1.1.0 | Destination figure handle returned in output structure; improved error handling; improved listIgnoredProps text. |
||
| 1.0.1 | Edited description; no change to code. |
||
| 1.0.0 |