how to change the size of the fonts inside the bar graph
9 ビュー (過去 30 日間)
古いコメントを表示
Hi there,
I am using the bar code to draw a bar graph. So how to change the size of the fonts inside the graph, as shown in the attachment?
Many thanks!
Cheers
0 件のコメント
採用された回答
Chuguang Pan
2025 年 5 月 13 日
編集済み: Chuguang Pan
2025 年 5 月 13 日
x = [1 2 3];
vals = [2 3 6; 11 23 26];
b = bar(x,vals);
xtips1 = b(1).XEndPoints;
ytips1 = b(1).YEndPoints;
labels1 = string(b(1).YData);
text(xtips1,ytips1,labels1,'HorizontalAlignment','center',...
'VerticalAlignment','bottom','FontSize',15)
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Discrete Data Plots についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
