Jitter Points on 2D Plot

Add jitter to points on a 2D plot to make overlapping points more visible.

20 Downloads

Updated 26 Mar 2022

View License

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 (2023). 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 Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.1.0

Now supports 1D arrays when x or y is empty and arrays whose standard deviations are zero.

1.0.0