Delete plot from axes
5 次查看(过去 30 天)
显示 更早的评论
I have an application in which there are many charts.
One function draws the graphs and with another function I would like to delete these graphs. For example, in one graph I have such a drawing :
plot(app.UIAxes_5,app.AxeX,app.AxeY,'MarkerSize', 20)
Where app.AxeX,app.AxeY are multiple points loaded from a file.
Is it possible to delete it knowing only the data app.AxeX,app.AxeY, ?
0 个评论
回答(1 个)
DGM
2022-10-26
If you have a handle to the plot object
ph = plot(app.UIAxes_5,app.AxeX,app.AxeY,'MarkerSize', 20);
then you should be able to delete it
delete(ph);
So all you need to know is the handle. Either keep track of it somewhere, or you could find it as a descendant of UIAxes_5.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Properties 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!