Problem scattering high amount of data
3 次查看(过去 30 天)
显示 更早的评论
Hello,
I'm trying to scatter more than 80Mb of data in one scatter figure and I see nothing but blue. I'm trying to get smaller points than 1, something like 0.01 but size doesn't change. I tried to use '.' instead of default 'o' put it doesn't work either.
Thanks for your help.
0 个评论
采纳的回答
John D'Errico
2015-8-18
Well, think about what you are trying to do!
Consider a region on your screen, say 1000x1000 pixels. This is a reasonably sized figure window,and depending on your monitor, perhaps a pretty large one.
80MB of data means you have many MILLIONS of points to plot. So depending on the density of points, this means virtually every pixel is filled in. Sorry, but your monitor will not be able to display at sub-pixel levels, since a pixel is a pixel.
It matters not what you WANT to do, but only what is possible to do. Look for a rational way to deal with the amount of data that you have, and the limits of you display. So, better is to look for different ways to display this information. It sounds like you are merely trying to create a scatter plot in 2-d. So why not instead create a histogram in 2-d? For example, create a grid in 2-d where each 2-d cell represents the number (or fractional amount) of points that fell into that cell. Now you can choose a reasonable size for those cells that will display properly on your monitor.
Personally, I like the idea of a pcolor plot here, using a reasonable colormap, so zero counts in a cell will show up as white, and the amount of color will be an indication of the density of points in that cell.
2 个评论
John D'Errico
2015-8-18
You might try the gray, pink or bone colormaps.
pcolor(abs(peaks))
shading interp
colormap(1-bone)
And a 2-d histogram is easy enough to build. The accumarray function will do much of the work for you. Or, you can use the histc function twice (now being replaced by histcounts.)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Distribution Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!