why in xticklabel not all x-axis label appear?

3 views (last 30 days)
figure;
bar(sum(SM_MI)/length(SM_MI),'FaceColor', [0 0 0.6]);
hold on
bar(2,sum(SM_JD)/length(SM_JD),'FaceColor', [0 .6 .6]);
bar(3,sum(SM_JD_seg)/length(SM_MI),'y');
set(gca,'xticklabel',{'MI','J-div','j-div seg'});
barvalues(gca,'%.2f');
ylabel('Success rate')

Accepted Answer

Mohammad Al Nagdawi
Mohammad Al Nagdawi on 17 Dec 2017
I find the answer:
set(gca,'XTick',[1,2,3],'xticklabel',{'MI','J-div','j-div seg'});
with help of Star Strider

More Answers (0)

Categories

Find more on Graphics Object Programming in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!