This example uses a scatter plot, but the same issue can arise with line plots if one uses a numpy vector as a color (e.g., [0.0, 1.0, 0.0, 1.0]). The error produced ...
Is there a way to change a legend's background color using styles (or equivalently, matplotlib rcParams)? Say I set the axes background colors to grey, and I want my legend to pop out a bit more. I ...