A playground for mathematical visualization and graphics, featuring:
- Python/Matplotlib: Plotting and exploring mathematical surfaces and toy models in 3D.
- 3D plotting scripts for:
- Klein bottle
- Möbius strip
- Boy's surface
- Enneper surface
- Roman surface
- Torus
- Whitney umbrella
- Schwarz P surface
- Gyroid
- Helicoid
- Catenoid
- Cross-cap
- Dini’s surface
- Scherk’s minimal surface
- (Recommended) Create a virtual environment:
python3 -m venv .venv source .venv/bin/activate - Install dependencies:
pip install -r requirements.txt
- Run any math toy script, e.g.:
python klein_bottle.py python mobius_strip.py # ...etc
papal/
├── klein_bottle.py # Python Klein bottle plot
├── mobius_strip.py # Python Möbius strip plot
├── boys_surface.py # Boy's surface
├── enneper_surface.py # Enneper surface
├── roman_surface.py # Roman surface
├── torus.py # Torus
├── whitney_umbrella.py # Whitney umbrella
├── schwarz_p_surface.py# Schwarz P surface
├── gyroid.py # Gyroid
├── helicoid.py # Helicoid
├── catenoid.py # Catenoid
├── cross_cap.py # Cross-cap
├── dinis_surface.py # Dini’s surface
├── scherk_minimal.py # Scherk’s minimal surface
├── requirements.txt
├── pyproject.toml
├── README.md
└── .gitignore
- For matplotlib 3D plots, you may need
python3-tkorPyQt5for interactive windows. - All scripts are self-contained and can be run independently.
- Contributions and new math toys are welcome!