Skip to main content

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

Release files for plotter 1.3.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plotter 1.3.20
File Size Uploaded
plotter-1.3.20.tar.gz 12.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plotter 1.3.20
File Interpreter ABI Platform
plotter-1.3.20-py3-none-any.whl Python 3 none any Details

Total release size: 23.8 kB

Release files / plotter-1.3.20.tar.gz

Download URL plotter-1.3.20.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3a93cd1c4a775c6fb0176cb1c067bd01b4a645918e429924858edb4cadc574b2
BLAKE2b-256 checksum
How to use checksums
b46d2909ed953c678dbc3f756e74d951fe81b0a5301f3df6ac52680a6d1c81e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Release files / plotter-1.3.20-py3-none-any.whl

Download URL plotter-1.3.20-py3-none-any.whl
Size 11.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
821a933a237415bd42ffe34ce5ec1c35c1ba2ddf318d97f05170c0f7cede9fac
BLAKE2b-256 checksum
How to use checksums
7e5fb233e730ff0c0d32290a10a31ecbf5ae9b2528b7bb3c01b65badb650cb57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.8

Release history Release notifications | RSS feed

This release

1.3.20 This release

2 release files

1.3.19

2 release files

1.3.18

2 release files

1.3.13

2 release files

1.3.12

2 release files

1.3.11

2 release files

1.3.10

2 release files

1.3.9

2 release files

1.3.8

2 release files

1.3.7

2 release files

1.3.6

3 release files

1.3.5

2 release files

1.3.4

2 release files

1.3.3

2 release files

1.3.2

2 release files

1.3

2 release files

1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page