Skip to main content

A python package for visualizing non-linear dynamics and chaos. (2D phase portraits, 3D chaotic trajectories, Maps, Cobweb plots...)

Project description

PyPI Downloads PyPI Version

Commit activity License Build

Python Version Wheel





from matplotlib import pyplot
import numpy

import phaseportrait

def pendulum(θ, ):
    return , - numpy.sin(θ)

SimplePendulum = phaseportrait.PhasePortrait2D(pendulum, [-9, 9], Title='Simple pendulum', xlabel=r"$\Theta$", ylabel=r"$\dot{\Theta}$")
SimplePendulum.plot()

pyplot.show()

Documentation

To check out phaseportrait's documentation, view some examples and read more about it, check our website or try our Graphical User Interface!

Installation

Installing via pip:

Phaseportrait releases are available as wheel packages for macOS, Windows and Linux on PyPI. Install it using pip:

$ pip install phaseportrait

Installing from source:

Open a terminal on desired route and type the following:

$ git clone https://github.com/phaseportrait/phaseportrait

Manual installation

Visit phase-portrait webpage on GitHub. Click on green button saying Code, and download it in zip format. Save and unzip on desired directory.

What's this?

The idea behind this project was to create a simple way to make phase portraits in 2D and 3D in Python, as we couldn't find something similar on the internet, so we got down to work. (Update: found jmoy/plotdf, offers similar 2D phase plots but it is very limited).

Eventually, we did some work on bifurcations, 1D maps and chaos in 3D trayectories.

This idea came while taking a course in non linear dynamics and chaos, during the 3rd year of physics degree, brought by our desire of visualizing things and programming.

We want to state that we are self-taught into making this kind of stuff, and we've tried to make things as professionally as possible, any comments about improving our work are welcome!

Authors

Contributing

This proyect is open-source, everyone can download, use and contribute. To do that, several options are offered:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

phaseportrait-1.3.2.tar.gz (34.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

phaseportrait-1.3.2-py3-none-any.whl (46.1 kB view details)

Uploaded Python 3

File details

Details for the file phaseportrait-1.3.2.tar.gz.

File metadata

  • Download URL: phaseportrait-1.3.2.tar.gz
  • Upload date:
  • Size: 34.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for phaseportrait-1.3.2.tar.gz
Algorithm Hash digest
SHA256 d9b27fdf0c6e03d7d45bb0091e913b1810741a2b717fa5ef3e9b1b48e8d753aa
MD5 6c969fc930149d2117db32959cb6e52d
BLAKE2b-256 bfb54fd4da36708eabd98eda613f393b2b2477602543d08d8a8c85b5f4f0f511

See more details on using hashes here.

File details

Details for the file phaseportrait-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: phaseportrait-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 46.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for phaseportrait-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a926092a28e0b68f203b4a6662b99708db89e6bab4eabc744cc3b4f742142cc1
MD5 86cc64b0b940235b28d5eeae28bb2463
BLAKE2b-256 5e09836fc987259802d4fcf316ad7550e4382b60fe40cf8c00be507439be7297

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page