colorbar problem in 2014b when printing pdf
3 次查看(过去 30 天)
显示 更早的评论
When I make a colorbar and print as pdf, it has an artifact that looks like a white dashed line. I think it is where two parts of the colorbar image meet. Any ideas for a work around?
colorbar
print('-dpdf','test.pdf')

2 个评论
Christopher Benwell
2016-10-19
I also have this problem. Has anyone found a workaround for it? It is quite incredible how often Mathworks manage to introduce new problems with their updates.
回答(3 个)
Jan
2014-12-28
编辑:Jan
2014-12-28
Is this a problem of Matlab or does it depend on the PDF viewer? See http://www.mathworks.com/matlabcentral/answers/15388-artifacts-in-figures-exported-as-pdf-from-matlab .
3 个评论
Travis
2015-1-8
Beautiful!!! First time I have found someone actually point the way to the fix. Thank you.
Leo OfNature
2019-3-18
编辑:Leo OfNature
2019-3-18
Sorry, but fixing the pdf viewer is not a satisfactory answer, given that that most pdf viewer are configured by default to make this deffect appears... WRONG answer!
Bing Yuan
2016-5-31
In matlab2016, adding the following line removes the dashed line in the colorbar, although the size of the output file changes:
set(gcf, 'Renderer', 'opengl') % remove grids for contourf and the dashed line in colorbar when saving pdf/eps. in matlab2016a.
It might also work for matlab2014b.
2 个评论
Leo OfNature
2019-3-18
Yes, but the quality get so poor that it doesn't worth anymore to export as a vecrorized graphics...
Michael Tippett
2016-9-22
And I've confirmed that Matlab 2016a still has the artifact if vector graphics are used (no embedded bitmap). Sad.
0 个评论
另请参阅
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!