MATLAB: blurry titles

2019-06-14 02:14发布

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);

enter image description here enter image description here

1条回答
来,给爷笑一个
2楼-- · 2019-06-14 02:53

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:

enter image description here

The command get(gcf, 'renderer') returns ans = zbuffer. Afterwards, I input set(gcf, 'renderer', 'painters') which immediately makes the result be:

enter image description here

For reference, this is Matlab r2011b.

查看更多
登录 后发表回答