Skip to content

Clean/Repair .eps PostScript vector files created by Matlab R2016b

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
LICENSE
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

dchristle/matlab-epsclean

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fixing Matlab Vector Graphics Output

Clean/Repair .eps PostScript vector graphic files created by Matlab R2016b.

  • Paths are grouped together according to their properties
  • White line artifacts are fixed

Related

Example

Here is an example of what the .eps file looks before and after fixing it:

%%% Matlab Code
z = peaks;
contourf(z);
print(gcf,'-depsc','-painters','out.eps');
epsclean('out.eps'); % cleans and overwrites the input file

Before and After Layer count in Adobe Illustrator: 789 (before) vs. 30 (after)

Another Example

%%% Matlab Code
[X,Y,Z] = peaks(100);
[~,ch] = contourf(X,Y,Z);
ch.LineStyle = 'none';
ch.LevelStep = ch.LevelStep/10;
colormap('hot')
saveas(gcf, 'out.eps', 'epsc');
epsclean('out.eps'); % cleans and overwrites the input file

Before and After Layer count in Adobe Illustrator: 11,775 (before) vs. 76 (after)

About

Clean/Repair .eps PostScript vector files created by Matlab R2016b

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
LICENSE
GPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 100.0%