MATLAB: blurry titles

人走茶凉 提交于 2019-12-08 14:02:18

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!