For questions related to the formatting of the x-axis in a plot
Questions tagged [x-axis]
332 questions
-2
votes
1 answer
Strange x-axis in histogram for discrete variable in R
I have some discrete data that I'm trying to plot in a histogram in R. I'm using the built in hist() function, which works fine most of the times for the data I have. However, when it comes to a discrete variable it looks somewhat strange…

castarha
- 1
- 2
-4
votes
1 answer
How can I set the range of the x-axis and y-axis?
By using:
plt.xlim(0, 150)
I'm basically setting the interval of the x-axis from 0 to 150. It's fine to me but I need to visualize also the value of "90", which is not done by Python since it gives my a point every 20 (0-20-40-60-80-100-120-140).…

Ricter
- 93
- 1