Figure Export to EPS

14 visualizaciones (últimos 30 días)
James
James el 20 de Sept. de 2011
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 comentarios
Leslie
Leslie el 6 de Mzo. de 2013
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 el 7 de Mzo. de 2013
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.

Iniciar sesión para comentar.

Respuestas (2)

Florin Neacsu
Florin Neacsu el 20 de Sept. de 2011
Hi,
Have a look at export_fig on file exchange.
Regards, Florin
P.S. Credit goes to the author.
  2 comentarios
James
James el 20 de Sept. de 2011
I'm having a hard time with GhostScript installation, but I will keep working on it. Thank you for the suggestion.
Jan
Jan el 20 de Sept. de 2011
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.

Iniciar sesión para comentar.


Jan
Jan el 20 de Sept. de 2011
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 comentario
James
James el 21 de Sept. de 2011
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by