Skip to main content

pltfront - a simple matplotlib frontend

pltfront is a bare-bones Python plotting package, which provides an easy interface for matplotlib and removes some complexity from repetitive plotting tasks.

Quick start

Let's plot the exponential function in [0, 1]

from pltfront.plot import Plot
import numpy as np

# Generate the data set
x = np.linspace(0., 1.)
y = np.exp(x)

# Plot
label = "$e^x$"

plotting = Plot()
plotting.plot(x, y, kind='line', label=label, legend=True, title=r'$f(x)=e^x$', show=True)

For multiple superimposed plots, a list of lists is all it takes

xs = [x for i in range(2)]
ys = [np.exp(x), np.exp(2*x)]

labels = ["$e^x$", "$e^{2x}$"]
kinds = ['line', 'scatter']

_ = plotting.plot(xs, ys, label=labels, kind=kinds, legend=True, show=True)

Features

  • Simple interface for matplotlib plotting functions
  • User-specified plotting functions can be used (as long as they are callable!)
  • Multiple plots can be superimposed

Requirements

  • matplotlib >= 3.8.0
  • numpy >= 1.26.0
  • cryptography >= 42.0.2

Documentation

Check out the tutorial for more examples and the public API for more details.

Contributions

Contributions are welcome! Please follow the guidelines available in the repository.

Installation

From the Python Package Index

pip install pltfront

From the code repository

git clone https://framagit.org/codutils/pltfront.git
cd pltfront
make install

Author

Iacopo Ricci

Metadata

Release files for pltfront 0.4.6

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

Source distribution (sdist)

Source distribution for pltfront 0.4.6
File Size Uploaded
pltfront-0.4.6.tar.gz 24.9 kB Details

Built distribution (wheel)

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

Total release size: 46.0 kB

Release files / pltfront-0.4.6.tar.gz

Download URL pltfront-0.4.6.tar.gz
Size 24.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8a11d8b6d14825dc429297ec75c696077fbbfb5657d35e2a2a7e5dd2644c8894
BLAKE2b-256 checksum
How to use checksums
c640ce57f7108f44009e95c19f26cbe8de7b34700e94c368ba742f00ad7a7bc2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / pltfront-0.4.6-py3-none-any.whl

Download URL pltfront-0.4.6-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4de7ecd26e30d726c99f9bfca5fb58b4e9daac5a0f0aa115fec141deb270be8b
BLAKE2b-256 checksum
How to use checksums
2e88a20e3b27a7a8207dfc49b8f5ecbf08a3b33f364865735032583becb2cb8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.4.6 This release

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

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