Fix 2542

This PR fixes #2542 by first adding the capstyle and joinstyle properties to `matplotlib.patches.Patch` and setting the default capstyle of the axes spines to 'projecting'.