필터 지우기
필터 지우기

Regarding plot display issue

조회 수: 2 (최근 30일)
Onkar Khadke
Onkar Khadke 2020년 11월 13일
댓글: dpb 2020년 11월 14일
I am unable to view the plot after giving plot command. The figure window looks blank. I am attaching a snap of how it looks. Please help me with this.
  댓글 수: 8
Onkar Khadke
Onkar Khadke 2020년 11월 14일
Sure, I will make it a habit.
dpb
dpb 2020년 11월 14일
What can happen to cause the symptom you saw before is, that without code between the time you created the figure you intended to plot into you may have looked at another figure manually. That user intervention would have changed the current axes from the figure so that the implicit handle in a plot() command without an explicit reference would use gca -- the one then being pointed at, not the figure that was created.
That's just one easy to visualize way that focus can change sorta' unexpectedly -- there are many other ways besides...hence the recommendation to always be safe when coding.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

태그

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by