MATLAB: Puzzling plot color behaviour

colorfigureMATLABplot

I have two curves stored in the workspace. I use exactly the same commands to plot them:
newred = [0.8500 0.3250 0.0980];
subplot(1,2,1)
plot(gridd(1:ind), likk(1:ind),'color', newred, 'linewidth', 3)
subplot(1,2,2)
plot(x, approx,'color', newred, 'linewidth', 3)
the result is the following (9.1.0.441655 (R2016b))
They look different. This also happen with any other color that I choose. There will be difference in color between the two and the second will have the tiny white spots on the line.
What am i missing here?

Best Answer

It appears to be caused by anti-aliasing.
set(gcf,'GraphicsSmoothing','off')
and the problem will go away (but the line will not be as smooth.)