Font becomes pixelized in some eps figures?

4 views (last 30 days)
Hi,
In short: Why does the font in some eps figures become crudely pixelized instead of nicely rounded off characters, and how can one fix it?
I have two matrices of data that I want to plot with pcolor and then save to eps files. One matrix is bigger, actually 200x192, and the other one is smaller, 100x192. Now I plot the two in separate windows, putting labels on the axes in fontsize 14, and print each to an epsc file. I use exactly the same matlab script for both, except the data are different size.
Now, in the eps file containing the smaller data set, the text on the axes appears nice as it should. In the file with the bigger data set, the text is now pixelized and ugly!
I insist that I used exactly the same script for making both.
What is the (cause and) resolution to this problem?
  1 Comment
Oleg Komarov
Oleg Komarov on 7 Sep 2011
If I open the .eps with ghostview the image is very low quality but when I texify it to pdf the image is as it should be.

Sign in to comment.

Accepted Answer

Bjorn Gustavsson
Bjorn Gustavsson on 7 Sep 2011
Somehow the print command decides which renderer to use based on something surely cunning - but the consequence is that when it selects to use 'zbuffer' or 'opengl' you get a bit-mapped eps-file. This you can avoid by explicitly telling print to use 'painters':
print -depsc2 -painters filename.eps
HTH
  4 Comments
Bjorn Gustavsson
Bjorn Gustavsson on 7 Sep 2011
@Anna:Good! ...And I thought matlab kind of selected renderer to keep the figures small at the price of quality...
Angelica Parente
Angelica Parente on 11 Jan 2018
This didn't work for me unfortunately, and I also can't "place" the .eps file in illustrator or embed it. I'm on MATLAB 2017b.

Sign in to comment.

More Answers (0)

Categories

Find more on Desktop in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!