SyntaxFix
Write A Post
Hire A Developer
Questions
Plain and simple:
plt.plot(x, y, 'r-', alpha=0.7)
(I know I add nothing new, but the straightforward answer should be visible).