Skip to content

dl-wuhee/betterspy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

betterspy

CircleCI codecov Codacy grade PyPi Version GitHub stars

Show sparsity patterns of sparse matrices or write them to image files.

Example:

import betterspy

A = sparse.rand(20, 20, density=0.1)
betterspy.show(A)
betterspy.write_png('out1.png', A, border_width=2)
betterspy.write_png('out2.png', A, border_width=2, colormap='viridis')

| :-------------------:|:------------------:| no colormap | viridis |

Installation

betterspy is available from the Python Package Index, so simply do

pip install -U betterspy

to install or upgrade. Use sudo -H to install as root or the --user option of pip to install in $HOME.

Testing

To run the betterspy unit tests, check out this repository and type

pytest

Distribution

To create a new release

  1. bump the __version__ number,

  2. publish to PyPi and tag on GitHub:

    $ make publish
    

License

betterspy is published under the MIT license.

About

Visualization for Scipy sparse matrices.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 93.7%
  • Makefile 6.3%