MATLAB: Do lines look blurry with linewidth 1 in R2017a

plot

I am using R2017a and when I plot lines with linewidth of 1, they appear blurry or pixelated, as in the screenshot below. How can I fix this so the lines look crisp? I suspect it is not Matlab but rather some operating system setting (Windows 10), but any help would be appreciated.

Best Answer

You might have to switch to 'opengl' hardware mode for graphics smoothing functionality. To do so, you can run the following code in MATLAB command window:
opengl hardware
Further, you can use the following settings to turn on line smoothing (if disabled earlier) in MATLAB:
set(0,'DefaultLineLineSmoothing','on');
set(0,'DefaultPatchLineSmoothing','on');
opengl('OpenGLLineSmoothingBug',1);
Related Question