Skip to content

A Python library for generating the iconic Batman curve.

License

Notifications You must be signed in to change notification settings

avitase/batman-curve

Repository files navigation

Batman Curve

Python 3.10 PyPI Test coverage Unit tests Code style: black

A Python library for generating the iconic Batman curve - a mathematical function that creates a plot resembling the legendary Batman symbol.

Learn More

Explore the mathematical details of the Batman curve on Wolfram MathWorld:

Weisstein, Eric W. "Batman Curve." From MathWorld - A Wolfram Web Resource.
https://mathworld.wolfram.com/BatmanCurve.html

Installation

# production installation
$ pip install -r requirements.txt
$ pip install batman-curve

# development installation
$ pip install -e .[dev]
$ pre-commit install

Usage

import matplotlib.pyplot as plt
import numpy as np

from batman_curve import batman

x = np.linspace(-7, 7, 300)
upper, lower = batman(x)

fig, ax = plt.subplots()
ax.plot(x, upper)
ax.plot(x, lower)

Batman curve

About

A Python library for generating the iconic Batman curve.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages