Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Export plot to pdf - Issues under OS X with R2014b
4 ビュー (過去 30 日間)
古いコメントを表示
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
0 件のコメント
回答 (2 件)
Luuk van Oosten
2014 年 11 月 17 日
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 件のコメント
Stefan Heidenblut
2015 年 1 月 26 日
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 件のコメント
Stefan Heidenblut
2015 年 1 月 27 日
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.
この質問は閉じられています。
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!