Figure window not opening with just using plot() in 2025a

조회 수: 140 (최근 30일)
Hakan Caldag
Hakan Caldag 2025년 7월 1일
답변: Hakan Caldag 2025년 7월 1일
Hello everyone, I have a simple yet annoying problem. In previous versions of Matlab, if I wanted to see a plot, I could write plot(a,b) and it would automatically open a figure window and draw the plot. Now, in 2025a, I need to write figure() first and then write plot(a,b) to see the plot. Otherwise the figure is acting like its Visible property is set to 'off', yet the property seems to be 'on'. Any ideas why this might be happening? Is it like this "by design" now?
  댓글 수: 3
Hakan Caldag
Hakan Caldag 2025년 7월 1일
편집: Hakan Caldag 2025년 7월 1일
I am happy to hear that this is just me. drawnow does nothing unfortunately and I have nothing in my startup file to prevent figure visibility. The figure window does pop up when I write figure() so I don't think the issue is related with the visibility option.
Matt J
Matt J 2025년 7월 1일
편집: Matt J 2025년 7월 1일
Maybe the figure is opening, but for some reason it is positioned off the edge of the screen. What does the following give?
close all
h=plot(a,b);
h.Parent.Parent.Visible
h.Parent.Parent.Position
get(0, 'Screensize')

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

채택된 답변

Hakan Caldag
Hakan Caldag 2025년 7월 1일
Just as I was about to try this code, plotting just worked. I have no idea what the issue was but it seems that it is resolved for now. Thank you for your time!

추가 답변 (0개)

카테고리

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

태그

제품


릴리스

R2025a

Community Treasure Hunt

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

Start Hunting!

Translated by