Commit 9bb047d
Update for checking whether colors have an alpha channel (matplotlib#27327)
* Update _has_alpha_channel
* Update lib/matplotlib/colors.py
Co-authored-by: Oscar Gustafsson <[email protected]>
* Clarify comment explanation
* Remove unnecessary check about is_color_like
* update docstring for undefined case
* Deprecate unused method
* Remove unnecessary method
* Flake formatting update
Co-authored-by: Tim Hoffmann <[email protected]>
* Don't specify what an undefined result does
Co-authored-by: Tim Hoffmann <[email protected]>
* Recursive check which handles hex colors too
Co-authored-by: Ruth Comer <[email protected]>
* Whitespace
* Remove is_color_like check and explain
Co-authored-by: Tim Hoffmann <[email protected]>
* Don't discuss undefined results
Co-authored-by: Tim Hoffmann <[email protected]>
* Remove test of undefined result
Co-authored-by: Tim Hoffmann <[email protected]>
* Spelling error
Co-authored-by: Tim Hoffmann <[email protected]>
* improved grammar in comment
---------
Co-authored-by: Oscar Gustafsson <[email protected]>
Co-authored-by: Tim Hoffmann <[email protected]>
Co-authored-by: Ruth Comer <[email protected]>1 parent cb2d928 commit 9bb047d
2 files changed
+37
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
239 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
240 | 266 | | |
241 | 267 | | |
242 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1191 | 1191 | | |
1192 | 1192 | | |
1193 | 1193 | | |
| 1194 | + | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
1194 | 1198 | | |
1195 | 1199 | | |
1196 | 1200 | | |
1197 | 1201 | | |
| 1202 | + | |
| 1203 | + | |
| 1204 | + | |
| 1205 | + | |
1198 | 1206 | | |
1199 | 1207 | | |
1200 | 1208 | | |
| |||
0 commit comments