Create Non-overlapping (cascading) Figure Windows

Creates figures as usual, except puts them in non-overlapping locations.
3K Downloads
Updated 7 Oct 2005

No License

FIGUREC - create a figure window in a non-overlapping (cascading) location

USAGE:

figurec
figurec(...)
h=figurec
h=figurec(...)

FIGUREC acts just like the MATLAB FIGURE command, with all arguments passed through, except that the new figure is created a little to the right and down from the highest numbered figure currently existing, so that they won't overlap. If moving the location would push the figure too close to the edge of the screen, then the new figure is created in the default location as usual. (Subsequent figures will again be cascaded.) An optional figure handle is returned according to the usual FIGURE calling syntax.

EXAMPLE:

close all
for n=1:20
figurec('color',rand(1,3))
plot(0,0);title('Sample')
end

Cite As

Michael Kleder (2024). Create Non-overlapping (cascading) Figure Windows (https://www.mathworks.com/matlabcentral/fileexchange/8670-create-non-overlapping-cascading-figure-windows), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R14SP2
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Modeling in Help Center and MATLAB Answers
Acknowledgements

Inspired: Cascade

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