How Assign a Plot to a Specific Axes?
49 ビュー (過去 30 日間)
古いコメントを表示
I have drawn two Axes in GUIDE.
How can I assign each of my plots to one of them?
when I now run it, MATLAB just put both plots on one another.
0 件のコメント
採用された回答
Jan
2017 年 2 月 21 日
Use the handles of the axes objects:
plot(1:10, rand(1, 10), 'Parent', handles.axes1)
plot(1:10, -rand(1, 10), 'Parent', handles.axes2)
This assumes, that your axes have the names "axes1" and "axes2" (I don't know if this is the standard in GUIDE) and that they are stored in the handles struct, which should be available in your callback.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!