Why the figure is not apearing after using plot(x) command?

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 Comments

Exactly.
Note that 'x' must be a vector with at least 2 elements, or be defined by a marker.
x = randn(2,1)
x = 2×1
-1.7319 0.9802
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
figure
plot(x)
grid
x = randn
x = -0.7993
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.
My example (just a test)
x = [1, 2, 3]
x =
1 2 3
>> y = [5, 15, 35]
y =
5 15 35
>> plot(x,y)
Results in opening "Figures" windov without any Figure.
You will most likely need to Contact Support for this problem.
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]
x = 1×3
1 2 3
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
y = [5, 15, 35]
y = 1×3
5 15 35
<mw-icon class=""></mw-icon>
<mw-icon class=""></mw-icon>
plot(x,y)
It also works correctly in MATLAB Online.
.
Just to be sure, what does
which -all plot
built-in (/MATLAB/toolbox/matlab/graphics/graphics/graph2d/plot) /MATLAB/toolbox/matlab/timeseries/@timeseries/plot.m % timeseries method /MATLAB/toolbox/matlab/bigdata/@tall/plot.m % tall method /MATLAB/toolbox/matlab/graphics/math/@graph/plot.m % graph method /MATLAB/toolbox/matlab/graphics/math/@alphaShape/plot.m % alphaShape method /MATLAB/toolbox/matlab/graphics/math/@polyshape/plot.m % polyshape method /MATLAB/toolbox/matlab/graphics/math/@digraph/plot.m % digraph method /MATLAB/toolbox/bioinfo/bioinfo/@phytree/plot.m % phytree method /MATLAB/toolbox/bioinfo/bioinfo/microarray/@HeatMap/plot.m % HeatMap method /MATLAB/toolbox/bioinfo/bioinfo/microarray/@clustergram/plot.m % clustergram method /MATLAB/toolbox/curvefit/curvefit/@cfit/plot.m % cfit method /MATLAB/toolbox/curvefit/curvefit/@sfit/plot.m % sfit method /MATLAB/toolbox/econ/econ/@empiricalblm/plot.m % empiricalblm method /MATLAB/toolbox/econ/econ/@customblm/plot.m % customblm method /MATLAB/toolbox/econ/econ/@blm/plot.m % blm method /MATLAB/toolbox/econ/econ/@lassoblm/plot.m % lassoblm method /MATLAB/toolbox/econ/econ/@mixconjugateblm/plot.m % mixconjugateblm method /MATLAB/toolbox/econ/econ/@conjugateblm/plot.m % conjugateblm method /MATLAB/toolbox/econ/econ/@diffuseblm/plot.m % diffuseblm method /MATLAB/toolbox/econ/econ/@mixsemiconjugateblm/plot.m % mixsemiconjugateblm method /MATLAB/toolbox/econ/econ/@semiconjugateblm/plot.m % semiconjugateblm method /MATLAB/toolbox/ident/ident/@iddata/plot.m % iddata method /MATLAB/toolbox/ident/nlident/@idnlarx/plot.m % idnlarx method /MATLAB/toolbox/ident/nlident/@idnlhw/plot.m % idnlhw method /MATLAB/toolbox/mbc/mbcdata/@cgrules/plot.m % cgrules method /MATLAB/toolbox/mbc/mbcmodels/@localavfit/plot.m % localavfit method /MATLAB/toolbox/mbc/mbcmodels/@localmod/plot.m % localmod method /MATLAB/toolbox/mbc/mbcmodels/@localmulti/plot.m % localmulti method /MATLAB/toolbox/mbc/mbcmodels/@xregtwostage/plot.m % xregtwostage method /MATLAB/toolbox/mbc/mbcmodels/@xregtransient/plot.m % xregtransient method /MATLAB/toolbox/mbc/mbcmodels/@xregmodel/plot.m % xregmodel method /MATLAB/toolbox/mbc/mbctools/@sweepset/plot.m % sweepset method /MATLAB/toolbox/mbc/mbcview/@cgdatasetnode/plot.m % cgdatasetnode method /MATLAB/toolbox/mpc/mpc/@mpc/plot.m % mpc method /MATLAB/toolbox/risk/risk/@esbacktest/plot.m % esbacktest method /MATLAB/toolbox/risk/risk/@varbacktest/plot.m % varbacktest method /MATLAB/toolbox/robust/rctobsolete/robust/@frd/plot.m % frd method /MATLAB/toolbox/robust/robust/@umargin/plot.m % umargin method /MATLAB/toolbox/shared/channel/rfprop/@propagationData/plot.m % propagationData method /MATLAB/toolbox/shared/drivingscenario/@drivingScenario/plot.m % drivingScenario method /MATLAB/toolbox/shared/msblks_measurement/eyefunctions/@eyeDiagramSI/plot.p % eyeDiagramSI method /MATLAB/toolbox/shared/msblks_measurement/eyefunctions/@eyeContour/plot.p % eyeContour method /MATLAB/toolbox/shared/msblks_measurement/eyefunctions/@eyeMask/plot.p % eyeMask method /MATLAB/toolbox/stats/bayesoptim/@BayesianOptimization/plot.m % BayesianOptimization method /MATLAB/toolbox/stats/classreg/@LinearModel/plot.m % LinearModel method /MATLAB/toolbox/wavelet/core/wavelet/@dtree/plot.m % dtree method /MATLAB/toolbox/wavelet/core/wavelet/@ntree/plot.m % ntree method /MATLAB/toolbox/wavelet/core/wavelet/@wdectree/plot.m % wdectree method
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...
>> which -all plot
built-in (C:\Program Files\MATLAB\R2025b\toolbox\matlab\graphics\graphics\graph2d\plot)
C:\Program Files\MATLAB\R2025b\toolbox\matlab\bigdata\@tall\plot.m % tall method
C:\Program Files\MATLAB\R2025b\toolbox\matlab\graphics\math\@alphaShape\plot.m % alphaShape method
C:\Program Files\MATLAB\R2025b\toolbox\matlab\graphics\math\@digraph\plot.m % digraph method
C:\Program Files\MATLAB\R2025b\toolbox\matlab\graphics\math\@graph\plot.m % graph method
C:\Program Files\MATLAB\R2025b\toolbox\matlab\graphics\math\@polyshape\plot.m % polyshape method
C:\Program Files\MATLAB\R2025b\toolbox\matlab\timeseries\@timeseries\plot.m % timeseries method
C:\Program Files\MATLAB\R2025b\toolbox\curvefit\curvefit\@cfit\plot.m % cfit method
C:\Program Files\MATLAB\R2025b\toolbox\curvefit\curvefit\@sfit\plot.m % sfit method
>> whos plot
>>
Thanks for the help!
I had my code, including "grid on; plot(e); pause" under MATLAB24b release running without a problem.
Recently I installed MATLAB25b and it is behaving like I tried to explain: it opens "Figures" without any visible output - no grid, no curve.
I did not change any colour settings or any other settings.
Cheers
Hi,
Two possible trouleshooting steps:
If these do not help, I would recommend contacting Technical Support: https://www.mathworks.com/support/contact_us.html
Best wishes,
Harald
Hi, my system i updated and "fit for fun" in all necessary requiremets listed, except that I use only Intel® UHD Graphics(128 MB).
I do not know is it causes the problem?
Since the troubleshooting steps did not help, I would recommend contacting Technical Support: https://www.mathworks.com/support/contact_us.html
Best wishes,
Harald
@Ilija I wonder if you might just happen to also have an NVIDIA graphics card as well as the UHD graphics ?
You can get r2026a now. Give that one a try.

Sign in to comment.

Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Products

Release

R2025b

Asked:

on 20 Apr 2026 at 10:25

Commented:

on 21 Apr 2026 at 23:09

Community Treasure Hunt

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

Start Hunting!