Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Fixes #9148: Use tuples for color specification #9149
This PR fixes the issue specified in #9148.
In the Matplotlib 'Specifying Colors' section, an array is not 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 the arrays to tuples for the matplotlib color specification.
Jun 18, 2017
5 checks passed
Yes. Ideally, you would say "Fixes #9148" in the pull request description so github can close the issue automatically.…
On 19 June 2017 at 22:28, Nate Guerin ***@***.***> wrote: The same issue could affect other examples--I can take a look. Should I close issue #9148 <#9148> now that you've merged to master? — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#9149 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAEz6w0xBvkQPdu8yWUXJ-mMjeTK9vLoks5sFmlUgaJpZM4N9Woa> .