getframe didn't capture my axes properly

조회 수: 14 (최근 30일)
Osama Alkurdi
Osama Alkurdi 2021년 7월 5일
댓글: Aaron Schultz 2024년 10월 11일
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)
but when I combined these frames in one single video file using VideoWriter this is what I get !
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
Aaron Schultz
Aaron Schultz 2024년 10월 11일
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.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Animation에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by