Python Matplotlib
Matplotlib Line
Line plots
Matplotlib Line
You can use the linestyle parameter to style the line.
Line Styles
import matplotlib.pyplot as plt
x = [1, 2, 3, 4, 5]
y = [2, 4, 6, 8, 10]
plt.plot(x, y, linestyle='dashed')
plt.show()