uistack2

Modification of the Matlab UISTACK function
1.4K Downloads
Updated 7 Aug 2006

No License

UISTACK2 solves a problem reported in the MATLAB newsgroup comp.soft-sys.matlab about UISTACK behavior. This problem faced in R12.1 version, still occur in R14SP3.

See "[UISTACK] Problem with patch and line objects." in the newsgroup.

Exemple :

figure

subplot(2,1,1);
plot([1 5],[2 7]);
p=patch([2 4 4 2],[3 3 4 4],'r');
uistack(p,'bottom');
% the red patch SHOULD be placed under the blue line
title('UISTACK behavior')

subplot(2,1,2);
plot([1 5],[2 7]);
p=patch([2 4 4 2],[3 3 4 4],'r');
uistack2(p,'bottom');
% the red patch IS placed under the blue line
title('UISTACK2 behavior')

UISTACK2 is basically based on the original UISTACK function (by Loren Dean from TMW). Its use differs by the add of an "undo" feature.

Type "help uistack2" at the command prompt for more informations

***ASK FOR BACKWARD/FORWARD COMPATIBILITY***

Please test this contribution, and send feedbacks about the Matlab version you use. Send e-mail directly to the author (don't use the "User Review" section).

Cite As

Jerome Briot (2024). uistack2 (https://www.mathworks.com/matlabcentral/fileexchange/9707-uistack2), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12.1
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Migrate GUIDE Apps 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.0.0.0

07 Aug 2006 - Minor bugs fixed.