so basically I have created the bins and the have the means of each bin, having these two columns in a dataframe. Now I am plotting these two columns, but I want the exact number as x lable instead of bins. I am considering renaming each bin by its mid-point. please look at the pictures. The first one is my current plot and the second is the plot I want to acheive.
my current plot:
what I want to have:
my data frame is like this:




To reproduce the style of the plot image you included, you can do:
Edit
To make the specific changes to the range use the
limitsargument inscale_x_continuousandscale_y_continuousyou can do:Data used (obtained from image in question using OCR)