Skip to main content

PyPI Downloads PyPI Version

Commit activity License Build

Python Version Wheel





from matplotlib import pyplot
import numpy

import phaseportrait

def pendulum(θ, dθ):
    return dθ, - 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:

Release files for phaseportrait 1.3.3

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

Source distribution (sdist)

Source distribution for phaseportrait 1.3.3
File Size Uploaded
phaseportrait-1.3.3.tar.gz 36.3 kB Details

Built distribution (wheel)

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

Total release size: 84.0 kB

Release files / phaseportrait-1.3.3.tar.gz

Download URL phaseportrait-1.3.3.tar.gz
Size 36.3 kB
Tags Source
SHA-256 checksum
How to use checksums
34eba7c35399ba0e614e99949100416b04c5ec551cbf54111346626fff192329
BLAKE2b-256 checksum
How to use checksums
60baaaf32d650097a67366e85bcb96e81fc3f3858a465c32626936c1c5033b79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / phaseportrait-1.3.3-py3-none-any.whl

Download URL phaseportrait-1.3.3-py3-none-any.whl
Size 47.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
efdd1072469cb8cd1c9dbe1e8d118db9d4b950591a2da022a1d819f594be9712
BLAKE2b-256 checksum
How to use checksums
2812e018c1eebe7ad49edd91991aad86f3e39d5e12375e6c8ef42fafae064060
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release history Release notifications | RSS feed

This release

1.3.3 This release

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.2

2 release files

1.1.0

1 release file

1.0.4

2 release files

1.0.0

1 release file

0.1.1

1 release file

0.1.0

1 release 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