Note
Go to the endto download the full example code.
CapStyle#
Thematplotlib._enums.CapStyle controls how Matplotlib draws the twoendpoints (caps) of an unclosed line. For more details, see theCapStyle docs.
importmatplotlib.pyplotaspltfrommatplotlib._enumsimportCapStyleCapStyle.demo()plt.show()

Tags:purpose: reference