A simplified matplotlib frontend
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pltfront-0.4.6.tar.gz.
File metadata
- Download URL: pltfront-0.4.6.tar.gz
- Upload date:
- Size: 24.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a11d8b6d14825dc429297ec75c696077fbbfb5657d35e2a2a7e5dd2644c8894
|
|
| MD5 |
36f70a8c9efd7f297a83060c554fdaec
|
|
| BLAKE2b-256 |
c640ce57f7108f44009e95c19f26cbe8de7b34700e94c368ba742f00ad7a7bc2
|
File details
Details for the file pltfront-0.4.6-py3-none-any.whl.
File metadata
- Download URL: pltfront-0.4.6-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4de7ecd26e30d726c99f9bfca5fb58b4e9daac5a0f0aa115fec141deb270be8b
|
|
| MD5 |
077d7e94ba0909beb6993bba62bcbfa8
|
|
| BLAKE2b-256 |
2e88a20e3b27a7a8207dfc49b8f5ecbf08a3b33f364865735032583becb2cb8b
|