By default, the matplotlib chart can place lines very inaccurately.
For example, see the placement of the left endpoint in the attached graph. There is at least a whole pixel of air that should not be. In fact, I think the center of the line is off by 2 pixels.
How to get matplotlib for accurate drawing ? I don't mind if there is any kind of performance hit.
Inaccurately displayed line in matplotlib chart:

Inaccurate line displayed in matplotlib chart - enlarged detail:

This was done with the default settings in Ubuntu 16.04 (Python 3), Jupyter laptop (similar result from the command line).
Mathematica, by comparison, does subpixel rendering directly and by default:
Why can't we?