Why is MATLAB not displaying my SCATTER plot?

14 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 27 Giu 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')

Più risposte (0)

Categorie

Scopri di più su Graphics Performance in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by