Why is MATLAB not displaying my SCATTER plot?

15 visualizaciones (últimos 30 días)
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.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 27 de Jun. de 2009
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')

Más respuestas (0)

Categorías

Más información sobre Graphics Performance en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by