Skip to main content

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 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

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

pltfront-0.4.6.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pltfront-0.4.6-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

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

Hashes for pltfront-0.4.6.tar.gz
Algorithm Hash digest
SHA256 8a11d8b6d14825dc429297ec75c696077fbbfb5657d35e2a2a7e5dd2644c8894
MD5 36f70a8c9efd7f297a83060c554fdaec
BLAKE2b-256 c640ce57f7108f44009e95c19f26cbe8de7b34700e94c368ba742f00ad7a7bc2

See more details on using hashes here.

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

Hashes for pltfront-0.4.6-py3-none-any.whl
Algorithm Hash digest
SHA256 4de7ecd26e30d726c99f9bfca5fb58b4e9daac5a0f0aa115fec141deb270be8b
MD5 077d7e94ba0909beb6993bba62bcbfa8
BLAKE2b-256 2e88a20e3b27a7a8207dfc49b8f5ecbf08a3b33f364865735032583becb2cb8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page