Jitter Points on 2D Plot
Version 1.1.0 (4.36 KB) by
Zachary Danziger
Add jitter to points on a 2D plot to make overlapping points more visible.
Jitters points on a 2D plot to separate overlapping points to facilitate visualization.
The algorithm uses underlying physics that repels points from one another as though they are charged particles, but maintains the undelrying point distribution by implementing attractive forces to points' original locations.
Options include setting the strength of the repulsive jitter, applying jitter in only the x or y direction, allowing points to have different levels of importance to visualize, and tunable computational shortcuts to speed up performance.
Cite As
Zachary Danziger (2024). Jitter Points on 2D Plot (https://www.mathworks.com/matlabcentral/fileexchange/103660-jitter-points-on-2d-plot), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2019b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.