why in xticklabel not all x-axis label appear?

8 vues (au cours des 30 derniers jours)
Mohammad Al Nagdawi
Mohammad Al Nagdawi le 16 Déc 2017
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')

Réponse acceptée

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

Plus de réponses (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by