Closed. This question needs
CodePudding user response:
"Curving" a line is a bit vague. The best way would probably be to change the equation of the line you're plotting, but to keep points A and B at the ends.
However, a better solution might be to simply change the opacity of the lines that you are plotting so that you can see when they overlap. Use matplotlib's alpha parameter to do this:
x = [1, 2, 3]
y = [1, 2, 3]
plt.plot(x, y, "blue", linewidth=5, alpha=0.3)