GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - phaseportrait/phaseportrait: A simple way to do 2D and 3D phase portraits.

BranchesTags
Open more actions menu

Latest commit

 

History

149 Commits
149 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
docs
docs
 
 
examples
examples
 
 
phaseportrait
phaseportrait
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
MANIFEST.in
MANIFEST.in
 
 
README.md
README.md
 
 
README_no_imgs.md
README_no_imgs.md
 
 
mkdocs.yml
mkdocs.yml
 
 
pyproject.toml
pyproject.toml
 
 
setup.cfg
setup.cfg
 
 
setup.py
setup.py
 
 

Repository files navigation

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

  • Víctor Loras Herrero ([email protected])
  • Unai Lería Fortea ([email protected])

Contributing

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

  • Fork the project, add a new feature / improve the existing ones and pull a request via GitHub.
  • Contact us on our emails:
    • [email protected]
    • [email protected]

About

A simple way to do 2D and 3D phase portraits.

Topics

3d-trajectory-visualizationcobweb-plotlogistic-mapsphase-diagramphase-portraitpython

Resources

Readme
MIT license

Contributing

Contributing
Activity
Custom properties

Stars

51 stars

Watchers

2 watching

Forks

7 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.