How to clear figures in Live Editor in 2020b?
57 次查看(过去 30 天)
显示 更早的评论
I just update to 2020b and notice there are some differences in the new release. First, "Run section" and "Section break" buttons are exchanged. I guess this is due to the usage of "Run section" is more frequenctly than the usage of "Section break". However, this is not compactible to classic editor. "Run section" in classic editor has identical position as "Section break" in live editor, which results in some inconvineince. Second, I cannot clear figures with "Clear all output". I would like to clear all figures and plot new figures in new execution, however, the old figures cannot be removed. No matter of what I do, they are still there. "Clear all output" does work in 2020a. I don't know why it doesn't work in 2020b.
7 个评论
Nitin Kapgate
2020-10-9
编辑:Nitin Kapgate
2020-10-9
Hi Ryan, can you share the representative code which is causing this issue so that I can reproduce the same issue on my side?
回答(1 个)
Michael Ramseier
2020-10-6
I found a little work around:
When you put clf (clear current figure - https://ch.mathworks.com/help/matlab/ref/clf.html) before the plot command it works. But in my opinion that's not the way the live editor should work.
4 个评论
Nathaniel H Werner
2022-6-17
This is a consistent "bug"/issue that has been described for the live editor since near it's inception and has not been addressed.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!