awacke1 commited on
Commit
42f4ad8
·
1 Parent(s): f33e347

Create new file

Browse files
Files changed (1) hide show
  1. app.py +313 -0
app.py ADDED
@@ -0,0 +1,313 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ edge [xdir=back arrowtail=odiamond]
3
+ Subsystem_1 -> "Shared resource" [xlabel=aggregation]
4
+ {Subsystem_2 Subsystem_3 } -> "Shared resource"
5
+ }
6
+ ''')
7
+
8
+
9
+
10
+ st.graphviz_chart('''
11
+ digraph G {
12
+ fontname="Helvetica,Arial,sans-serif"
13
+ node [fontname="Helvetica,Arial,sans-serif"]
14
+ edge [fontname="Helvetica,Arial,sans-serif"]
15
+ subgraph cluster_1 {
16
+ node [ style=filled,shape="box",fillcolor="antiquewhite:aquamarine" ]n5;
17
+ node [ shape="ellipse",fillcolor="bisque4:blue2" ]n4;
18
+ node [ shape="circle",fillcolor="cadetblue1:chocolate1" ]n3;
19
+ node [ shape="diamond",fillcolor="crimson:cyan4" ]n2;
20
+ node [ shape="triangle",fillcolor="deepskyblue2:firebrick" ]n1;
21
+ node [ shape="pentagon",fillcolor="gray24:gray88" ]n0;
22
+ label = "X11 Colors";
23
+ }
24
+ subgraph cluster_2 {
25
+ node [ style=filled,shape="box",fillcolor="bisque:brown" ]n11;
26
+ node [ shape="ellipse",fillcolor="green:darkorchid" ]n10;
27
+ node [ shape="circle",fillcolor="deepskyblue:gold" ]n9;
28
+ node [ shape="diamond",fillcolor="lightseagreen:orangered" ]n8;
29
+ node [ shape="triangle",fillcolor="turquoise:salmon" ]n7;
30
+ node [ shape="pentagon",fillcolor="snow:black" ]n6;
31
+ label = "SVG Colors";
32
+ }
33
+ subgraph cluster_3 {
34
+ node [ style=filled,shape="box",fillcolor="/accent3/1:/accent3/3" ]n17;
35
+ node [ shape="ellipse",fillcolor="/accent4/1:/accent4/4" ]n16;
36
+ node [ shape="circle",fillcolor="/accent5/1:/accent5/5" ]n15;
37
+ node [ shape="diamond",fillcolor="/accent6/1:/accent6/6" ]n14;
38
+ node [ shape="triangle",fillcolor="/accent7/1:/accent7/7" ]n13;
39
+ node [ shape="pentagon",fillcolor="/accent8/1:/accent8/8" ]n12;
40
+ label = "Brewer - accent";
41
+ }
42
+ subgraph cluster_4 {
43
+ node [ style=filled,shape="box",fillcolor="/blues3/1:/blues3/2" ]n23;
44
+ node [ shape="ellipse",fillcolor="/blues4/1:/blues4/3" ]n22;
45
+ node [ shape="circle",fillcolor="/blues5/1:/blues5/4" ]n21;
46
+ node [ shape="diamond",fillcolor="/blues6/1:/blues6/5" ]n20;
47
+ node [ shape="triangle",fillcolor="/blues7/1:/blues7/6" ]n19;
48
+ node [ shape="pentagon",fillcolor="/blues8/1:/blues8/7" ]n18;
49
+ label = "Brewer - blues";
50
+ }
51
+ n3 -> n9 -> n15 -> n21;
52
+ }
53
+ ''')
54
+
55
+ st.graphviz_chart('''
56
+ digraph G {bgcolor="#0000FF44:#FF000044" gradientangle=90
57
+ fontname="Helvetica,Arial,sans-serif"
58
+ node [fontname="Helvetica,Arial,sans-serif"]
59
+ edge [fontname="Helvetica,Arial,sans-serif"]
60
+ subgraph cluster_0 {
61
+ style=filled;
62
+ color=lightgrey;
63
+ fillcolor="darkgray:gold";
64
+ gradientangle=0
65
+ node [fillcolor="yellow:green" style=filled gradientangle=270] a0;
66
+ node [fillcolor="lightgreen:red"] a1;
67
+ node [fillcolor="lightskyblue:darkcyan"] a2;
68
+ node [fillcolor="cyan:lightslateblue"] a3;
69
+ a0 -> a1 -> a2 -> a3;
70
+ label = "process #1";
71
+ }
72
+ subgraph cluster_1 {
73
+ node [fillcolor="yellow:magenta"
74
+ style=filled gradientangle=270] b0;
75
+ node [fillcolor="violet:darkcyan"] b1;
76
+ node [fillcolor="peachpuff:red"] b2;
77
+ node [fillcolor="mediumpurple:purple"] b3;
78
+ b0 -> b1 -> b2 -> b3;
79
+ label = "process #2";
80
+ color=blue
81
+ fillcolor="darkgray:gold";
82
+ gradientangle=0
83
+ style=filled;
84
+ }
85
+ start -> a0;
86
+ start -> b0;
87
+ a1 -> b3;
88
+ b2 -> a3;
89
+ a3 -> a0;
90
+ a3 -> end;
91
+ b3 -> end;
92
+ start [shape=Mdiamond ,
93
+ fillcolor="pink:red",
94
+ gradientangle=90,
95
+ style=radial];
96
+ end [shape=Msquare,
97
+ fillcolor="lightyellow:orange",
98
+ style=radial,
99
+ gradientangle=90];
100
+ }
101
+ ''')
102
+
103
+ st.graphviz_chart('''
104
+ graph Color_wheel {
105
+ graph [
106
+ layout = neato
107
+ label = "Color wheel, 33 colors.\nNeato layout"
108
+ labelloc = b
109
+ fontname = "Helvetica,Arial,sans-serif"
110
+ start = regular
111
+ normalize = 0
112
+ ]
113
+ node [
114
+ shape = circle
115
+ style = filled
116
+ color = "#00000088"
117
+ fontname = "Helvetica,Arial,sans-serif"
118
+ ]
119
+ edge [
120
+ len = 2.7
121
+ color = "#00000088"
122
+ fontname = "Helvetica,Arial,sans-serif"
123
+ ]
124
+ subgraph Dark {
125
+ node [fontcolor = white width = 1.4]
126
+ center [width = 1 style = invis shape = point]
127
+ center -- darkred [label = "0°/360°"]
128
+ darkred [fillcolor = darkred]
129
+ brown [fillcolor = brown]
130
+ brown -- center [label = "30°"]
131
+ olive [fillcolor = olive]
132
+ olive -- center [label = "60°"]
133
+ darkolivegreen [fillcolor = darkolivegreen fontsize = 10]
134
+ darkolivegreen -- center [label = "90°"]
135
+ darkgreen [fillcolor = darkgreen]
136
+ darkgreen -- center [label = "120°"]
137
+ "dark hue 0.416" [color = ".416 1 .6" fontcolor = white]
138
+ "dark hue 0.416" -- center [label = "150°"]
139
+ darkcyan [fillcolor = darkcyan]
140
+ darkcyan -- center [label = "180°"]
141
+ "dark hue 0.583" [color = ".583 1 .6" fontcolor = white]
142
+ "dark hue 0.583" -- center [label = "210°"]
143
+ darkblue [fillcolor = darkblue]
144
+ darkblue -- center [label = "240°"]
145
+ "dark hue 0.750" [color = ".750 1 .6"]
146
+ "dark hue 0.750" -- center [label = "270°"]
147
+ darkmagenta [fillcolor = darkmagenta]
148
+ darkmagenta -- center [label = "300°"]
149
+ "dark hue 0.916" [color = ".916 1 .6"]
150
+ "dark hue 0.916" -- center [label = "330°"]
151
+ }
152
+ subgraph Tue {
153
+ node [width = 1.3]
154
+ "hue 0.083" -- brown
155
+ "hue 0.083" [color = ".083 1 1"]
156
+ "hue 0.125" [color = ".125 1 1"]
157
+ "hue 0.166" -- olive
158
+ "hue 0.166" [color = ".166 1 1"]
159
+ "hue 0.208" [color = ".208 1 1"]
160
+ "hue 0.250" -- darkolivegreen
161
+ "hue 0.250" [color = ".250 1 1"]
162
+ "hue 0.291" [color = ".291 1 1"]
163
+ "hue 0.333" -- darkgreen
164
+ "hue 0.333" [color = ".333 1 1"]
165
+ "hue 0.375" [color = ".375 1 1"]
166
+ "hue 0.416" -- "dark hue 0.416"
167
+ "hue 0.416" [color = ".416 1 1"]
168
+ "hue 0.458" [color = ".458 1 1"]
169
+ "hue 0.500" -- darkcyan
170
+ "hue 0.500" [color = ".500 1 1"]
171
+ "hue 0.541" [color = ".541 1 1"]
172
+ node [fontcolor = white]
173
+ "hue 0.000" [color = ".000 1 1"]
174
+ "hue 0.000" -- darkred
175
+ "hue 0.041" [color = ".041 1 1"]
176
+ "hue 0.583" -- "dark hue 0.583"
177
+ "hue 0.583" [color = ".583 1 1"]
178
+ "hue 0.625" [color = ".625 1 1"]
179
+ "hue 0.666" -- darkblue
180
+ "hue 0.666" [color = ".666 1 1"]
181
+ "hue 0.708" [color = ".708 1 1"]
182
+ "hue 0.750" -- "dark hue 0.750"
183
+ "hue 0.750" [color = ".750 1 1"]
184
+ "hue 0.791" [color = ".791 1 1"]
185
+ "hue 0.833" -- darkmagenta
186
+ "hue 0.833" [color = ".833 1 1"]
187
+ "hue 0.875" [color = ".875 1 1"]
188
+ "hue 0.916" -- "dark hue 0.916"
189
+ "hue 0.916" [color = ".916 1 1"]
190
+ "hue 0.958" [color = ".958 1 1"]
191
+ edge [len = 1]
192
+ "hue 0.000" -- "hue 0.041" -- "hue 0.083" -- "hue 0.125" -- "hue 0.166" -- "hue 0.208"
193
+ "hue 0.208" -- "hue 0.250" -- "hue 0.291" -- "hue 0.333" -- "hue 0.375" -- "hue 0.416"
194
+ "hue 0.416" -- "hue 0.458" -- "hue 0.500" --"hue 0.541" -- "hue 0.583" -- "hue 0.625"
195
+ "hue 0.625" -- "hue 0.666" -- "hue 0.708" -- "hue 0.750" -- "hue 0.791" -- "hue 0.833"
196
+ "hue 0.833" -- "hue 0.875" -- "hue 0.916" -- "hue 0.958" -- "hue 0.000"
197
+ }
198
+ subgraph Main_colors {
199
+ node [width = 2 fontsize = 20]
200
+ red [fillcolor = red fontcolor = white]
201
+ orangered [fillcolor = orangered]
202
+ orange [fillcolor = orange]
203
+ gold [fillcolor = gold]
204
+ yellow [fillcolor = yellow]
205
+ yellowgreen [fillcolor = yellowgreen]
206
+ deeppink [fillcolor = deeppink fontcolor = white]
207
+ fuchsia [label = "fuchsia\nmagenta" fillcolor = fuchsia fontcolor = white]
208
+ purple [fillcolor = purple fontcolor = white]
209
+ blue [fillcolor = blue fontcolor = white]
210
+ cornflowerblue [fillcolor = cornflowerblue]
211
+ deepskyblue [fillcolor = deepskyblue]
212
+ aqua [fillcolor = aqua label = "aqua\ncyan"]
213
+ springgreen [fillcolor = springgreen]
214
+ green [fillcolor = green]
215
+ purple -- fuchsia -- deeppink -- red
216
+ cornflowerblue -- blue -- purple
217
+ cornflowerblue -- deepskyblue -- aqua [len = 1.7]
218
+ aqua -- springgreen -- green -- yellowgreen -- yellow
219
+ yellow -- gold -- orange -- orangered -- red [len = 1.6]
220
+ orange -- "hue 0.083"
221
+ deeppink -- "hue 0.916"
222
+ deeppink -- "hue 0.875"
223
+ red -- "hue 0.000"
224
+ yellowgreen -- "hue 0.250"
225
+ blue -- "hue 0.666"
226
+ yellow -- "hue 0.166"
227
+ gold -- "hue 0.125"
228
+ green -- "hue 0.333"
229
+ springgreen -- "hue 0.416"
230
+ aqua -- "hue 0.500"
231
+ cornflowerblue -- "hue 0.583"
232
+ deepskyblue -- "hue 0.541"
233
+ purple -- "hue 0.791"
234
+ purple -- "hue 0.750"
235
+ fuchsia -- "hue 0.833"
236
+ }
237
+ subgraph Light_colors {
238
+ node [width = 2 fontsize = 20]
239
+ node [shape = circle width = 1.8]
240
+ edge [len = 2.1]
241
+ pink [fillcolor = pink]
242
+ pink -- red
243
+ lightyellow [fillcolor = lightyellow]
244
+ lightyellow -- yellow
245
+ mediumpurple [fillcolor = mediumpurple]
246
+ mediumpurple -- purple
247
+ violet [fillcolor = violet]
248
+ violet -- fuchsia
249
+ hotpink [fillcolor = hotpink]
250
+ hotpink -- deeppink
251
+ "light hue 0.250" [color = ".250 .2 1"]
252
+ "light hue 0.250" -- yellowgreen
253
+ lightcyan [fillcolor = lightcyan]
254
+ lightcyan -- aqua
255
+ lightslateblue [fillcolor = lightslateblue]
256
+ lightslateblue -- blue
257
+ lightgreen [fillcolor = lightgreen]
258
+ lightgreen -- green
259
+ lightskyblue [fillcolor = lightskyblue]
260
+ lightskyblue -- deepskyblue
261
+ peachpuff [fillcolor = peachpuff]
262
+ peachpuff -- orange
263
+ "light hue 0.416" [color = ".416 .2 1"]
264
+ "light hue 0.416" -- springgreen
265
+ }
266
+ subgraph Tints {
267
+ node [width = 1]
268
+ edge [len = 2.4]
269
+ "hue 0 tint" -- pink
270
+ "hue 0 tint" [color = "0 .1 1"]
271
+ "hue 0.041 tint" [color = ".041 .1 1"]
272
+ "hue 0.083 tint" -- peachpuff
273
+ "hue 0.083 tint" [color = ".083 .1 1"]
274
+ "hue 0.125 tint" [color = ".125 .1 1"]
275
+ "hue 0.166 tint" -- lightyellow
276
+ "hue 0.166 tint" [color = ".166 .1 1"]
277
+ "hue 0.208 tint" [color = ".208 .1 1"]
278
+ "hue 0.250 tint" -- "light hue 0.250"
279
+ "hue 0.250 tint" [color = ".250 .1 1"]
280
+ "hue 0.291 tint" [color = ".291 .1 1"]
281
+ "hue 0.333 tint" -- lightgreen
282
+ "hue 0.333 tint" [color = ".333 .1 1"]
283
+ "hue 0.375 tint" [color = ".375 .1 1"]
284
+ "hue 0.416 tint" -- "light hue 0.416"
285
+ "hue 0.416 tint" [color = ".416 .1 1"]
286
+ "hue 0.458 tint" [color = ".458 .1 1"]
287
+ "hue 0.5 tint" -- lightcyan
288
+ "hue 0.5 tint" [color = ".5 .1 1"]
289
+ "hue 0.541 tint" -- lightskyblue
290
+ "hue 0.541 tint" [color = ".541 .1 1"]
291
+ "hue 0.583 tint" [color = ".583 .1 1"]
292
+ "hue 0.625 tint" [color = ".625 .1 1"]
293
+ "hue 0.666 tint" -- lightslateblue
294
+ "hue 0.666 tint" [color = ".666 .1 1"]
295
+ "hue 0.708 tint" [color = ".708 .1 1"]
296
+ "hue 0.750 tint" -- mediumpurple
297
+ "hue 0.750 tint" [color = ".750 .1 1"]
298
+ "hue 0.791 tint" [color = ".791 .1 1"]
299
+ "hue 0.833 tint" -- violet
300
+ "hue 0.833 tint" [color = ".833 .1 1"]
301
+ "hue 0.875 tint" [color = ".875 .1 1"]
302
+ "hue 0.916 tint" -- hotpink
303
+ "hue 0.916 tint" [color = ".916 .1 1"]
304
+ "hue 0.958 tint" [color = ".958 .1 1"]
305
+ edge [len = 2]
306
+ "hue 0 tint" -- "hue 0.041 tint" -- "hue 0.083 tint" -- "hue 0.125 tint" -- "hue 0.166 tint" -- "hue 0.208 tint"
307
+ "hue 0.208 tint" -- "hue 0.250 tint" -- "hue 0.291 tint" -- "hue 0.333 tint" -- "hue 0.375 tint" -- "hue 0.416 tint"
308
+ "hue 0.416 tint" -- "hue 0.458 tint" -- "hue 0.5 tint" --"hue 0.541 tint" -- "hue 0.583 tint" -- "hue 0.625 tint"
309
+ "hue 0.625 tint" -- "hue 0.666 tint" -- "hue 0.708 tint" -- "hue 0.750 tint" -- "hue 0.791 tint" -- "hue 0.833 tint"
310
+ "hue 0.833 tint" -- "hue 0.875 tint" -- "hue 0.916 tint" -- "hue 0.958 tint" -- "hue 0 tint"
311
+ }
312
+ }
313
+ ''')