Skip to content

Script to fix artifacts in EPS files generated from Matlab contour plots

License

Notifications You must be signed in to change notification settings

Dev-iL/fix_matlab_eps

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fix_matlab_eps

A Python script to fix artifacts in EPS files generated from Matlab contour plots

These artifacts are white lines that have been present since Matlab 2014b

Example

Here is an example of what the EPS looks like before and after my script. The EPS was created by

z = peaks;
contourf(z);
print(gcf,'-depsc','-painters','out.eps');

Before and After

Disclaimer

I do not know anything about EPS files. I just looked at the difference between EPS files from Inkscape with and without the artifacts and tried to reproduce that using a Python script. If you have a file for which it doesn't work, please share it with me so I can try to reproduce things in a similar way.

This code was only tested with Inkscape 0.48.4 and Matlab 2015b on a small amount of countour plots.

About

Script to fix artifacts in EPS files generated from Matlab contour plots

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Python 85.7%
  • MATLAB 14.3%