Why is my plot figure blank?
Show older comments
My plot figure appears to be blank after running this on my laptop:
pt = rand(2,5000);
plot(pt(1,:),pt(2,:),'bx');
All I see is a blank space on my plot and the axes are visible. However, when I run this on a different computer the data points are visible (indicated by blue Xs). The same version of Matlab is being used on both machines (R2019a).
MATLAB Version: 9.6.0.1214997 (R2019a) Update 6
Any idea of what the problem could be?
Thanks
14 Comments
Daniel M
on 30 Oct 2019
That is strange. What is the output when you type
whos pt
which plot -all
which rand -all
Bel Cho
on 30 Oct 2019
Walter Roberson
on 30 Oct 2019
Use
opengl info
to check to see which graphics card matlab is using and what driver version. Make sure you are up to date on the driver version.
Stephen23
on 30 Oct 2019
Also check the default line properties:
sandhya sandhya
on 30 Oct 2019
With MATLAB R2017b I got output
pt = rand(2,5000);
plot(pt(1,:),pt(2,:),'bx');
Bel Cho
on 30 Oct 2019
Daniel M
on 30 Oct 2019
Always sounds silly to suggest, but have you tried closing MATLAB and starting a new session?
Walter Roberson
on 30 Oct 2019
You are using parallels virtual machine under a host operating system. What host are you using?
Bel Cho
on 30 Oct 2019
I have heard of a lot of issues with Catalina recently. You can report bugs here
Walter Roberson
on 30 Oct 2019
Yes, there is good reason to be suspicious of graphics in Catalina at present.
Bel Cho
on 30 Oct 2019
Walter Roberson
on 21 Apr 2023
Are you using Parallels Virtual Machine on MacOS to run MATLAB ? If so then which version of MacOS is your host?
Answers (0)
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!