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.15.tar.gz (10.7 kB view hashes)

Uploaded Source

Built Distribution

plotter-1.3.15-py3-none-any.whl (11.3 kB view hashes)

Uploaded Python 3

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