| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f1b5017 commit cc1d9eb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,16 +2,15 @@ | |||
| 2 | 2 | from matplotlib import cm | |
| 3 | 3 | import matplotlib.pyplot as plt | |
| 4 | 4 | import numpy as np | |
| 5 | - import math | ||
| 6 | 5 | ||
| 7 | 6 | n_angles = 36 | |
| 8 | 7 | n_radii = 8 | |
| 9 | 8 | min_radius = 0.25 | |
| 10 | 9 | radii = np.linspace(min_radius, 0.95, n_radii) | |
| 11 | 10 | ||
| 12 | - angles = np.linspace(0, 2*math.pi, n_angles, endpoint=False) | ||
| 11 | + angles = np.linspace(0, 2*np.pi, n_angles, endpoint=False) | ||
| 13 | 12 | angles = np.repeat(angles[...,np.newaxis], n_radii, axis=1) | |
| 14 | - angles[:,1::2] += math.pi/n_angles | ||
| 13 | + angles[:,1::2] += np.pi/n_angles | ||
| 15 | 14 | ||
| 16 | 15 | x = np.append(0, (radii*np.cos(angles)).flatten()) | |
| 17 | 16 | y = np.append(0, (radii*np.sin(angles)).flatten()) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments