Skip to content

Instantly share code, notes, and snippets.

Created July 21, 2021 14:24
What would you like to do?
Phyllotaxis in Python
%matplotlib inline
from math import cos, sin, sqrt, pi
import numpy as np
import matplotlib.pyplot as plt
# golden angle definition
ga = 360/((1+sqrt(5))/2)**2
# initialize random array
a = np.zeros((1000, 2))
# update the positions of each point
for i in range(len(a)):
a[i] = [
# plot the distribution
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment