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
matplotlibplotting functions - User-specified plotting functions can be used (as long as they are callable!)
- Multiple plots can be superimposed
Requirements
matplotlib >= 3.8.0numpy >= 1.26.0cryptography >= 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
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)
| File | Size | Uploaded | |
|---|---|---|---|
| pltfront-0.4.6.tar.gz | 24.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|