Home > Back-end >  Python pandas dataframe's plot (Closed)
Python pandas dataframe's plot (Closed)

Time:04-18

i've finishing a plot from a .csv and looks like this: My plot

I am hoping to see like this:

Finished plot

I've got 1 problems

1: How do i rename the x-axis to each set? (I've tried to rename my original data but I failed)

CodePudding user response:


Use `xticks`

plt.xticks((0, 1, 2, 3), ('Problem 1','Problem 2','Problem 3','Problem 4'))
  • Related