Change the spacing of dashes in a dashed line in Matplotlib?

Change the spacing of dashes in a dashed line in Matplotlib?

More to explore

Based on this image's title: “Change the spacing of dashes in a dashed line in Matplotlib?