Info
This question is closed. Reopen it to edit or answer.
Categories label is not fit in Matlab GUI
2 views (last 30 days)
Show older comments
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/192562/image.jpeg)
0 Comments
Answers (0)
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!