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