I have drawn a countplot as follows:
ax, fig = plt.subplots()
sns.countplot(user_id_count[:100])
(array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40]), )
But I want to change the xticks to only show 10, 20, 30, 40
these 4 number, so I checked the documentation and recode it as follows:
ax, fig = plt.subplots()
sns.countplot(user_id_count[:100])
plt.xticks(range(10, 41, 10))
But the xticks isn't what I want.
I have searched the relevant questions but I didn't get what I want exactly.
So if not mind could anyone help me?