- Figure/axes reproduced as it appears on screen
- Cropped borders (optional)
- Embedded fonts (vector formats)
- Improved line and grid line styles
- Anti-aliased graphics (bitmap formats)
- Render images at native resolution (optional for bitmap formats)
- Transparent background supported (pdf, eps, png)
- Semi-transparent patch objects supported (png only)
- RGB, CMYK or grayscale output (CMYK only with pdf, eps, tiff)
- Variable image compression, including lossless (pdf, eps, jpg)
- Optionally append to file (pdf only)
- Vector formats: pdf, eps
- Bitmap formats: png, tif, jpg, bmp, export to workspace
6 CommentsOldest to Newest
Thanks for the honour, Brett.
I think the point about examples is very valid, and an excellent idea; it might cut down the email queries too! What I’ll probably do is create a web page with some examples, and link to it from the FEX and also export_fig’s help text. Thanks for the input.
I really like using LaPrint for generating publication-grade figures. It converts text to latex code that fits well with the rest of the paper (if it’s in latex, of course).
It seems that Matlab’s deficiency in the area of creating publication-quality figures is well-known and has been for some time. The code fix_lines.m, for instance, has been at Matlab Central for more than a year. I’m excited that there are so many user-generated codes out there for helping Matlab figures reach publication-quality (and that you’re telling us about them!), but this begs the question: is there anything being done at Mathworks to address the problems directly in Matlab? Is backwards compatibility the hold-up?
Dear Mr. Woodford,
I would like to download your export_fig from your website. However, the site of http://sites.google.com/ has been blocked by some reason. Could you please give me another link to me or send me the example of usage for export_fig?
Thanks so much in advance.
Oliver’s export_fig do indeed help out (thanks Oliver!) with some of the hurdles I have been ranting about elsewhere, e.g.
to take two recent examples. But the commands legend, colorbar, boxplot all three work nicely when plotting on screen or not trying to do any customization. Once that stage is over and one want to take full control of the details and components of these objects Matlab becomes considerable more difficult. So I can only second Matt William’s comment and plea for some insight into the background to this state of affairs, as well as suggest that you (or one of the other bloggers) give a rundown on how to take full control of the details of these three commands (and similar ones that others can come up with).
We realize that there have been many long-standing challenges associated with generating publication-quality graphics from MATLAB. This is an area where we are very interested in improving, and I can say that we are working quite hard on it right now.