Scripts to visualize sorting algorithms using matplotlib animations
- Bubble sort
- Quick sort
- Heap sort
- Select Sort
The aim of this project is to make sorting algorithms easier to visualize and understand, using the animation capabilities of matplotlib.
- Python 3.6+
- Matplotlib
- Celluloid module(https://github.com/jwkvam/celluloid)
- Image magick to save as gif or ffmpeg to save as mp4
-
Install Matplotlib and Celluloid(if not already installed)
pip install celluloid
pip install matplotlib
-
Install ImageMagick or ffmpeg(optional)
-
Run main.py
python main.py
- Select the algorithm
- Select the type of graph
- Choose if you want to save