Skip to content

A-n-d-R-o/Python-Lissajous-Figure-Maker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Lissajous Figure Maker

Python code for plotting Lissajous figures as either PNGs or GIFs through Matplotlib.

The code constructs Lissajous figures from the parametric equations $x = A_x \sin (\omega_x t)$ and $y = A_y \sin (\omega_y t + \phi)$. Where the values $A_x$, $\omega_x$, $A_y$, $\omega_y$ and $\phi$ can all be specified by the user. To achieve the animated figures, set vary_phase to True, which ignores any phase input and automatically cycles $\phi$ through $0$ to $2 \pi$.

Depending on the system this code is run on, it could take upwards of 2 minutes for high-resolution GIFs to be created, and even longer for the images to be displayed, if display is set to True. However, an upside is that the code can be easily edited — figure sizes, number of samples, colours, etc. can all be tweaked to produce personalised figures.

About

Python code for plotting Lissajous figures as either PNGs or GIFs through Matplotlib.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages