MATLAB: Font becomes pixelized in some eps figures

epscfontprint

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 200×192, and the other one is smaller, 100×192. 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?

Best Answer

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