A beginner-friendly Python project that simulates 2D Keplerian orbits of planets around the Sun with real elliptical geometry, beautiful plots, and Excel + GIF exports.
This project simulates elliptical orbits for multiple bodies around the Sun using Kepler’s equation, rendered with matplotlib.
It’s fully offline, non-interactive (Agg backend), and exports plots, animation (optional GIF), and tidy ephemeris data in Excel.
- Simulates orbits for Mercury → Saturn and a high-eccentricity comet ☄️
- Solves Kepler’s equation with Newton–Raphson method
- Produces two static plots (full system + inner planets)
- Black background with colored bodies (yellow Sun, blue/green Earth, white comet)
- Optional animated GIF using
imageio - Exports orbital data to Excel (
orbit_ephemeris.xlsx)
git clone https://github.com/Rishi943/orbit-visualizer.git
cd orbit-visualizer