Skip to main content

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

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:

First example

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:

Second example

Project details


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.5.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

plotter-1.3.5-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

File details

Details for the file plotter-1.3.5.tar.gz.

File metadata

  • Download URL: plotter-1.3.5.tar.gz
  • Upload date:
  • Size: 8.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.4

File hashes

Hashes for plotter-1.3.5.tar.gz
Algorithm Hash digest
SHA256 5f7ac6d66e7928c4d48f2453f9dce003143ea4814beded198477440a4a0dee2b
MD5 8fc3c08d88df1e147154571549ccdce7
BLAKE2b-256 018b542bb7f9115902bdae9a26fec6d9fea2beb1240ef1526f167520714ae36d

See more details on using hashes here.

File details

Details for the file plotter-1.3.5-py3-none-any.whl.

File metadata

  • Download URL: plotter-1.3.5-py3-none-any.whl
  • Upload date:
  • Size: 9.7 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.4

File hashes

Hashes for plotter-1.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0b334b11a2ddfa904c6ae3f5da65f12569dfb5ef8325ae6d6722a20ef1ae666b
MD5 d328b1de1bedec08df789e3785421ec8
BLAKE2b-256 c179253dbc13b855a3456d81965076fd9a6bc5af92efabfbf0183f5217817bf1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page