copyUIAxes

Copy UIAxes (eg. AppDesigner) and most properties to a new figure and recreate the legend and colorbar if they exist.

Download
Download

You are now following this Submission

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 .

Acknowledgements

Inspired by: export_fig

Inspired: BoxPlotPro, Phase Portrait Plotter

Categories

Find more on Develop Apps Using App Designer in Help Center and MATLAB Answers

General Information

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.

Download
4.0.0

Now supports yyaxis plots & copies subtitles. PositionConstraint no longer copied.

Download
3.0.0

copyPosition input added to copy the axes position within the figure. Other minor changes.

Download
2.0.0

Updated release compatibility fields; no changes to code.

Download
2.0.0-0

Updated for changes made to Matlab r2020a

Download
1.2.0

Announcement: Update for r2020a coming soon.

Download
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'.

Download
1.1.1

Changed thumbnail image only.

Download
1.1.0

Destination figure handle returned in output structure; improved error handling; improved listIgnoredProps text.

Download
1.0.1

Edited description; no change to code.

Download
1.0.0

Download