Why are there saw-teeth on my Matlab eps prints?

Click For Summary
SUMMARY

The discussion addresses the issue of jagged lines appearing in EPS prints generated from MATLAB figures, specifically when using the command print -depsc './test.eps'; or the figure menu. Users report that this problem may be more prevalent in older versions of MATLAB on Windows, while newer versions, such as MATLAB 2012a, may not exhibit this issue. A suggestion is made to try generating EPS files on a Linux system, as one user successfully uses MATLAB Release 2010b on Linux without encountering the saw-tooth effect.

PREREQUISITES
  • Familiarity with MATLAB figure formats (.fig and .eps)
  • Understanding of the MATLAB print function and its options
  • Basic knowledge of operating systems, specifically Windows and Linux
  • Experience with MATLAB versions, particularly 2010b and 2012a
NEXT STEPS
  • Investigate the differences in EPS output between MATLAB versions 2010b and 2012a
  • Explore the MATLAB print function documentation for additional options and settings
  • Test EPS generation on a Linux system to compare results with Windows
  • Learn about vector graphics rendering issues in MATLAB
USEFUL FOR

MATLAB users, graphic designers, and researchers who require high-quality EPS outputs for publications or presentations, particularly those encountering rendering issues in their figures.

Angelos K
Messages
43
Reaction score
0
Dear all,

I generate some MATLAB figures that I want to print as eps. The figures look fine in the .fig format. When I open the eps, there is a problem. Wherever there is a vertical line (or part of function) the line shows tiny saw-teeth. I would like to attach I file but it seems one can't attach .eps here. Any idea?

The problem doesn't care whether I use
print -depsc './test.eps';
or the figure menu.

Cheers,
Angelos
 
Last edited:
Physics news on Phys.org
Hi

I remember that I had a similar problem. I am not sure but I thought that this problem only appears with an older Matlab in Windows. If you have the possibility to access Matlab in Linux try this. On the other hand I have the new Matlab 2012a under Windows. If you send me the .fig I can check what will happen when converting to eps
 
Thank you, unstable. I am using Linux. Release 2010b. How can I send you the .fig file?

Greetings,
Angelos
 
Actually, after clicking on "new reply" (left somewhere) not "quick reply" you should be able to upload / attach files.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
971
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 1 ·
Replies
1
Views
19K
Replies
12
Views
8K