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

ValueError: Can only use slices with Cycler.__getitem__ #2

Open
Tagar opened this issue May 10, 2016 · 1 comment
Open

ValueError: Can only use slices with Cycler.__getitem__ #2

Tagar opened this issue May 10, 2016 · 1 comment

Comments

@Tagar
Copy link

Tagar commented May 10, 2016

on this cell

X, y = make_regression( n_samples=30, n_features=1, n_informative=1, random_state=0, noise=75) 
X = X + 5
y = y + 300

def plot():
    fig, ax = plt.subplots()
    ax.scatter(X[:,0], y, s=100, alpha=0.75, c=colors[0])
    ax.set_xlabel('X')
    ax.set_ylabel('y')

plot()

of the 01_supervised.ipynb notebook getting following error:


ValueError Traceback (most recent call last)
in ()
9 ax.set_ylabel('y')
10
---> 11 plot()

in plot()
5 def plot():
6 fig, ax = plt.subplots()
----> 7 ax.scatter(X[:,0], y, s=100, alpha=0.75, c=colors[0])
8 ax.set_xlabel('X')
9 ax.set_ylabel('y')

/opt/cloudera/parcels/Anaconda/lib/python2.7/site-packages/cycler.py in getitem(self, key)
221 for k, v in six.iteritems(trans)))
222 else:
--> 223 raise ValueError("Can only use slices with Cycler.getitem")
224
225 def iter(self):

ValueError: Can only use slices with Cycler.getitem

@Tagar
Copy link
Author

Tagar commented May 10, 2016

I get this error in a lot (all?) of other plot()s

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

1 participant