Controllable tight subplot

Subplot wrapper, allowing better figure utilization, by tighter axes.
14,1K descargas
Actualizado 31 jul 2016

Ver licencia

Allows fully utilizing the figure surface by defining margins, by wrapping the existing subplot function. Unfortunately the original subplots function spends lavishly the figure area , without allowing the user to control it in a convenient manner. In addition to subplot functionality (fully supported) the user can define margins, which result in larger axis presented in the figure. Default margins are 1% of figure area.
Thanks goes to a colleague- Adi N., who both urged me to write this function down, and assisted in writing it.
Hope you will find this one useful.
Some subplot functionality s now supported. However, I must mention this looks quiet buggy to me. Check this out:
subplot(1,2,1,'Position',[0.1,0.1,0.3,0.3]); % 'Position' is ignored!!!

Citar como

Nikolay S. (2024). Controllable tight subplot (, MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2009a
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión

Updated demo code, using Varoujan good advice.

A bit shorter implementation, now supporting functionality Allan has requested.

.png replaced by .jpg's, to reduce file size, screen-shot modified.