Code covered by the BSD License  

Highlights from
FIGUREMAKER - Publication quality figures with matlab

4.2

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

FIGUREMAKER - Publication quality figures with matlab

by

 

30 May 2013 (Updated )

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

| Watch this File

File Information
Description

figuremaker helps users generate publication quality graphics from
matlab. This code was modified from the exportfig function, available
at http://www.mathworks.com/matlabcentral/fileexchange/727-exportfig
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
into.

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
http://www.mathworks.com/matlabcentral/fileexchange/23629-exportfig

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

  >> exportfig('filename.pdf')

exports the current figure into pdf format.

Acknowledgements

Exportfig and Export Fig inspired this file.

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

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

http://www.mathworks.com/matlabcentral/answers/159509-eps-export-problems-in-r2014b

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.

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

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.

01 Aug 2014 Todd  
01 Aug 2014 Adam

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

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.

Updates
23 Jul 2013

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

Contact us