Why is MATLAB not displaying my SCATTER plot?
14 views (last 30 days)
Show older comments
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.
Accepted Answer
MathWorks Support Team
on 27 Jun 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')
0 Comments
More Answers (0)
See Also
Categories
Find more on Graphics Performance in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!