Making Room for a Text Box on a Figure

6 ビュー (過去 30 日間)
DH
DH 2019 年 3 月 15 日
回答済み: DH 2019 年 3 月 15 日
I am plotting data, and adding a textbox using the "text" function. However, the text box doesn't fit well on the plot. Is there a way to move the plot downward (or upward) in the figure, to make room for the text box?
  1 件のコメント
Geoff Hayes
Geoff Hayes 2019 年 3 月 15 日
編集済み: Geoff Hayes 2019 年 3 月 15 日
DH - can't you just set the position of the text box so that it is placed at an appropriate location? How are you placing it now? (What is the code that you are using?)

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

回答 (1 件)

DH
DH 2019 年 3 月 15 日
I am using a figure with four subplots, and the subplots take up most of the figure. I place the text box in the upper right corner:
% textbox is defined above with the notations for the figure.
lm = axis();
text(lm(1), lm(4), txtbox, 'FontSize', 12, 'FontWeight', 'bold');
The textbox is rather large, so it covers part of the plots. What I would like to do is make room at the top or bottom of the figure so the text box could be above or below the plots. The effect would be similar to pasting the plot(s) into Microsoft Word, and putting notes below the plot(s).

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by