Info
この質問は閉じられています。 編集または回答するには再度開いてください。
Make the location of bar graph in axes 1??
1 回表示 (過去 30 日間)
古いコメントを表示
meanall=[meantheta,meanalpha,meanbeta];
color_map={'r','b','y'};
for i=1:3
bar(i, meanall(i),'facecolor',color_map{i});
hold on
end
hold off
this is my code in gui presenting the bar graph of meanall in different color. The problem is, my gui contains many axes and i want to locate this bar graph in axes 1. What should i add into my code?
0 件のコメント
回答 (1 件)
Geoff Hayes
2014 年 4 月 27 日
Hi Mahirah,
If you know the handle to the axes ( axes1_handle ) that you wish to add the bar graph to, you can do so as follows:
bar(axes1_handle,i,meanall(i),…);
Geoff
2 件のコメント
Geoff Hayes
2014 年 4 月 27 日
Try using the hold on command to keep all bar graphs displayed on the axes. Run help hold from the command line for details.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!