Commit 2cdcc03
committed
Fix validation of Line2D color.
We don't actually support color="auto" (we only support mfc="auto" and
mec="auto", which mean "use the main color") -- with the sole exception
of axisartist Ticks, which is a subclass that has special handling for
"auto".
This can easily be tested using `plt.plot([1, 2], c="auto")` which
crashes.1 parent 3efd447 commit 2cdcc03
2 files changed
Lines changed: 11 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1027 | 1027 | | |
1028 | 1028 | | |
1029 | 1029 | | |
1030 | | - | |
1031 | | - | |
| 1030 | + | |
1032 | 1031 | | |
1033 | 1032 | | |
1034 | 1033 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
| 80 | + | |
80 | 81 | | |
81 | | - | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
137 | 145 | | |
138 | 146 | | |
139 | 147 | | |
| |||
0 commit comments