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

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 Kommentare

Matt J
Matt J am 1 Jul. 2025
Bearbeitet: Matt J am 1 Jul. 2025
It's just you, my friend. I, at least, am not seeing that behavior. Maybe your startup.m file is setting up figure visibility defaults in some weird way...?
What happens if you issue drawnow after the plot() instruction?
Hakan Caldag
Hakan Caldag am 1 Jul. 2025
Bearbeitet: Hakan Caldag am 1 Jul. 2025
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 am 1 Jul. 2025
Bearbeitet: Matt J am 1 Jul. 2025
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')
I have the same issue with 2025b. You have to create a figure with the figure command. ... talk about an upgrade

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Hakan Caldag
Hakan Caldag am 1 Jul. 2025

0 Stimmen

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!

Weitere Antworten (0)

Kategorien

Mehr zu Creating, Deleting, and Querying Graphics Objects finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2025a

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by