A focused collection of plots from Python for Astrophysics — Workshop 1. The project uses NumPy for numerical arrays and Matplotlib for scientific visualization.
Linear, quadratic, and quartic functions demonstrate how polynomial degree changes a curve's rate of growth. The panels also compare line, scatter, and stem plots.
Sine and cosine plots explore domain, amplitude, and phase—ideas that appear throughout wave mechanics, orbital motion, and signal analysis.
Position, velocity, and acceleration are plotted for an object dropped from 100 m. The idealized model assumes no air resistance and constant gravitational acceleration:
astrophysics_visualizations.ipynb— annotated, executable walkthroughmake_figures.py— standalone script that regenerates every imagefigures/— GitHub-ready SVG outputs used in this READMErequirements.txt— Python dependencies
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install -r requirements.txt
python make_figures.py
jupyter notebook astrophysics_visualizations.ipynb- Python
- NumPy
- Matplotlib
- Jupyter Notebook
Created by Justin Kang as part of a Python for Astrophysics workshop.