How to use uisetfont?

2 ビュー (過去 30 日間)
John Doe
John Doe 2020 年 7 月 6 日
コメント済み: John Doe 2020 年 7 月 7 日
Hello everyone.
How can I use uisetfont command to place texts on a image loaded on a GUIDE axes? How to pass the handle?
Thanks!
  2 件のコメント
Geoff Hayes
Geoff Hayes 2020 年 7 月 6 日
John - are you passing a handle to the text object that you wish to open the font selection dialog box for? Or are you trying to use uisetfont to write text on the axes? (Which I don't think is the purpose of this function.) Perhaps you should be using text instead.
John Doe
John Doe 2020 年 7 月 7 日
Hello Geoff.
Actually I am trying to write on my image loaded on the axes. The reason I picked uisetfont is to give the user flexibility to choose font type, font size and font style which appears in a box for uisetfont. That's what I am trying to do. But somehow, whenever I am using the function, the texts keep moving away, meaning it's not being written on top of the picture.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop uifigure-Based Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by