Selecting plot for drawing text
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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.
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 12 Jul. 2011
Use the 'Parent' name-value pair
line(1,1,'Parent',gca(x))
0 Kommentare
Weitere Antworten (1)
Ping
am 12 Jul. 2011
I think you can use figure(1), figure(2) to create figure and switch the current figure.
0 Kommentare
Siehe auch
Kategorien
Mehr zu Annotations finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!