Changing the tick Label in app designer.

66 ビュー (過去 30 日間)
Franck paulin Ludovig pehn Mayo
Franck paulin Ludovig pehn Mayo 2021 年 7 月 8 日
回答済み: Peter Valent 2021 年 7 月 8 日
hello , i have been struggling changing the tick labels in app designer. By default, it gives small values. I have changed it manually but it is not working as expected . I would like to have on both axis (x and y) 1 to 10.
  1 件のコメント
dpb
dpb 2021 年 7 月 8 日
Unless/until you set xlim and ylim or add data, the axes ranges default to 0-1 as you see when just create an axes. If you don't set the limits manually, then they will continue to update automagically to cover the range of the data.
So, if you know you want some range, tell it so
hAx=axes;
xlim([LO_X HI_X]); ylim([LO_Y HI_Y]);

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

回答 (1 件)

Peter Valent
Peter Valent 2021 年 7 月 8 日
Hello, try to use this code:
app.UIAxes.XTick = 0:0.1:1;
app.UIAxes.YTick = 0:0.1:1;

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by