Commit bdfd838
Use tuples for color specification (scikit-learn#9149)
In the Matplotlib 'Specifying Colors' section, neither list nor array is a valid color specification type. When this example is run using Python 3.5, and matplotlib 2.0.2 (latest), it errors with the message:
"ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()"
This change preserves the semantics of the example while allowing it to successfully run by converting to tuples for the matplotlib color specification.1 parent 508e2f7 commit bdfd838
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
0 commit comments