I’m using seaborn to plot values of time spent on an activity in function of the trainig session. The problem that I have is that since I have two distinct groups I’ve set the x values to for example 0.75 for group 1 and 1.25 for group 2 for session 1. I’m trying to get the xticks on the values 1, 2, 3… but I can’t find a way to do it.
I’ve tried setting the xtick values to the numbers that go from 1 to 10 but that puts tick in the first 10 elements of my x values instead of the points 1 through 10 in the x axis:
plt.xticks(list(range(1,11)))
Cam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.