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
Generate documentation
cd doc && make
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.tar.gz
(5.1 kB
view details)
Built Distribution
plotter-1.3-py3-none-any.whl
(7.0 kB
view details)
File details
Details for the file plotter-1.3.tar.gz
.
File metadata
- Download URL: plotter-1.3.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
e00ada466e88b2519f44711006927d9ea9c7dfe0f6fb281f0b1a88871d985ced
|
|
MD5 |
24c13d8ebcc1a4e0614c1f9fe6a67b00
|
|
BLAKE2b-256 |
d232bca830fc7fbf908fa2fe80192ad7220ca1a77d84d44484a887638589af31
|
File details
Details for the file plotter-1.3-py3-none-any.whl
.
File metadata
- Download URL: plotter-1.3-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
050d088d34adf0f64c9e154d4f3121b649cb2d6f0e53f6ddefaedcc3e5359745
|
|
MD5 |
1bd1e90cbcbb0e55f8f607e4bef6a7bd
|
|
BLAKE2b-256 |
b7fd8c7e6c0ace355711bc637dad723bc18f71b39077e3260b69b823428c84a0
|