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

Pass 'width' value to barplot #1878

Closed
libmelo opened this issue Nov 25, 2019 · 1 comment
Closed

Pass 'width' value to barplot #1878

libmelo opened this issue Nov 25, 2019 · 1 comment

Comments

@libmelo
Copy link

libmelo commented Nov 25, 2019

Recently, when I plotted a bar graph, I passed a 'width' to' barplot' function.
Such as sns.barplot(x='len', y="cnt", data=df, color="#6495ED", width=1)
But it told me I had passed the parameter. Then I found the class '_CategoricalPlotter' in 'categorical.py' assigned a 'width=.8' which was used by '_BarPlotter' of 'barplot'.
I think the 'barplot' could allow us to adjust the width of bar, even though we might not use it in general.
I used a 'if' statement to achieve my goal, but it seems not elegant. So I raised this issue.
seaborn 0.9.0 matplotlib 3.1.1

@mwaskom
Copy link
Owner

mwaskom commented Nov 26, 2019

Yes, sorry — if you want to be able to customize everything you should use matplotlib directly.

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