Skip to content

pablo727/random-walk-matplotlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Walk Visualizer

This Python project generates and visualizes random walks using Matplotlib. The program simulates simulate the path of a pollen grain on the surface of a drop of water with a gradient color effect.

Features

  • Generates 5000 random steps (default) in 2D.
  • Uses Matplotlib to plot smooth, color-gradient paths.
  • Highlights the start point (green) and end point (red).
  • Allows continuous generation of new random walks.

Installation

  1. Clone the repository: https://github.com/pablo727/random-walk-matplotlib
  2. Install dependencies: pip install matplotlib
  3. Run the script: python molecular_motion.py

Example Output

Random Walk Example

License

This project is open-source. Feel free to modify and experiment!

About

This project generates random walks and visualizes them using Matplotlib.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages