Button Plot

Iteratively combines clusters of visually intersecting disks in a scatter plot (avoiding quadratic complexity).
30 Downloads
Updated 24 Aug 2021

View License

Avoid misinterpretation in scatter plots.
Great for visualizing data as scatter-like button plot, where points would otherwise be displayed upon another.
Visually overlapping disks are iteratively combined on a weighted basis until no more intersect.
In mathematical terms, each merged disk has coordinates and volume given by
where each and , are the coordinates and volumes of all disks within a cluster. The clusters are the connected components within the graph where two vertices are neighbored if their plotted disks visually overlap. This process is repeated until no more disks overlap.
Avoid quadratic complexity.
The algorithm should scale as in the number of points N. Tested up to 200.000 points.

Cite As

Sebastian Kraemer (2024). Button Plot (https://www.mathworks.com/matlabcentral/fileexchange/97697-button-plot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
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.0.6

Changed file exchange graphic. The Matlab files did not change.

1.0.5

Removed another typo in the mathematical description. The Matlab files did not change.

1.0.4

Removed another typo in the description. The Matlab files did not change.

1.0.3

Added the word button in the description to improve search results. The Matlab files did not change.

1.0.2

Cleaned up typos in the description immediately after first publication. The Matlab files did not change.

1.0.1

Rephrased description and modified image. The Matlab files did not change.

1.0.0