Question

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

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top