Why is my scatter plot blank?
显示 更早的评论
Hello,
I am running a script in my computer where any scatter plot turns up empty. I have run the same script in another computer where it had no problem so there is no error in the cod to cause this.
Does anyone have any idea what might be wrong? I am using Matlab 2017a.
Thank you!
5 个评论
Jan
2018-5-22
There is no chance to guess the reason. Please provide more details, e.g. a piece of code which reproduces the problem.
You might have redefined a function. If you have e.g. a user-defined file called "scatter.m" in your Matlab path, which does nothing, the different behavior would be explained.
Guillaume
2018-5-22
Have you try setting a breakpoint on any of the scatter call and seeing what values it is given?
Does a very basic scatter produces a plot on your machine, e.g.
scatter([1 2], [1 2])
Ioanna Saxoni
2018-5-22
Does this work by any chance?
scatter([1 2 3], [1 2 3]);
set(gcf, 'renderer', 'painters')
Ioanna Saxoni
2018-5-22
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Scatter Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!