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.
Documentation
Source code location
https://github.com/T-TROUCHKINE/plotter
Prerequisities
Linux packages
- tk :
- ArchLinux :
pacman -S tk
- Debian :
apt install tk
- ArchLinux :
Python modules
- matplotlib :
pip install matplotlib
- tikzplotlib :
pip install tikzplotlib
- numpy :
pip install numpy
GTK3
For using GTK3 modules see PyGObject documentation (https://pygobject.readthedocs.io/en/latest/index.html)
Installation
From PIP
pip install plotter
From source
python3 setup.py install
Examples
Simplest example:
The code:
import numpy as np
from 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 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.3.14.tar.gz
(10.7 kB
view details)
Built Distribution
plotter-1.3.14-py3-none-any.whl
(11.3 kB
view details)
File details
Details for the file plotter-1.3.14.tar.gz
.
File metadata
- Download URL: plotter-1.3.14.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e3b259dda061f198f07bc122a598b6ea8f4893e0459e39037bc4673836d8915f
|
|
MD5 |
c12696b8e8e2a364fef83c5f5cc28cb0
|
|
BLAKE2b-256 |
ed2a0a3272e0d694f34e9f6cb58bcce87d0dea7cd3655d2659c8a33bdbf1a8f3
|
File details
Details for the file plotter-1.3.14-py3-none-any.whl
.
File metadata
- Download URL: plotter-1.3.14-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
887d59e303ce7c67d44d443a428739bdc9a643877e7714c9b110043f6cf5c928
|
|
MD5 |
547f255f82976fd30bddfe865d09c8f5
|
|
BLAKE2b-256 |
5e3a8abeba88dd822e30939ed5bbc0a63b0ec0194d189a66fdf2a6c11852deb9
|