Anmerkung des Herausgebers: This file was selected as MATLAB Central Pick of the Week
Alters a figure so that it has the minimum size necessary to
enclose all axes in the figure without excess space around them.
Works for figures containing multiple axes as subplots.
Note that tightfig will expand the figure to completely encompass all
axes if necessary.
Returns an error if the figure contains any 3D axes which have been zoomed.
Zitieren als
Richard Crozier (2024). tightfig(hfig) (https://www.mathworks.com/matlabcentral/fileexchange/34055-tightfig-hfig), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxKategorien
- MATLAB > Data Import and Analysis > Data Exploration >
- Mathematics and Optimization > Partial Differential Equation Toolbox > General PDEs > Visualization >
Tags
Quellenangaben
Inspiriert von: Get rid of the white margin in saveas output
Inspiriert: ExportPngInkscape(filename,dpi,handle), tightfig, Average Temperature, JacobD10/tightfigadv, subtightplot, Spreadfigures, Backer-Upper Truck Simulator with Fuzzy Control, Space-Time Adaptive Processing for Airborne Radar by J.Ward
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
Version | Veröffentlicht | Versionshinweise | |
---|---|---|---|
1.7.0.0 | Actually uploaded new file this time! |
||
1.6.0.0 | Now works better with newer Matlab plotting code (i.e. colorbars and legends now handled properly in newer Matlab) |
||
1.5.0.0 | Added suggested improvement for minimum bound by Ben |
||
1.3.0.0 | Corrected bug noted by commenter Thomas, also tidied up some other parts of code and comments. |
||
1.0.0.0 |