myfigure - extension of MATLAB's figure

Version 1.0 (361 KB) von Oleg Iupikov
Creates figure window with extra options, non-overlapping placement of multiple figures, and profile management.
12 Downloads
Aktualisiert 8. Aug 2023

Lizenz anzeigen

myfigure
Creates figure window with extra options, non-overlapping placement of multiple figures, and profile management.
Overview
The function myfigure is an extention built on top of MATLAB's figure function, which allows:
  • figure creation on the user-specified monitor (in multi-monitor systems)
  • automatic placement of new figure next to the existing one to avoid their overlapping;
  • optionally, if there are many figures, new figures can be placed on multiple monitors;
  • automatic setting of the figure size same as the previous figure, or manual size setting;
  • specifying distance between figures ("gaps") and distance to the screen borders ("margins");
  • creating axes: single or tiled layout (uses MATLAB's tiledlayout);
  • setting axes properties;
  • executing user-defined functions after creating the figure or axes on it;
  • disabling the figure's menu bar and tool bar;
  • setting standard figure properties;
  • saving all above to a profile, and create new figures with desired behaviour by just specifying the profile name;
  • selection of existing figure by a text label.
Documentation and examples
For the full function documentation, see attached Live Script and demo files.
After defining figure profiles once (see demo2_generate_banner_case.m), one can just use them as
myfigure(size=[800 400]);
myfigure(profile="demo_profile_with_axes");
myfigure(profile="demo_profile_3D_plots_1x2");
myfigure(profile="demo_profile_with_axes_2x3");
This will create the following non-overlapping figures on the screen:

Zitieren als

Oleg Iupikov (2024). myfigure - extension of MATLAB's figure (https://www.mathworks.com/matlabcentral/fileexchange/133447-myfigure-extension-of-matlab-s-figure), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2023a
Kompatibel mit R2021b und späteren Versionen
Plattform-Kompatibilität
Windows macOS Linux
Tags Tags hinzufügen

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0