The `if linewidth <= 1` was necessary because the coordinate systems (pixel/point) were all muddled up. Now that it has been clarified, `linewidth=1` works transparently!