some time ago I posted a question how to change the y-axis in a histogram, it all worked out that time. Now I am working on a barplot, which looks like this:
import seaborn as sns
plt.figure(figsize=(10,10))
sns.barplot(x="Hour", hue="Day", y="Änderung", data=df).set_title(a)
plt.ylim(-1, 6)
plt.show()
which should give me a barplot with fixed y-axis in the range of (-1,6), but somehow i get the error: TypeError: 'tuple' object is not callable.
When I skip the code plt.ylim(-1,6)
the output looks like this:
What is my error?