I'm plotting more than 10,000 lines with the same colour on a single matplotlib plot. I use alpha=0.1 for transparency.
for i in range(len(x)):
plt.plt(x[i], y[i], color='b', alpha=0.1)
In the intersections between the lines, the colour becomes darker as the colours of the lines "add up".
How can I make the intersections the same colour of a single line?
(I prefer not to find the intersections as there are so many).
CodePudding user response:
You could create a lighter color in place of using alpha
for transparency. You can do that as explained in