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
Prerequisities
Linux packages
- tk :
- ArchLinux :
pacman -S tk
- Debian :
apt install tk
- ArchLinux :
Python modules
- matplotlib :
pip install matplotlib
- matplotlib2tikz :
pip install matplotlib2tikz
- numpy :
pip install numpy
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.3.tar.gz
(6.4 kB
view details)
Built Distribution
File details
Details for the file plotter-1.3.3.tar.gz
.
File metadata
- Download URL: plotter-1.3.3.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
70d3dfa0904ba062881e2a24aa0a477595e2a33f11b1b121409f40ac60534042
|
|
MD5 |
a008fac171915fe2548f794debcd16b6
|
|
BLAKE2b-256 |
7695f5a64d984e8c961b96edca1923921d9863abd77d346f6d268c3e8d15c417
|
File details
Details for the file plotter-1.3.3-py3-none-any.whl
.
File metadata
- Download URL: plotter-1.3.3-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
419ccf880bdcc87dcad0bb1e4313f76bf0d5e52ac194c9bd5755beb175383241
|
|
MD5 |
9194e91787a4d9c39aaee4dff34f491a
|
|
BLAKE2b-256 |
0722545e81840edfc79b953b543542f82cf640db9839f5b3b15afbc882ad5613
|