MATLAB: How to disable anti-aliasing in the new graphics system in MATLAB R2014b

MATLAB

I want to get rid of the anti-aliasing in my plots using the new graphics system, how can I do that?

Best Answer

You can get rid of the anti-aliasing by setting the axes property "fontsmoothing" and the figure property "graphicssmoothing" like the following:
set(gca,'fontsmoothing','off')
set(gcf,'graphicssmoothing','off')
For details, please refer the following documentation:
- Major Graphics Changes in R2014b