Why is my scatter plot blank?
조회 수: 12 (최근 30일)
이전 댓글 표시
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!
채택된 답변
OCDER
2018년 5월 22일
scatter([1 2 3], [1 2 3]);
set(gcf, 'renderer', 'painters')
Sometimes there's a bug that prevents the graphics card from properly drawing the figures generate by Matlab via the OpenGL renderer (default). It's been an on and off bug for a while:
You could use this to set the default renderer for all figures generated:
set(0, 'DefaultFigureRenderer', 'painters')
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Scatter Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!