Help with Tick mark labels
Mostrar comentarios más antiguos
Please help me with changing tick mark labels
struktura.jmeno = 'data';
struktura.data = [0.0231 0.0197 0.0260;
0.0653 0.0300 0.0330;
0.3030 0.2320 0.2700;
0.2120 0.1370 0.1650];
struktura.popis = {'Šroub','Faston','Konektor1','Konektor2'};
struktura;
bar3(struktura.data, 'grouped')
h = gca;
h.XTickLabel = struktura.popis;
And error is:
Warning: Struct field assignment overwrites a value with class "double". See MATLAB
R14SP2 Release Notes, Assigning Nonstructure Variables As Structures Displays Warning,
for details.
Thaks a lot in advance
Respuesta aceptada
Más respuestas (1)
JAMEL CHAKCHAK
el 26 de Mayo de 2016
I have the same problem :(
x = [1 2 3 4 5];
temp_high = [37 39 46 56 67];
w1 = 0.5;
bar(x,temp_high,w1,'FaceColor',[0.2 0.2 0.5])
temp_low = [22 24 32 41 50];
w2 = .25;
hold on
bar(x,temp_low,w2,'FaceColor',[0 0.7 0.7])
hold off
grid on
ylabel('Temperature (\circF)')
legend({'Average High','Average Low'},'Location','northwest')
ax = gca;
ax.XTick = [1 2 3 4 5];
ax.XTickLdabels = {'January','Februrary','March','April','May'};
ax.XTickLdabelRotation = 45;
Categorías
Más información sobre Axis Labels en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!