GUI graph with strings as axis
15 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
how can I make several strings the x-axis for a graph in a GUI
2 commentaires
Réponse acceptée
Adam Danz
le 10 Mai 2019
Modifié(e) : Adam Danz
le 10 Mai 2019
Here's a demo
ax = axes(); %Instead of this line, use the axis handle from your GUI handles
xTickVals = [2,4,6]; %<-- where you want the ticks
xlim([1,7]) %<-- make sure the ticks are within range
xTickLables = {'RO', 'BG', 'TR'}; %<-- your tick labels
set(ax, 'XTick', xTickVals, 'XTickLabels', xTickLables) % <-- set the ticks & labels
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Axis Labels dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!