'--' linestyle renders poorly in PDFs (but fine onscreen)

13 ビュー (過去 30 日間)
Drew Steen
Drew Steen 2011 年 7 月 1 日
コメント済み: Jan 2017 年 10 月 9 日
When I make a plot using dash-like linestyles and then print the plot to a PDF, the dashes are so small as to be invisible. For example:
x=0:0.1:10;
y=sin(x);
plot(x, y, 'Linestyle', '--');
This looks good onscreen, but when I print to a pdf there are so many dashed per unit length that the line looks continuous. Oddly if I print directly to a physical printer, the dashes look fine.
Any idea whether this is Adobe's problem, or MATLAB's? Or whether I can do anything about it?

採用された回答

Jan
Jan 2011 年 7 月 1 日
The PDF is created by using an intermediate EPS or PS file. The conversion of dashed and dotted lines from Matlab to EPS is poor. Solutions:
Dear TMW: This problem is very old and very obvious. The solution looks very straight. So please update the EPS export accordingly. And to reduce the traffic on MATLAB Answers, buy export_fig and include it in the Matlab toolboxes, please.
  4 件のコメント
Thomas Kirven
Thomas Kirven 2017 年 10 月 8 日
This doesn't work for me. I have dashed lines in a 3d figure. I print the figure as an eps file, then put it through these functions, and the file either comes out unable to be viewed or unchanged.
Jan
Jan 2017 年 10 月 9 日
@Thomas: 3D graphics are renders by OpenGL in many cases. Then the created PDF contains a screenshot only and you cannot modify the contents directly. Please open a new thread and explain clearly, what the inputs are, and show an example of the problem as a screenshot. Thanks.
Again: Prefer to open a new thread than to hijack an existing one. This is an advantage for you and for the forum.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeTitle についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by