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

Installation

python3 setup.py install

Generate documentation

cd doc && make

Examples

Simplest example:

The code:

import numpy as np
from src.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 src.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.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

plotter-1.1-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plotter-1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for plotter-1.1.tar.gz
Algorithm Hash digest
SHA256 7892f90a09844da44887af8f96ce11af34f734384d2d21c95fc4ce551e0ef9a1
MD5 87b03a4ea73a6aa57b666408d1655dce
BLAKE2b-256 1aa56821e423fe8e860313ae12d7ec83a5c6480fa4a143ca3bbb0c1dd1a92826

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plotter-1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.20.1 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0

File hashes

Hashes for plotter-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 82f5e546cba24fa3c7091ca618b360af91e05441362b788ea8bdb705f2fa2af6
MD5 fd20be4736448c4c7a185f33fabda22c
BLAKE2b-256 57ff43ebf73a0fc026632d6daadaceb9bc542b7921675d382d7f05f5bc166cee

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