Lines appearing on svg images from export_fig

조회 수: 12 (최근 30일)
Kristoffer Clasén
Kristoffer Clasén 2021년 10월 29일
댓글: Kristoffer Clasén 2021년 10월 31일
HI,
I'm using export_fig to export svg imgas that goes into ms word. However, a grid of non-colored lines appears on the images which becomes very apparent on surface plots and it looks like garbage. Particularly frustrating when there is an intended grid as well. The grid changes with the resolution. Is there a was to get rid of this?
  댓글 수: 8
Kristoffer Clasén
Kristoffer Clasén 2021년 10월 30일
편집: Kristoffer Clasén 2021년 10월 31일
Yes, tried exportgraphics (of which .eps is the only viable vector outcome), similar result as export_fig, messed up grid, but also undesirable cropping of the image.
It seems export_fig alters linewidths and markersizes when exporting to eps, because the appearance change a lot compared to svg of tif. Axes, markers, all changes. Perhaps because the format doesn't allow certain linewidth?
Edit: So I assume that the grid issue I keep having with eps is that transparency is not supported, and therefore it is rendered as dashes instead. Seems that the linewidths issue can be sorted by simply adjust it a bit, 0.5->0.4 gives similar result visually as when saving as svg/ tif.
Kristoffer Clasén
Kristoffer Clasén 2021년 10월 31일
Gave up on the idea of saving directly to svg. Went for eps instead, which renders ok after some tweaking on linewidths here and there, converting the eps to svg using cloudconvert which works really well and maintains the quality. Had to give up on the grid, the grid doesnt work with contourf and eps, it becomes plotted on top of the surface as dashed lines when exporting to eps. All other plots, lines, bars etc, works with grid however.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

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