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

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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