SpringPy is a Python library for visualizing distance matrices as force-directed spring layouts. Version 0.1.0, released with an unspecified cadence. It supports Python >=3.4 and provides an easy interface to generate spring-based visualizations from distance matrices.
pip install springpyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Visualize a distance matrix using SpringPy's force-directed layout. Provide a square distance matrix as a 2D array-like (list of lists or numpy array). The draw function will display a matplotlib plot.
Ensure input matrix is symmetric (dist_matrix == dist_matrix.T) and contains only non-negative values.
Consider pinning the version and testing thoroughly before upgrading.
Install matplotlib separately: pip install matplotlib
Run 'pip install springpy' to install the package.
Use 'import springpy' then 'springpy.draw(...)'. If using an older version, upgrade with 'pip install --upgrade springpy'.
Ensure the input is a square numeric matrix (list of lists or numpy array).