本文介绍了MATLAB:标题模糊的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当绘制的稀疏矩阵的大小增加时,标题(如果由TeX排版)会异常模糊.这种影响的基础是什么,如何避免呢?

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?

示例:

spy(magic(2)); title('Text','interpreter','latex','FontSize',20);
spy(magic(200)); title('Text','interpreter','latex','FontSize',20);

推荐答案

与(实际上与该问题相同)

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

我得到:

命令get(gcf, 'renderer')返回ans = zbuffer.然后,输入set(gcf, 'renderer', 'painters'),立即使结果为:

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

作为参考,这是Matlab r2011b.

For reference, this is Matlab r2011b.

这篇关于MATLAB:标题模糊的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 23:14