getframe didn't capture my axes properly
30 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
why getframe function makes a strange behaves when I used it in my GUI ?
I call it to capture the plotted animation on my axes in the following GUI:
getframe(handles.myAxes)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/674953/image.png)
but when I combined these frames in one single video file using VideoWriter this is what I get !
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/674958/image.png)
you can notice that getframe doesn't capture my entire axes but a portion from it plus some area from the container panel, how to fix this issue ?
1 Commento
Aaron
il 11 Ott 2024
I beleive there is a bug with this. I am on 2024a OS X, and had a similar problem. For whatever reason moving the figure window around the screen after it's create seemed to fix the problem. After giving it a wiggle getframe started behaving as expected.
Risposte (1)
Samayochita
il 13 Feb 2025 alle 9:37
Hi Osama Alkurdi,
I faced the same issue in MATLAB R2024a, but I notice that the issue is fixed in R2024b.
Hope this helps!
0 Commenti
Vedere anche
Categorie
Scopri di più su Animation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!