I want to delete a certain plot, but the whole axis get deleted
Ältere Kommentare anzeigen
Hi,
I've made a bode plot of two systems using bodeplot and I gave them handles. Then I want to remove the first one, so I tried:
delete(handle1)
However, not only the plot gets deleted, but the whole axis. An empty figure window remains.
How do I fix this?
Thanks in advance.
PS This is my minimal working example:
bodes = figure; hold on
handle1 = bodeplot(sys1);
handle2 = bodeplot(sys2);
title({'blabla'},'Interpreter','latex')
legend({'bode1','bode2'},'Interpreter,'latex')
grid on
setoptions(handle2,'MagUnits','abs')
setoptions(handle2,'MagScale','log')
delete(handle1)
3 Kommentare
Peeyush
am 1 Jun. 2015
What is sys1 and sys2 here?
Iris
am 3 Jun. 2015
Vinod Sudheesh
am 8 Jun. 2015
Hi Iris,
Which version of MATLAB are you using?. I was able to reproduce this issue in MATLAB 8.3 (R2014a) and MATLAB 8.5 (R2015b).
Antworten (0)
Kategorien
Mehr zu Plot Customization finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!