Skip to main content

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

# 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

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)

Uploaded Source

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

Hashes for batman-curve-1.0.tar.gz
Algorithm Hash digest
SHA256 266fda1987223611c6d2d26643edb1a40f60f932fc7c6b4fd6376f3bb3098f2a
MD5 f780ca1c391e893c7c290940088d1ddb
BLAKE2b-256 49d28947630865b8ab187ed69031afef3c6e474f6c3aec01d5ea27f145efec9b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page