We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import numpy as np import matplotlib.pyplot as plt edgecolors = np.r_[['b'] * 5, ['r'] * 5] x, y = np.random.randn(10), np.random.randn(10) plt.scatter(x, y, edgecolors=edgecolors, c='none')
raises
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
But changing the call to plt.scatter() to
plt.scatter()
plt.scatter(x, y, edgecolors=edgecolors.tolist(), c='none')
Works as expected. This error is occurring inside a try, except block so it looks it should be an easy fix.
try
except
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
Ok, I will close this, then. Thanks.
No branches or pull requests
raises
But changing the call to
plt.scatter()
toWorks as expected. This error is occurring inside a
try
,except
block so it looks it should be an easy fix.The text was updated successfully, but these errors were encountered: