EPS looks pixelated when exporting figure

I'm trying to export an eps from matlab but it keeps appearing pixelated on the resulting PDF. I'm using:
print -despc my plot.eps
The result in my latex document looks like:
Is there anyway to stop this? As when I load it in the figure window it renders properly and not pixelated.

Respuestas (1)

Jan
Jan el 5 de Feb. de 2013
Do you use the OpenGL renderer in Matlab? If so, try Painters:
set(gcf, 'Renderer', 'Painters');
This is required to get vector graphics in the EPS exort.
If this does not work, export a PNG: Even with pixels the output is clean.

2 comentarios

wallflower
wallflower el 13 de En. de 2021
Thank you so much for your response! It saved my day!
Zahra Hajati
Zahra Hajati el 2 de Dic. de 2022
Thank you, saved my day as well!

Iniciar sesión para comentar.

Categorías

Más información sobre Printing and Saving en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 5 de Feb. de 2013

Comentada:

el 2 de Dic. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by