Skip to main content

Plotting library with descriptive approach

Project description

Plotter

Generate this README

  • in html: make html-readme then open README.html in web browser, firefox README.html for instance.
  • in pdf: make pdf-readme

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

Documentation

Online documentation at https://plotter-doc.xyz

Build documentation locally

Requirements

Command

cd doc
bundle exec jekyll build

Then the documentation is accessible in the doc/_site/ directory. Usable using a web browser for instance: firefox doc/_site/index.html

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

Uploaded Source

Built Distribution

plotter-1.3.19-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plotter-1.3.19.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.5

File hashes

Hashes for plotter-1.3.19.tar.gz
Algorithm Hash digest
SHA256 3458a72b4fecbfcd41e4b93420acdfd71e74e1a3e8f421ad77ce35222cba778b
MD5 3c68b4c89af04f72eccfc9f008ae1daa
BLAKE2b-256 ed8bf73a8c7e922abd3ed43a9322d9930eac934049abaecc660d14509e8f1306

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plotter-1.3.19-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.5

File hashes

Hashes for plotter-1.3.19-py3-none-any.whl
Algorithm Hash digest
SHA256 f81e8b36dfa2d20eb757a555aef64e08f81b2300d1c8196600afda4a1b9afda6
MD5 c3ec1a47444af470ef07934415d320f6
BLAKE2b-256 6e4ca391a52575f206e85eb898bda7917e3e7b13ca88805db695f5a30eb8b099

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