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

101 次查看(过去 30 天)
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?
  4 个评论
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')
Ludovico
Ludovico 2025-11-26,21:10
I have the same issue with 2025b. You have to create a figure with the figure command. ... talk about an upgrade

请先登录,再进行评论。

采纳的回答

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