问题
When the size of a plotted sparsity matrix is increased, the title (if typeset by TeX) is anomalously blurred. What is the basis of this effect and how can it be avoided?
Example:
spy(magic(2)); title('Text','interpreter','latex','FontSize',20);
spy(magic(200)); title('Text','interpreter','latex','FontSize',20);
回答1:
Related to (and actually the same issue as in) How to prevent LATEX-labels in MATLAB GUI to become blurry?
The solution applies. After inputting:
spy(magic(200)); title('Text','interpreter','latex','FontSize',20);
I get:
The command get(gcf, 'renderer')
returns ans = zbuffer
. Afterwards, I input set(gcf, 'renderer', 'painters')
which immediately makes the result be:
For reference, this is Matlab r2011b.
来源:https://stackoverflow.com/questions/9711228/matlab-blurry-titles