Skip to content

Instantly share code, notes, and snippets.

@wbrigg
wbrigg / CoordinateDeformation.py
Created January 18, 2020 16:01
Generates Nice looking galaxies based on a bunch of parameters.
import numpy as np
from matplotlib import pyplot
n_grid_lines = 250
x = np.linspace(-1, 1, n_grid_lines)
y = np.linspace(-1, 1, n_grid_lines)
xx, yy = np.meshgrid(x, y)