CapStyle

The matplotlib._enums.CapStyle controls how Matplotlib draws the corners where two different line segments meet. For more details, see the CapStyle docs.

Cap style
import matplotlib.pyplot as plt
from matplotlib._enums import CapStyle

CapStyle.demo()
plt.show()

Keywords: matplotlib code example, codex, python plot, pyplot Gallery generated by Sphinx-Gallery