colorbar problem in 2014b when printing pdf

3 ビュー (過去 30 日間)
Michael
Michael 2014 年 11 月 26 日
コメント済み: Leo OfNature 2019 年 3 月 18 日
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 件のコメント
Chad Greene
Chad Greene 2014 年 11 月 26 日
Interesting. I get the same result.
Christopher Benwell
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
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
Travis 2015 年 1 月 8 日
Beautiful!!! First time I have found someone actually point the way to the fix. Thank you.
Leo OfNature
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
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 件のコメント
Michael
Michael 2016 年 5 月 31 日
I can confirm that the default pdf created in 2015a still has the artifact and that using the OpenGL renderer removes it. Using the OpenGL renderer also means you get a bitmap embedded in a pdf, so poorer quality.
Leo OfNature
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
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.

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by