why in xticklabel not all x-axis label appear?

8 次查看(过去 30 天)
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')

采纳的回答

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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by