cloudPlot will help visualize the distribution of a 2-dimensional dataset. It is especially helpful when looking at extremely large datasets where a redular plot(x,y,'.') will just fill the plot with a solid color because the measurement points overlap each other.
cloudPlot uses the built-in matlab routines to set the axis limits and grid points appropriate to the data.
Daniel Armyr (2023). cloudPlot (https://www.mathworks.com/matlabcentral/fileexchange/23238-cloudplot), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Added more flexible arguments and more error handling after suggestions by Eric Sampson
Updated with more suggestions from Romesh to remove the need to return scaling factor. Made compatible with hold states and incldued more demos.
Thanks to Eric for the addition of the xscale/yscale output option.
Thanks to Romesh who provided a bugfix, the bins input option, and the ability to resize the plot.
Did a one-line fix that in certain cases speeds up the function by a factor of 5.
Improved the bin-size selection to make manual selection redundant.
Now NaNs and Infs are handled gracefully.