Skip to main content

Chaos Atlas

Iterated maps, coupled map lattices, and Lyapunov exponents for chaotic dynamical systems. NumPy arrays in, NumPy arrays out.

This is the Python companion to the Chaos Atlas web explorer, which visualises the same systems interactively.

Install

Requires Python 3.14 or newer.

pip install chaos-atlas

Use

Every map shares the same surface, so switching systems is a one-word change.

from chaos_atlas.maps import logistic, henon

orbit = logistic.trajectory(r=3.9, x0=0.5, iterations=1000)
exponent = logistic.lyapunov(r=4.0)          # -> log 4, the default x0 = 0.5 is preperiodic
exponent = logistic.lyapunov(r=4.0, x0=0.2)  # -> log 2, a generic x0 gives the attractor's exponent

points = henon.attractor(a=1.4, b=0.3, iterations=10_000)   # (10000, 2)

Bifurcation diagrams come back as paired flat arrays, ready to scatter:

import matplotlib.pyplot as plt

r, x = logistic.bifurcation(r_min=2.5, r_max=4.0, r_steps=2000)
plt.plot(r, x, ",k", alpha=0.25)

Coupled map lattices return a (time_steps, lattice_size) space-time array:

from chaos_atlas import cml

spacetime = cml.diffusive(r=3.9, epsilon=0.4, lattice_size=256, time_steps=512)
plt.imshow(spacetime, aspect="auto", cmap="magma")

Pass rng= (or initial=) when you need a run to be reproducible.

Maps

Module System Notes
logistic x → rx(1−x) period doubling, bifurcation, cobweb
tent piecewise linear λ = log α exactly, symbolic dynamics
henon (1−ax²+y, bx) strange attractor, λ₁ ≈ 0.419
standard Chirikov area preserving, KAM islands
ikeda optical cavity spiral attractor
arnold cat map area preserving, finite recurrence period
bakers baker's transformation entropy = log 2 exactly
tinkerbell quadratic 2D multi-loop attractor
duffing double well fixed points in closed form
complex_quadratic z² + c Julia and Mandelbrot escape-time

Lyapunov exponents for the nonlinear 2D maps evolve a tangent vector under the analytic Jacobian with renormalisation each step. Where a map has an exact exponent — tent, baker's, Arnold, logistic at r = 4 — the test suite pins the numerical result to it.

Development

uv venv --python 3.14
uv pip install -e ".[dev]"
uv run pytest

License

Apache-2.0. Copyright 2026 Ricardo Frantz.

Disclaimer

This software is provided "as is", without warranty of any kind. To the extent permitted by law, the authors and contributors are not liable for any damage, loss or claim arising from its use or misuse. You are responsible for how you use it and for following the laws and rules that apply to you. The full terms are in LICENSE.

This is research software. It has not been validated for engineering design, certification or safety-critical use. Check its results independently before you rely on them.

Metadata

Release files for chaos-atlas 0.3.1

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

Source distribution (sdist)

Source distribution for chaos-atlas 0.3.1
File Size Uploaded Provenance Actions
chaos_atlas-0.3.1.tar.gz 23.3 kB With provenance Details for chaos_atlas-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chaos-atlas 0.3.1
File Interpreter ABI Platform Actions
chaos_atlas-0.3.1-py3-none-any.whl Python 3 none any Details for chaos_atlas-0.3.1-py3-none-any.whl

Total release size: 48.2 kB

Release files / chaos_atlas-0.3.1.tar.gz

Download URL chaos_atlas-0.3.1.tar.gz
Size 23.3 kB
Tags Source
SHA-256 checksum
How to use checksums
08b51b4606a492b1a0fcd2472428d70ebd4c703eab7ef5a2983983ff57f21306
BLAKE2b-256 checksum
How to use checksums
80f3bd6c029b396802d39587e850cd4f1619ab5b4b6d28abf0d7d61fd58dc39c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

Release files / chaos_atlas-0.3.1-py3-none-any.whl

Download URL chaos_atlas-0.3.1-py3-none-any.whl
Size 24.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b818cfd910d53ace6f8c946d976e0539c4ec3c308ed6f7fc61f9afe1d5c80fe3
BLAKE2b-256 checksum
How to use checksums
7fa01a7a4533df266bbd6127fb52aed6fd5a3cebed3ef3a47c69809bc92c22ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 13, 2026.

Transparency log

Security for chaos-atlas 0.3.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for chaos_atlas-0.3.1.tar.gz

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 Nov 13, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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