Why the figure is not apearing after using plot(x) command?
Afficher commentaires plus anciens
Hi,
after new instalation of MATLAB 2025b my program does not use function plot properly.
After command "plot(x)" MATLAB opens new window "Figures" as usual but there is no figure.
After this line program continues execution.
I could not find the explanation jet.
Thanks!
13 commentaires
Torsten
le 20 Avr 2026 à 10:34
What is x ?
Exactly.
Note that 'x' must be a vector with at least 2 elements, or be defined by a marker.
x = randn(2,1)
figure
plot(x)
grid
x = randn
figure
plot(x, 'gp', MarkerSize=15)
grid
.
And, continuing on
x = nan(2,1);
figure
plot(x)
grid
If the values in x are not finite, MATLAB plots nothing but doesn't say so, either...this feature is invaluable in creating special effects with handle graphics but may confuse in some cases as well.
Ilija
le 20 Avr 2026 à 14:32
Include the URL of this thread in your note to MathWorks so you don't have to repeat everything you wrote here.
Your code works correctly here --
x = [1, 2, 3]
y = [5, 15, 35]
plot(x,y)
It also works correctly in MATLAB Online.
.
Just to be sure, what does
which -all plot
whos plot
return? Any chance you have accidentally created an alias for the plot() function? Or, have another non-Mathworks-supplied toolset loaded that has a customized plot() routine getting called instead? Other vendors have been known to do such things that work for their specific case but break other stuff. Not likely in a new install, but...
Also, what about the object handles content?
x = [1, 2, 3];
y = [5, 15, 35];
hL=plot(x,y)
hAx=gca
? Any chance the color mapping somehow matches the background color so things aren't visible?
Otherwise, seems very stange and would probably be related to the underlying graphics drivers/hardware. Didn't mention which OS/machine type which would undoubtedly also be needed information to include for Support
Also, what about any other base plot types? That would indicate whether it's a general issue with drawing/rendering or something specific to the plot() function...try area() or bar(), say...
Ilija
le 21 Avr 2026 à 11:52
Ilija
le 21 Avr 2026 à 11:58
Harald
le 21 Avr 2026 à 13:16
Hi,
Two possible trouleshooting steps:
- Are you using a supported operating system? (https://www.mathworks.com/support/requirements/previous-releases.html)
- Consider updating your graphics drivers.
If these do not help, I would recommend contacting Technical Support: https://www.mathworks.com/support/contact_us.html
Best wishes,
Harald
Ilija
le 21 Avr 2026 à 13:40
Harald
le 21 Avr 2026 à 14:06
Since the troubleshooting steps did not help, I would recommend contacting Technical Support: https://www.mathworks.com/support/contact_us.html
Best wishes,
Harald
Walter Roberson
le 21 Avr 2026 à 17:45
@Ilija I wonder if you might just happen to also have an NVIDIA graphics card as well as the UHD graphics ?
Image Analyst
il y a environ 3 heures
You can get r2026a now. Give that one a try.
Réponses (0)
Catégories
En savoir plus sur Graphics Performance dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



