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.

Documentation

https://plotter-doc.xyz

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
  • 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:

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

Uploaded Source

Built Distribution

plotter-1.3.13-py3-none-any.whl (11.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plotter-1.3.13.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.5

File hashes

Hashes for plotter-1.3.13.tar.gz
Algorithm Hash digest
SHA256 ae4c9a70c633e6aa130ffc5ac8c694e8068d0e81810c3aefc8dd2782b42c2d6f
MD5 9eab8c581d9c19b5966b9f1688755e38
BLAKE2b-256 05b06dbe7350c3d78615b4deda2cf312237faaa003049152437f673b4cc63605

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plotter-1.3.13-py3-none-any.whl
  • Upload date:
  • Size: 11.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.8.5

File hashes

Hashes for plotter-1.3.13-py3-none-any.whl
Algorithm Hash digest
SHA256 aff0009511d26a5915ee107b8512af50dd6df2eb7ad344b2ac7750e45b9cffbf
MD5 f4dec4cd747b7b2c1630b442a8664a47
BLAKE2b-256 f96d02f9f36f439862127cf83dd856553640dbfd5ed8e16db1d115fbdba93c49

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