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

Problem with plt.boxplot(X_train, manage_xticks= False) #133

Open
Hypertyz opened this issue Apr 6, 2020 · 3 comments
Open

Problem with plt.boxplot(X_train, manage_xticks= False) #133

Hypertyz opened this issue Apr 6, 2020 · 3 comments
Labels

Comments

@Hypertyz
Copy link

Hypertyz commented Apr 6, 2020

TypeError
Traceback (most recent call last)

<ipython-input-96-564aeedf8d76> in <module>
----> 1 plt.boxplot(X_train, manage_xticks= False)
2 plt.yscale("symlog")
3 plt.xlabel("Feature index")
4 plt.ylabel("Feature magnitude")

TypeError: boxplot() got an unexpected keyword argument 'manage_xticks'

@SuperKogito
Copy link

Please provide a description to your code!
The error is clear; from https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.boxplot.html, you can see that boxplot() has no argument manage_xticks but rather manage_ticks.

@Hypertyz Hypertyz changed the title Problem with plt.boxplot(X_train, manage_ticks= False) Problem with plt.boxplot(X_train, manage_xticks= False) Apr 6, 2020
@Hypertyz
Copy link
Author

Hypertyz commented Apr 6, 2020

Thanks! That was the problem. I was just copying the code directly from the book tho and the author wrote manage_xticks instead of manage_ticks

@Hypertyz Hypertyz closed this as completed Apr 6, 2020
@amueller
Copy link
Owner

amueller commented Apr 6, 2020

That must have been a change in the matplotlib API at some point. I'll keep it open as it needs to be fixed in the book.

@amueller amueller reopened this Apr 6, 2020
@amueller amueller added the bug label Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants