I include a code snippet which colors underneath a sine curve. There is a ylabel with the latex interpreter turned on. Changing the number of patches (from N = 100 to N = 1000) seems to affect the resolution of the axis label. Does anybody know what's going on? Please see the images below for the good label and the messed up one:
http://img406.imageshack.us/img406/6758/screenshot20111109at101m.png http://img854.imageshack.us/img854/8816/screenshot20111109at101a.png
The code is
figure(1); clf(1);N = 100;x = linspace(0, 2*pi, N);f = sin(x);g = 0*f;verts = [x(:), f(:); x(:) g(:)];q = (1:N-1)';faces = [q, q+1, q+N+1, q+N];p = patch('Faces', faces, 'Vertices', verts, ... 'FaceVertexCData', [f(:); f(:)], ... 'FaceColor', 'interp', 'EdgeColor', 'none');ylabel(['$N = ' num2str(N) '$'], 'FontSize', 18, 'interpreter', 'latex');
Best Answer