Commit 8998cbc
committed
Add textcolor to legend based on labelcolor string
As raised by matplotlib#20577, setting `labelcolor` to any of the string options
did not work with a scatter plot as it is a PathCollection with possible
multiple color values. This commit fixes that. Now, if there is a
Colormap or a scatter plot with multiple values, then, the legend text
color is not changed, but otherwise, the text color is changed to the
color of the scatter markers.1 parent 884397a commit 8998cbc
1 file changed
+15
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
565 | 570 | | |
566 | 571 | | |
567 | 572 | | |
568 | | - | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
569 | 583 | | |
570 | 584 | | |
571 | 585 | | |
| |||
0 commit comments