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

Uploaded Source

Built Distribution

plotter-1.3.20-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: plotter-1.3.20.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for plotter-1.3.20.tar.gz
Algorithm Hash digest
SHA256 3a93cd1c4a775c6fb0176cb1c067bd01b4a645918e429924858edb4cadc574b2
MD5 3c4109d2dfeff3f049b87427e53c683c
BLAKE2b-256 b46d2909ed953c678dbc3f756e74d951fe81b0a5301f3df6ac52680a6d1c81e6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: plotter-1.3.20-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.8

File hashes

Hashes for plotter-1.3.20-py3-none-any.whl
Algorithm Hash digest
SHA256 821a933a237415bd42ffe34ce5ec1c35c1ba2ddf318d97f05170c0f7cede9fac
MD5 98cef94fa249604c29dbed772d5f774f
BLAKE2b-256 7e5fb233e730ff0c0d32290a10a31ecbf5ae9b2528b7bb3c01b65badb650cb57

See more details on using hashes here.

Supported by

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