fig- the exact figure size and no white space

Versione 1.7.0.0 (3,08 KB) da Reza
Create publication-quality figures; easily define the figure's size, font of all labels, titles...
7,1K download
Aggiornato 14 mag 2012

Visualizza la licenza

This function is especially useful for creating high-quality figures for publication. Many scientific journals require figures with specific sizes and fonts.

One annoyance of the Matlab's default figure is the complications in defining the figure's size for publication. The other thing is the extra white-space (blank margin) around the plots.

With FIG you can easily choose the desired figure size without any unnecessary white-space. Moreover you can unify the font used for all the labels, titles, legends, colorbars, etc. FIG also accepts all the arguments of the Matlab figure(...).

Example1:
fig

Example2:
h=fig('units','inches','width',7,'height',2,'font','Helvetica','fontsize',16)

When reporting bugs, please drop me an email, rather than reporting in the comments (I will respond more quickly, especially if I can email you back).

Cita come

Reza (2025). fig- the exact figure size and no white space (https://it.mathworks.com/matlabcentral/fileexchange/30736-fig-the-exact-figure-size-and-no-white-space), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2010a
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux
Categorie
Scopri di più su Printing and Saving in Help Center e MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.7.0.0

v1.6.5: Added an optional parameter that keeps some white-space around the graphs: fig('border', 'on',...).

1.5.0.0

v1.6: Bugs fixed. Revised for future updates.

1.4.0.0

v1.5.3: Added the ability to accept all the Matlab figure(...) options. Optimized error handling.

1.3.0.0

v1.5.2: Added ability to work with figure handles such as h=fig(h,...). Optimized default property values.

1.2.0.0

v1.5.1: Updated documentation & BSD.

1.1.0.0

v1.5: No unnecessary white space around the plots. Minor bugs fixed.

1.0.0.0