add comment with 5 corner star+
Browse files
app.py
CHANGED
@@ -23,4 +23,27 @@ def stars(n):
|
|
23 |
|
24 |
iface = gr.Interface(stars, gr.inputs.Slider(1, 100, 1), "plot")
|
25 |
|
26 |
-
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
iface = gr.Interface(stars, gr.inputs.Slider(1, 100, 1), "plot")
|
25 |
|
26 |
+
iface.launch()
|
27 |
+
|
28 |
+
|
29 |
+
|
30 |
+
|
31 |
+
# n = 50
|
32 |
+
# plt.figure(figsize=(20,20), facecolor=(0.5, 0.5, 0.5))
|
33 |
+
# for i, j in zip(range(1,n), range(n, 1, -1)):
|
34 |
+
|
35 |
+
# zi = i / (2**(1/2))
|
36 |
+
# zj = j / (2**(1/2))
|
37 |
+
|
38 |
+
# plt.plot([zi, 0], [zi, j], "k", linewidth=1)
|
39 |
+
# plt.plot([zi, j], [zi, 0], "w", linewidth=1)
|
40 |
+
|
41 |
+
# plt.plot([-zi, 0], [zi, j], "w", linewidth=1)
|
42 |
+
# plt.plot([-zi, -j], [zi, 0], "k", linewidth=1)
|
43 |
+
|
44 |
+
# plt.plot([zi, 0], [-zi, -j], "w", linewidth=1)
|
45 |
+
# plt.plot([zi, j], [-zi, 0], "k", linewidth=1)
|
46 |
+
|
47 |
+
# plt.plot([-zi, 0], [-zi, -j], "k", linewidth=1)
|
48 |
+
# plt.plot([-zi, -j], [-zi, 0], "w", linewidth=1)
|
49 |
+
# plt.axis('off')
|