betterspy 0.1.6

Last updated:

0 purchases

betterspy 0.1.6 Image
betterspy 0.1.6 Images
Add to Cart

Description:

betterspy 0.1.6

betterspy









Show sparsity patterns of sparse matrices or write them to image files.
Example:
import betterspy
from scipy import sparse

A = sparse.rand(20, 20, density=0.1)

# betterspy.plot()
# set attributes on gca()
# plt.show()
# or directly

betterspy.show(A)

betterspy.write_png(
"out.png",
A,
# border_width=2,
# border_color="red",
# colormap="viridis"
)










no colormap
viridis



There is a command-line tool that can be used to show
matrix-market or
Harwell-Boeing files:
betterspy msc00726.mtx [out.png]

See betterspy -h for all options.
Gallery










bp_200
bp_600
Chebyshev2













orani678
rajat19
rdb1250l













rdb3200l
west0989
west1505



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

to install.
License
This software is published under the GPLv3 license.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.