フィルターのクリア

Selecting plot for drawing text

1 回表示 (過去 30 日間)
Jan
Jan 2011 年 7 月 12 日
I have two figures. If I would like to plot something in each plot, I may write with handles:
x = figure;
y = figure;
plot(gca(x), 1, 1);
plot(gca(y), 1, 1);
I would like to accomplish the same thing using the text and line commands. Is there a way to do this? Text and line don't allow axis handles to be passed in as arguments. Thanks in advance.

採用された回答

Walter Roberson
Walter Roberson 2011 年 7 月 12 日
Use the 'Parent' name-value pair
line(1,1,'Parent',gca(x))

その他の回答 (1 件)

Ping
Ping 2011 年 7 月 12 日
I think you can use figure(1), figure(2) to create figure and switch the current figure.

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by