Bar plot axes size using text in X axis
10 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Abhinav Karthik Sridhar
am 18 Okt. 2019
Kommentiert: Sulaymon Eshkabilov
am 21 Okt. 2019
So, I tried plotting a bar plot for an array with 25 items. I linked it with a unique string on the X-axis, but when I plot the Bar plot - I cannot see all the unique values eventhough I tried rotating the axis to 90 deg, reduced size of gca. Attached my code!
Basically, I want a unique value seen in my x axis corresponding to the value in Y axis (display of all X axis values).
How can I achieve this?
0 Kommentare
Akzeptierte Antwort
Sulaymon Eshkabilov
am 19 Okt. 2019
Bearbeitet: Sulaymon Eshkabilov
am 19 Okt. 2019
Hi
Here is the solution for x axis:
xticks(1:numel(neworder(:,1)))
F = neworder(:,1);set(gca,'FontSize',4);
xtickangle(90);
xticklabels(F);
Good luck.
2 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!