Skip to content

About

Scientific plots from the Python for Astrophysics workshop, built with NumPy and Matplotlib

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

Python for Astrophysics: Visualization Portfolio

A focused collection of plots from Python for Astrophysics — Workshop 1. The project uses NumPy for numerical arrays and Matplotlib for scientific visualization.

Highlights

Polynomial growth

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.

Linear, quadratic, and quartic growth

Periodic waves

Sine and cosine plots explore domain, amplitude, and phase—ideas that appear throughout wave mechanics, orbital motion, and signal analysis.

Four periodic-wave visualizations

Free-fall kinematics

Position, velocity, and acceleration are plotted for an object dropped from 100 m. The idealized model assumes no air resistance and constant gravitational acceleration:

$$ y(t) = y_0 + v_0t - \frac{1}{2}gt^2, \qquad v(t) = v_0 - gt, \qquad a(t) = -g. $$

Position, velocity, and acceleration in free fall

Repository contents

  • astrophysics_visualizations.ipynb — annotated, executable walkthrough
  • make_figures.py — standalone script that regenerates every image
  • figures/ — GitHub-ready SVG outputs used in this README
  • requirements.txt — Python dependencies

Run locally

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

Tools

  • Python
  • NumPy
  • Matplotlib
  • Jupyter Notebook

Created by Justin Kang as part of a Python for Astrophysics workshop.

About

Scientific plots from the Python for Astrophysics workshop, built with NumPy and Matplotlib

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages