Add ticks to uiimage in App Designer

1 回表示 (過去 30 日間)
Cedric Hauschopp
Cedric Hauschopp 2020 年 10 月 23 日
編集済み: Prabhanjan Mentla 2020 年 10 月 29 日
Hi guys,
I would like to display ticks to a uiimage in App Designer.
Normally I would do it like this:
f = figure;
set(f, 'Position', [50, 50, 500, 750]);
i = image(overlay2);
title('Overlay Image');
tx = xlabel('Distance [mm]');
ty = ylabel('Distance [mm]');
tx.FontSize = 8;
ty.FontSize = 8;
But I don't know how to use this command in App Designer.. Do I have to use UIAxes?

回答 (1 件)

Prabhanjan Mentla
Prabhanjan Mentla 2020 年 10 月 29 日
編集済み: Prabhanjan Mentla 2020 年 10 月 29 日
Hi,
uiimage have some default properties along with image properties and axes is not among them.
In this case, UIAxes may helpful to display ticks to an Image.
Hope this helps.

カテゴリ

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