Skip to content
New issue

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

I have issue with the first tutorial #1

Closed
billchenxi opened this issue Jan 2, 2018 · 0 comments
Closed

I have issue with the first tutorial #1

billchenxi opened this issue Jan 2, 2018 · 0 comments

Comments

@billchenxi
Copy link

The problem is from this: sep_color= (yn+1)/2.0; line, since it return's a array of list of list. And the pl.scatter() cannot accept array of list as parameter.

I unlisted the sep_color.

# Computing the colors for the points
from itertools import chain
sep_color = (yn+1)/2.0;
sep_color = list(chain(*sep_color))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants