Naming figures (fig.m)

Create new figures with a window title which can be used as a handle.
2,9K téléchargements
Mise à jour 3 sept. 2013

Afficher la licence

This function works just like the figure command in MATLAB except that you reference figures by names instead of figure handles. (you can still use the handles though)

H=fig('My figure')

The title of the window of the figure will now be 'My figure'. You can also set figure properties with the same call:

fig('My figure','renderer','opengl');

It will also place the figure window on the monitor with the current mouse position.

Citation pour cette source

Aslak Grinsted (2024). Naming figures (fig.m) (https://www.mathworks.com/matlabcentral/fileexchange/3431-naming-figures-fig-m), MATLAB Central File Exchange. Récupéré le .

Compatibilité avec les versions de MATLAB
Créé avec R2013a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Programming dans Help Center et MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Publié le Notes de version
1.4.0.0

Fixed a bug in positioning code.

1.2.0.0

*added screenshot

*no longer lets it change paperorientation by default.

1.0.0.0

Update: Only sets any default attributes if a new figure is created... Uses orient landscape instead of set(H,'orientation','landscape').