App Designer duplicates Graphs
Show older comments
The App Designer makes like 50 copies of my graphs and pastes them on top of each other everytime I open the app for editing. I have to go through the trouble of deleting all of them every single time. This happened to me on 2017a, 2018a and 2018b versions.
1 Comment
Ijab Zhan
on 30 Jan 2019
Do you mean opening the app into App Designer? If that's the case, you may need to contact tech support with your app, and somebody could help to get your app reparied.
The fix to duplicated components in opening App Designer apps has been in R2019a, and will also be included in R2018b Updates 3.
Answers (1)
Cris LaPierre
on 18 Jan 2019
Would need to see your code that generates the plot to be certain, but I suspect you have hold on, and use the plot command every time to create your plot.
cla(ax)
A more elegant solution is to create the first plot in your startup function, and then use the handle to the plot to update the plotted data. See an explanation here.
2 Comments
Paranjay Deshpande
on 18 Jan 2019
Cris LaPierre
on 18 Jan 2019
Have you tried restarting your computer?
If after doing that you still get the same behavior, could you share your mlapp file? Attach it to your post.
Categories
Find more on Develop Apps Using App Designer in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!