View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
FIGUREMAKER - Publication quality figures with matlab

4.2 | 5 ratings Rate this file 32 Downloads (last 30 days) File Size: 51.2 KB File ID: #42012 Version: 1.1
image thumbnail

FIGUREMAKER - Publication quality figures with matlab



30 May 2013 (Updated )

Create publication quality graphics, allowing rgb color scaling, pdf output and correct fontsizes.

| Watch this File

File Information

figuremaker helps users generate publication quality graphics from
matlab. This code was modified from the exportfig function, available
This function is nice in that the font sizes on the exported figure
will agree with the font size of the document the figure is placed

Exportfig was modified to allow rgb color in the exported figure.
Also, export of pdf file format is implemented with help from Oliver
Woodford's export_fig package, available at

The file format of the output is automatically chosen from the
filename, for example

  >> exportfig('filename.pdf')

exports the current figure into pdf format.


Exportfig and Export Fig inspired this file.

This file inspired Split Pd Fcolor Bw.

MATLAB release MATLAB 8.1 (R2013a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
30 Oct 2014 Todd

Todd (view profile)

There is a known bug in Matlab 2014b that causes the figure to be exported without a proper crop:

It appears this is causing an issue with figuremaker. If anyone finds a solution to this that works, please let me know. Also, I will post an update if I fix this issue. For now, there are a number of free programs that can be used to modify the bounding box of a pdf file.

Comment only
30 Oct 2014 Claudio

Hi Todd and thank you very much, I have started using your code and it is definitely better than export_fig, because in the papers I like to have all the figures with fixed size and font, and this is so simple to get with your submission!
However, unfortunately it is not working correctly in R2014b: the figure is not cropped and it appears on a full A4 sheet (which is mostly empty), with the figure at the bottom of the A4.
Is there a solution for this?

01 Aug 2014 Todd

Todd (view profile)

Reply to Vltor. The legend size is chosen so that it has the font size is correct. Try increasing the figure's 'width' option to make the legend proportionally smaller.

Comment only
01 Aug 2014 Todd

Todd (view profile)

01 Aug 2014 Adam

Adam (view profile)

Fantastic improvement in output. Does just what I needed. Thanks to you and the authors of the other packages you've used.

12 Mar 2014 VItor ribeiro

Thank you for this submission, but unfortunately it doesnt work for me. The legend becomes too big after rendering the figure. Is a pitty because the quality of the rendering seems to be a little bit better then the export_fig package.

08 Jul 2013 David

David (view profile)

Thanks! This replaces a set of ad hoc scripts I had created for my own articles with something much more carefully written. Everyone in my group uses this to create figures for their publications now.

23 Jul 2013 1.1

Fixed some typos in comments. Made 'pdf' the default file format if none specified.

Contact us