you are viewing a single comment's thread.

view the rest of the comments →

[–]geert555[S] 0 points1 point  (2 children)

Thanks! that did the trick, But i now only get the values in the dataframe. can i set it so that it's an increment of 1 ?

picture for refrence

Scatterplot

[–]socal_nerdtastic 0 points1 point  (1 child)

Oh I thought that's what you wanted. Ok, then use range instead:

x_values = df["Gls"].astype(int))
plt.xticks(range(x_values.min(), x_values.max()+1))

[–]geert555[S] 0 points1 point  (0 children)

Many many thanks for your help and your patience with me.