About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • License: Freeware
  • Last update: 5 years ago
  • Total downloads: 40
  • Price: Free |
  • Operating system: Linux, Mac OS X, Win All, BSD, Solaris
  • Publisher: Jonathan Rossel
See full specifications

scripts default iconBaFigExPro (Scripts) Publisher's description

The BaFigExPro package provides an automatic method to export Matlab figures, with optional uniform styling.

The BaFigExPro package provides an automatic method to export Matlab figures, with optional uniform styling. Several input/output folders can be given in a single call. The routine works both for Windows and Linux (tested on Matlab 6.5 and 7.x).

The package is generally used to:

- make uniform figure styling with batch processing. Styling includes font size, marker size, line width, color, legend position, ticks locking and figure dimensions.

- export figures to eps and optionally pdf, jpeg, png and tiff files. By using the eps file as an intermediate file for the other format, the typical huge white blank frame around the figures that Matlab adds when exporting in other formats is not present. The routine can also be used to export with any Matlab print format.

- prepare tex code for figure inclusion.

- automate standard output styles, e.g.:
*article: smaller fonts and line widths
*slides: bigger fonts and line widths

- special features:
*axes size adaptation to follow font size or figure dimension changes
*option to assure that text blocks are kept within the axes boundary
*tight margins around the figure axes
*wide number of options (recursive, subset of files, preview, ...)

UPDATE description

(v. 2):

* 7.x compliant
* Automatic (simple) latex code generation option
* Recursive on folders
* Reset legend position option
* Matchcolorbar option (not active for 7.x)
* Interpolate option for ghostscript added

(v. 2.1)
* Bug correction

(v. 2.2)
* 7.x automatic resizing for slides export improved

(v. 2.3)
* Small bug corrected in formatfig.m
* 'latexcodeonly' option added

(v. 2.4)
*'fsubset' option added
*allow option structure input
*'eps_renderer' option added
*color handling redesigned, bw conversion greatly improved
*'recursive' option more robust

(v. 2.5)
*fig files having dots in their name are allowed
*latex interpreter restored if lost at saving
*'activeposition' and 'marginfactor' options added as resizing parameters
*'stylemap': behaviour slightly modified to allow unique Matlab style
*undock figures before formatting if necessary

(v. 2.5.1)
*bug corrected in latex interpreter restoration

(v. 2.6)
*improved automatic margin adaptation to avoid label or outsided legend clipping when resizing figure with axes in 'position' mode ('adaptaxes' option).
*'tight' option to obtain the smallest possible margins.
*'marginfactor' option extended to allow absolute control on margins. In 6.x versions, it now helps the automatic axes adaptation.
*'eps_loose' option added to gain control on exported figure width.
*'customcode' option added to include custom code execution at different locations within the formatting process.
*'paperunits' option added.
*'locklimits' option added.
*'dsubset' option added to select subset of folders. 'fsubset' option now limited to files.
*fig2public can now be called without any parameter
*Help headers rewritten

(v. 2.7)
*default figure styles have been externalized and extended (see presetformat.m). Several options have been added to the 'base_config' parameter. To keep the old defaults, add 'old' to your 'base_config' input.
*option 'lockaxesaa' has been added to increase robustness of 'tight' margin mode.
*a few input parameter verifications have been added to help the user.


The package is based on eps2xxx by Primoz Cermelj (slightly modified) and exportfig by Ben Hinkle (greatly modified). After a thorough testing of exportfig, I saw that it was not working fine for many cases that I was needing (e.g. figures with large labels for presentations). So, I nearly rewrote it and added some cool stuff.


Unzip the package and call fig2public. Read the help headers of the different routines! The version log is also useful... In general,

1) generate and store fig files in a folder (be minimalist in terms of format processing, always use command line calls to perform them).

2) call fig2public with the source folder and the output folder as arguments. Add all the options that you need. Many are available. The options of the different subroutines can be given directly to fig2public.

3) enjoy the output. Use the tex files in the output folders to copy-paste inclusion code.

4) you might have to define the path to ghostscript somewhere.

Bugs and "that stuff is useless":

Well, first go to the previous point, notably the "known limitations" in the version log. Then, e-mail me.


System Requirements:

MATLAB 7.10 (2010a)
Program Release Status: New Release
Program Install Support: Install and Uninstall

BaFigExPro (Scripts) Tags:

Click on a tag to find related softwares

Is BaFigExPro (Scripts) your software?

Manage your software

Most Popular

scripts default icon ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation 1.1
ASK, OOK, FSK, BPSK, QPSK, 8PSK modulation contain several functions for digital modulation simulation
scripts default icon Simulink Communication Labs 1.1
Simulink Communication Labs allows you to learn communication systems in greater depth.
scripts default icon M-QAM modulation and demodulation 1.1
M-QAM modulation and demodulation is the QAM modulation and demodulation tech.
scripts default icon LZW Compression/Decompression 1.1
LZW Compression/Decompression - Updated LZW compressor and decompressor with reasonable performance
scripts default icon InSPIRE utility to plot a 2D displacement field (Scripts) 1.0
This program plots the deformation field (displace vectors) contained in vector.txt.