By default when I call matplotlib legend
the output is:
But in my case, I want the text to have the color of the line and I want to remove the line of the legend.
Desired outcome:
How can I do this?
Partial sucess
My searches only allowed me to get the text with the correct colors
and puting those lines transparent
But there is still space on the legend box.
Is there a way to make this?