Info
此问题已关闭。 请重新打开它进行编辑或回答。
Categories label is not fit in Matlab GUI
1 次查看(过去 30 天)
显示 更早的评论
I have design a GUI which cannot show categories in barh? Can anyone guide?
c = {'Triangle','Square','Round'};
triangle=66;
squre=23;
round=11;
total=triangle+squre+round;
percentage = [triangle/total squre/total round/total].*100;
set(handles.axes1,'Visible','on');
cla(handles.axes1,'reset');
axes(handles.axes1)
barh(percentage)
set(gca,'yticklabel',{c{:}})
axis off
Here is the output
0 个评论
回答(0 个)
此问题已关闭。
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!