Figure Export to EPS

13 次查看(过去 30 天)
James
James 2011-9-20
I hope that somebody can help me with a problem. I'm trying to finish up figures for a paper, and I want to add legends, etc. in an EPS format using Adobe Illustrator. I made some simple scatter plots (gscatter.m) and clustered heatmaps (clustergram.m) and exported them to EPS. When I open them up in AI, they are broken into several sections. This makes it very difficult to size them. I have used Matlab in the past for the same thing, and they never appeared to be broken into independent sections.
Is there a way to avoid this?
Thanks in advance.
Jim
  4 个评论
Leslie
Leslie 2013-3-6
I am having the same trouble; when I import a particular set of EPS files from MATLAB (into Canvas 10 on a Mac OS X), the file is a set of about 6 rectangular bitmapped objects laid in sequence from top to bottom, rather than being comprised of the various text, line, & pcolor objects. This is not the case with another set of EPS files from MATLAB.
The biggest difference that I see between the two sets of plots is that the ones that are editable call m_pcolor, while the ones that don't work call pcolor and contain subplots.
Jan
Jan 2013-3-7
I do not know m_pcolor. If the figure uses the Pinters renderer, the created EPS files have a vector format. For the ZBuffer or OpenGL renderer, bitmaps are written to the EPS. So please check the renderer directly before printing. If the RendererMode is 'auto', Matlab decides for the "best" renderer and enables OpenGL for 3D or transparency automatically.

请先登录,再进行评论。

回答(2 个)

Florin Neacsu
Florin Neacsu 2011-9-20
Hi,
Have a look at export_fig on file exchange.
Regards, Florin
P.S. Credit goes to the author.
  2 个评论
James
James 2011-9-20
I'm having a hard time with GhostScript installation, but I will keep working on it. Thank you for the suggestion.
Jan
Jan 2011-9-20
Surprising. I've never had troubles installing GhostScript, except for the 64-bit version in Matlab 7. Therefore I'm using the 32-bit version now.

请先登录,再进行评论。


Jan
Jan 2011-9-20
Do you use the OpenGL-renderer for your figure? EPS-files with a scalable vector format are created with the Painters-renderer only. But if the Renderer property is set to 'auto' Matlab enables OpenGL or ZBuffer for 3D graphics automatically and pixel-graphics are exported. But I haven't seen different slices yet.
  1 个评论
James
James 2011-9-21
I used the painter's renderer.
I exported an image earlier today, in the same way, that was fine. The only difference with this one is that I plotted some points, used the "hold on" function, then plotted more points before exporting. I'm not sure how that changes things, but that is the only difference in the problem.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Graphics Performance 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by