Histogram, change x/y-axis number jump marks
2 views (last 30 days)
Show older comments
I'm trying to change the marks on the x and y axis. The marks in the picture is 5 for x, and 0,1 in y. Because the y-axis is 0,1 the max out-zoom makes the bars hard to read in the picture (they are 1), I need to move it to see that it goes to 1 in hight (I can't use max/min as I don't know the values (I guess I could find the max value in an matrix and then put that as max value, but there must be an easier way).
What I want is to have x axis every 1 mark , and y mark every 1 or 0,5. And I didn't find anything in the help files.
0 Comments
Accepted Answer
Thorsten
on 25 Apr 2015
axis([0 40 0 1.1])
set(gca, 'XTick', 1:40);
set(gca, 'YTick', 0:0.5:1);
0 Comments
More Answers (0)
See Also
Categories
Find more on Histograms in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!