Skip to main content

Lorenz

Lorenz provides simple utilities to generate and plot Lorenz system trajectories (the classic "butterfly" attractor).

Install

pip install lorenz

Quick start

from lorenz import LorenzButterfly

lorenz = LorenzButterfly()
ax = lorenz.plot()

API

LorenzButterfly

Generate Lorenz system data and plot trajectories.

from lorenz import LorenzButterfly

lorenz = LorenzButterfly(sigma=10.0, rho=28.0, beta=8.0 / 3.0)

# Generate data as a pandas DataFrame
frame = lorenz.generate_data(steps=5000, dt=0.01)

# Plot the trajectory (matplotlib 3D axes)
ax = lorenz.plot(steps=5000, dt=0.01)

Parameters

  • sigma: Prandtl number controlling horizontal convection strength
  • rho: Rayleigh number controlling temperature gradient/chaos level
  • beta: geometry factor (often 8/3 for the classic system)
  • dt: integration time step
  • steps: number of integration steps
  • initial: starting point (x, y, z)

Methods

  • generate_data(...) returns a pandas.DataFrame with columns x, y, z
  • plot(...) returns a matplotlib.axes.Axes instance

Release files for lorenz 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lorenz 1.0.0
File Size Uploaded
lorenz-1.0.0.tar.gz 14.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lorenz 1.0.0
File Interpreter ABI Platform
lorenz-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 29.8 kB

Release files / lorenz-1.0.0.tar.gz

Download URL lorenz-1.0.0.tar.gz
Size 14.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ea64a9139db58558abf57e3b3069269305aabf1cf47f16b72c24b52c1333a0aa
BLAKE2b-256 checksum
How to use checksums
1bf7fa416432b71e6378b230bdb7146399de0e34365fd08ae6d0f9a829ca500c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 5, 2026.

Transparency log

Release files / lorenz-1.0.0-py3-none-any.whl

Download URL lorenz-1.0.0-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72a839b1e432e7257c9ffbaf801076e735c23e5f8a1de56f36d276fff0904238
BLAKE2b-256 checksum
How to use checksums
8f32be53a90baf69e10f4c5318b15e923dd1391210e0194c5365ab03c2b2cd6e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 5, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

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