Why is MATLAB not displaying my SCATTER plot?

12 次查看(过去 30 天)
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
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