Plotting library with descriptive approach
Project description
Plotter
Description
Plotter is a plotting library based on matplotlib
. It intends to simplify the plotting of data in Python by creating a descriptive approach for plots. The plots can be static or dynamic.
Source code location
https://github.com/T-TROUCHKINE/plotter
Installation
python3 setup.py install
Generate documentation
cd doc && make
Examples
Simplest example:
The code:
import numpy as np
from src.plotter import Plotter
x = np.linspace(-np.pi, np.pi, 201)
to_plot = [{
"title": "Example",
"type": "plot",
"data": [x, np.sin(x)]
}]
pl = Plotter(to_plot)
pl.show()
Gives:
Multi-plot:
The code:
import numpy as np
from src.plotter import Plotter
x = np.linspace(-np.pi, np.pi, 201)
to_plot = [{
"title": "Example 1",
"type": "plot",
"data": [x, np.sin(x)]
},
{
"title": "Example 2",
"type": "matrix",
"data": np.random.random((100,100))
}]
pl = Plotter(to_plot, figsuptitle="Multi-plot")
pl.show()
Gives:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plotter-1.1.tar.gz
(4.4 kB
view details)
Built Distribution
plotter-1.1-py3-none-any.whl
(6.1 kB
view details)
File details
Details for the file plotter-1.1.tar.gz
.
File metadata
- Download URL: plotter-1.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7892f90a09844da44887af8f96ce11af34f734384d2d21c95fc4ce551e0ef9a1
|
|
MD5 |
87b03a4ea73a6aa57b666408d1655dce
|
|
BLAKE2b-256 |
1aa56821e423fe8e860313ae12d7ec83a5c6480fa4a143ca3bbb0c1dd1a92826
|
File details
Details for the file plotter-1.1-py3-none-any.whl
.
File metadata
- Download URL: plotter-1.1-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
82f5e546cba24fa3c7091ca618b360af91e05441362b788ea8bdb705f2fa2af6
|
|
MD5 |
fd20be4736448c4c7a185f33fabda22c
|
|
BLAKE2b-256 |
57ff43ebf73a0fc026632d6daadaceb9bc542b7921675d382d7f05f5bc166cee
|