wraplot
A simple pythonic matplotlib wrapper: plot, subplot and animate with ease.
Installation
git clone git@github.com:LucaMoschella/wraplot.git
cd wraplot
poetry install
Sample usage
Spy
spyplot = Spy()
spyobj = Spy.Object(matrix=dense_matrix > 0.5,
axis_visibility='off',
markersize=4)
o = spyplot(spyobj)
Imagesc
spyplot = Spy()
spyobj = Spy.Object(matrix=dense_matrix > 0.5,
axis_visibility='off',
markersize=4)
o = spyplot(spyobj)
PlotCloud
cloudplot = PlotCloud2D()
cloudobj = PlotCloud2D.Object(points=points,
axis_visibility='off',
xlim=[0, 1],
ylim=[0, 1],
markersize=500)
o = cloudplot(cloudobj, outfile="sample/cloudplot.png")
Subplotting
subplotter = Subplotter()
o = subplotter(objs=[[spyobj, cloudobj],
[imagescobj, spyobj]],
plot_functions=[[spyplot, cloudplot],
[imagescplot, spyplot]],
outfile="sample/subplot.png")
Animation
animator = Animator()
for i in range(50):
dense_matrix = dense_matrix @ dense_matrix
o = imagescplot(Imagesc.Object(matrix=np.random.rand(100, 100).astype(np.float)))
animator.add_figure(o)
animator.save("sample/video.mp4", fps=15)
Live sample
streamlit run sample/demo
Metadata
Release files for wraplot 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| wraplot-0.1.1.tar.gz | 19.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| wraplot-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.4 kB
Release files / wraplot-0.1.1.tar.gz
| Download URL | wraplot-0.1.1.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
190b6612e732027cb13a447be817b36844970ebad0d260f1c49967c42e72691d
|
|
BLAKE2b-256 checksum How to use checksums |
e214ee751681ac00ba37713c42c39d0b5a999f2c13507c4a7cc9dcc8551426a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0 CPython/3.7.5 Linux/4.19.88-1-MANJARO
|
Release files / wraplot-0.1.1-py3-none-any.whl
| Download URL | wraplot-0.1.1-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1cf9bf813c4f57510bf61cba0cd6c8ce6b2c4c415ea1cc860db8a9ba2f72587e
|
|
BLAKE2b-256 checksum How to use checksums |
82337214237b1b810264c1150a91698098dac66e82cbfd38f9ecb5992e64470e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.0 CPython/3.7.5 Linux/4.19.88-1-MANJARO
|