Data density plot
Version 1.1 (2.45 KB) by
Malcolm McLean
Plots data density of a two-dimensional distribution for human viewing.
Data density can be hard to read from scatter plots due to overstriking. I therefore calculate data density at each pixel as the reciprocal of the sum of squared distance from each point, adding a fudge factor to prevent points actually within the pixel going to infinity.
The resulting plot allow for a visual fix on data density.
Cite As
Malcolm McLean (2026). Data density plot (https://in.mathworks.com/matlabcentral/fileexchange/31726-data-density-plot), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009b
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization >
Find more on Descriptive Statistics and Visualization in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
DataDensity/
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.1 | Toolbox |
|
|
| 1.0.0.0 |
