How can I avoid extra white lines when exporting a figure to a vector graphic?

16 visualizaciones (últimos 30 días)
Mark
Mark el 2 de Jul. de 2014
Editada: Josh el 9 de Mayo de 2024
I have a Matlab figure that looks great as a figure, but when I try to export it to a vector-based format (.eps or .pdf) white swirly lines appear as can be seen in the linked PDF. Some of the black dots also get partially covered, despite being much higher in the 3D graph than everything else, but that can be easily fixed in Inkscape.
I have also attempted to generate a .pdf or .eps using my preferred method, through "export_fig," but have ended up with the same results. Any tips would be much appreciated! The .fig file has also been attached.
  9 comentarios
Josh
Josh el 6 de Mayo de 2024
Editada: Josh el 9 de Mayo de 2024
Saving directly from the GUI/figure did NOT produce the white lines (test.pdf)
Exporting via the command line with:
exportgraphics(fig,'testExport.pdf','ContentType','vector')
...did produce white lines (testExport.pdf)
not seeing the white lines in the figure though, they only showed up in the export (screenshot)
Can you confirm the process you're using? Also, not sure if it's just a difference beteween 2D and 3D plots, but the recent figure (3D) didn't include the same File menu dropdown options with the ability to Save As... EPS, SVG, etc. only image and PDF options

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by