Labelling - axis and tick marks on axis - Star Wars GP

Screen Link:

My Code:
fig,ax=plt.subplots()
ax.boxplot(norm_reviews[“RT_user_norm”])
ax.set_ylim(0,5)
ax.set_xticklabels(‘Rotten Tomatoes’)
plt.show()

Replace this line with your code

What I expected to happen:
name of xtick should change to Rotten Tomatoes

What actually happened:
name of xtick should change to R instead

Replace this line with the output/error

what am i missing ?

hi @SanchitSinghal

Please follow Introducing guidelines for all technical questions in our Community to post your questions for the community to help you better.

Are you looking for marking each tick on the x-axis or labeling the x-axis?
The former does not make sense though, as each tick will take one character from the string provided. The string here will be treated as a list.

Code snippet:

ax.set_xticklabels("[Rotten Tomatoes]") # will label each tick as character from "[string]" 
ax.set_xlabel(["Rotten Tomatoes"]) # will label the x-axis. 

Plot output:

image