Export plot to pdf - Issues under OS X with R2014b
Información
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
Mostrar comentarios más antiguos
Hello!
I am currently struggling with pdf export under OS X Yosemite using Matlab R2014b. Especially plots that contain noisy data have a tendency to look fuzzy in the pdf. As far as I remember this did not happen with older Matlab versions (although I am not completely certain). When I run the following code:
x = 0:2500;
y = rand(1,2501)+100.*exp(-((x-1000)./50).^2);
fig = figure(567)
plot(x,y, 'Color', 'r')
size = [20 15];
set(fig, 'PaperUnits', 'centimeters')
set(fig, 'PaperSize', size)
set(fig, 'PaperPosition', [1 1 18 14])
file = 'plot_OSX.pdf'
print('-f 567', '-dpdf', file)
the output looks like shown in 'plot_OSX.pdf'. When I run the same code under Windows Server 2012 with Matlab R2012b, I get the result shown in 'plot_Windows.pdf' which looks much nicer.
Of course, it is a little unfortunate that I am only able to compare different operating systems as well as different Matlab versions.
However, I would be very thankful if somebody has a good advise how to create nice vector graphics with R2014b under OS X. The export to eps also creates the fuzzy artifacts and I would really like to circumvent using the bitmap graphics produced by the OpenGL renderer.
Thanks!
Best regards, Ingolf
Respuestas (2)
Luuk van Oosten
el 17 de Nov. de 2014
0 votos
Hello Ingolf,
I have no experience with OS X but,
for a more fair comparison tried your code in Windows R2014a and it looks exactly like your plot_Windows.pdf. Could indicate that some settings are changed due to yosemite, but to be honest I have no idea. Have you tried saving your image in another format like .ai or .emf? Good luck!
1 comentario
Ingolf
el 17 de Nov. de 2014
Stefan Heidenblut
el 26 de En. de 2015
0 votos
Hello Ingolf,
for MATLAB R2014b in Windows 7 it's the same problem. I think it's connected to the new graphics engine introduced in R2014b. I wrote a service request and wait for an answer.
1 comentario
Stefan Heidenblut
el 27 de En. de 2015
The answer from MATLAB Technical Support:
This is a known issue in MATLAB R2014b. Our developers are working on the issue and it will be fixed in future releases.
For now we recommend keeping the line thickness at the default value and/or reducing the density of the data.
La pregunta está cerrada.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!