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
- 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.6.tar.gz
(8.8 kB
view details)
Built Distributions
plotter-1.3.6-py3.7.egg
(20.1 kB
view details)
plotter-1.3.6-py3-none-any.whl
(10.0 kB
view details)
File details
Details for the file plotter-1.3.6.tar.gz
.
File metadata
- Download URL: plotter-1.3.6.tar.gz
- Upload date:
- Size: 8.8 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.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
45c8436a2e7a5e59962af051ac5b0f4f920101579b65d1a25918dad37548d750
|
|
MD5 |
a2dca755028444be90cd3dc00ca53a34
|
|
BLAKE2b-256 |
4cf219423c21b9249b0fea45d5fa36703eb82fb830072b4df8cab1b2a8da3ebf
|
File details
Details for the file plotter-1.3.6-py3.7.egg
.
File metadata
- Download URL: plotter-1.3.6-py3.7.egg
- Upload date:
- Size: 20.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d3c38fe2a00b2d1acad5130844fae32e7ab384194ceb0b24a9b4cfd3878295a0
|
|
MD5 |
853ca26771537fd0b1be11789bd39861
|
|
BLAKE2b-256 |
929c48c83c16af56f5227646fee3c4e321ede9e1aed8d56b3a55b14fd49915fb
|
File details
Details for the file plotter-1.3.6-py3-none-any.whl
.
File metadata
- Download URL: plotter-1.3.6-py3-none-any.whl
- Upload date:
- Size: 10.0 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.2.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
5c5813c81e2cbfb9763773d6b90c73b130e50e9b728ec9bf61c276e0167a6449
|
|
MD5 |
3f81457be8e027072b5430e464454f18
|
|
BLAKE2b-256 |
8fdcbb57ab0eb5c22dd1fd8961ddd9d1eb0662b8cdf76b8b1c73f5ea6cb32719
|