A Python library for generating the iconic Batman curve.
Project description
Batman Curve
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
# 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)
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
batman-curve-1.0.tar.gz
(22.9 kB
view details)
File details
Details for the file batman-curve-1.0.tar.gz.
File metadata
- Download URL: batman-curve-1.0.tar.gz
- Upload date:
- Size: 22.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
266fda1987223611c6d2d26643edb1a40f60f932fc7c6b4fd6376f3bb3098f2a
|
|
| MD5 |
f780ca1c391e893c7c290940088d1ddb
|
|
| BLAKE2b-256 |
49d28947630865b8ab187ed69031afef3c6e474f6c3aec01d5ea27f145efec9b
|