Why is MATLAB not displaying my SCATTER plot?

조회 수: 15 (최근 30일)
MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
Why is MATLAB not displaying my SCATTER plot?
I am trying to plot data with the SCATTER function. When I use small data sets (in the order of 100 points or less), the plot is produced as expected. However, if I try using larger data sets (in the order of 1000 or larger), the axes is empty when it is finally displayed.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
This is a bug in MATLAB 6.5 (R13) related to the OpenGL renderer. The figure's "Renderer" property is set based on the number of objects in the figure. Each data point in the plot created by SCATTER is a separate patch object. When the number of objects becomes very large, the OpenGL renderer is unable to display all of the objects correctly.
As a workaround, use one of the other figure renderers; ZBuffer or Painters:
set(gcf,'Renderer','zbuffer')
set(gcf,'Renderer','painters')

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by