how create graph in uitable in the app designer (using code)

hi,
i've this data:
app.GridLayout
app.TabGroupQ1
can i create graph (as pics) using code?

 採用された回答

Voss
Voss 2023 年 10 月 25 日

0 投票

You want to create an empty axes (with an xlabel, ylabel, and title) inside a specified tab?
ax = axes(tab); % tab is the tab you want the axes to be created in
xlabel(ax,'X')
ylabel(ax,'Y')
title(ax,'Title')

3 件のコメント

aldo
aldo 2023 年 10 月 26 日
編集済み: aldo 2023 年 10 月 26 日
how can i change position?
i do it:
ax.Position=[11 11.0000 1.5127e+03 831.7778]
but i dont' see graph (if i don't change position i see the graph)
Voss
Voss 2023 年 10 月 26 日
編集済み: Voss 2023 年 10 月 26 日
axes Units are 'normalized' by default. If you want to use pixel units, set the axes Units to 'pixels' before setting the Position, e.g., when the axes is created:
ax = axes(tab,'Units','pixels'); % tab is the tab you want the axes to be created in
ax.Position = [11 11 1513 832];
Of course you could set both the Units and Position when the axes is created (Units first still)
ax = axes(tab, ...
'Units','pixels', ...
'Position',[11 11 1513 832]);
Another option is to use a uiaxes instead of an axes. uiaxes' default Units is 'pixels'.
aldo
aldo 2023 年 10 月 26 日
good

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

質問済み:

2023 年 10 月 25 日

コメント済み:

2023 年 10 月 26 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by