Button Plot

version 1.0.6 (8.87 KB) by Sebastian Kraemer
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 (2022). 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!