I have a barplot in searborn in which I want to set the width of the bars. I thought this would be as easy as anything in seaborn, but it apparently isn't:
plt.figure(figsize=(20,10))
plt.xticks(rotation=45)
sns.barplot(
x="date",
y="nr_events",
hue='weekday',
data=df_count
)
Now, this gives me a bar plot showing a number of events per day, colored by weekday. But if I add width=1
in the arguments, an error is returned:
TypeError: bar() got multiple values for argument 'width'
How is this supposed to work in seaborn?