Export figure as EPS or PDF does not properly render some dotted lines; they become solid lines

20 次查看(过去 30 天)
When exporting a figure containing three plots to EPS or PDF format, the line styles on the third plot only do not render properly. The dotted lines become solid (see first image).
When exporting to a raster format, there is no distortion (see second image).
Does anyone know a fix for this? I much prefer a vector format. It seems weird that the first two plots look fine.

回答(5 个)

Thomas Lindvall
Thomas Lindvall 2022-2-28
  1 个评论
Shyamprasad Natarajan Raja
I had to create a PDF file from a figure with many data points. Plotting worked fine on matlab, but using exportgraphics() took a terribly long time. export_fig was almost instantaneous and produced the expected output. Great recommendation!

请先登录,再进行评论。


Georges Chahine
Georges Chahine 2022-4-29
编辑:Georges Chahine 2022-4-29
I was able to solve it by downsampling the data. Keep downsampling till you no longer have the issue. Example on 50% downsampling rows: B=A(1:2:end,:)

Thomas Lindvall
Thomas Lindvall 2020-3-6
I have the same issue in R2018a.

Georges Chahine
Georges Chahine 2022-2-26
same issue

Ding Ding
Ding Ding 2022-4-29
same issue in R2021a

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by