chiark / gitweb /
better pic
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 4 Nov 2017 21:47:18 +0000 (21:47 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 4 Nov 2017 21:47:18 +0000 (21:47 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
check.py

index 7ee4a1e70c36434dfece9801ee9406162dc24725..6bcf1a11de0cedb5b23e2b9f98a4bb5b500b3253 100644 (file)
--- a/check.py
+++ b/check.py
@@ -8,16 +8,20 @@ import numpy as np
 
 from moebius import *
 
-n_u = 20
+n_u = 40
 
 m = Moebius(n_u)
 
-ts = np.linspace(0, 1, 20)
+ts = np.linspace(0, 1, 40)
 
-thetas = np.linspace(0, tau, 20)
+thetas = np.linspace(0, tau, 40)
 
 c0 = curve( color=color.red, pos = [ m.edge.point(th) for th in thetas ] )
 c1 = curve( color=color.blue, pos = [ m.midline.point(th) for th in thetas ] )
 
 for ix_u in range(0, n_u):
   c2 = curve( pos = [ m.point(ix_u, t) for t in ts ] )
+
+for t in ts:
+  c3 = curve( color=color.yellow, pos = [ m.point(ix_u, t)
+                                          for ix_u in range(0, n_u+1) ] )