Aaron C Wacker commited on
Commit
42b042e
·
unverified ·
1 Parent(s): 8278004

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +547 -0
app.py ADDED
@@ -0,0 +1,547 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import graphviz as graphviz
3
+ import pydeck as pdk
4
+ import pandas as pd
5
+ import numpy as np
6
+
7
+ st.title('Graphviz Gallery: https://graphviz.org/gallery/')
8
+
9
+ # Using code:
10
+
11
+ # Create a graphlib graph object
12
+ graph = graphviz.Digraph()
13
+ graph.edge('Grandpa', 'Ancestors')
14
+ graph.edge('Grandma', 'Ancestors')
15
+ graph.edge('Uncle', 'Grandma')
16
+ graph.edge('Aunt', 'Grandma')
17
+ graph.edge('Mom', 'Grandma')
18
+ graph.edge('Cousin Bob', 'Aunt')
19
+ graph.edge('Cousin Sue', 'Aunt')
20
+ graph.edge('Brother', 'Mom')
21
+ graph.edge('Sister', 'Mom')
22
+ st.graphviz_chart(graph)
23
+
24
+
25
+ st.graphviz_chart('''
26
+ digraph G2 {
27
+ node [shape=plaintext];
28
+ struct1 [label=<<TABLE>
29
+ <TR><TD><IMG SRC="1.png"></IMG></TD></TR>
30
+ <TR><TD>caption</TD></TR>
31
+ </TABLE>>];
32
+ }
33
+ ''')
34
+
35
+
36
+
37
+ st.title('Graphviz Dot Language: https://graphviz.org/doc/info/lang.html')
38
+
39
+ # Using graph language:
40
+ st.graphviz_chart('''
41
+ digraph G {
42
+ rankdir=LR
43
+ node [shape=plaintext]
44
+ a [
45
+ label=<
46
+ <TABLE BORDER="0" CELLBORDER="1" CELLSPACING="0">
47
+ <TR><TD ROWSPAN="3" BGCOLOR="yellow">class</TD></TR>
48
+ <TR><TD PORT="here" BGCOLOR="lightblue">qualifier</TD></TR>
49
+ </TABLE>>
50
+ ]
51
+ b [shape=ellipse style=filled
52
+ label=<
53
+ <TABLE BGCOLOR="bisque">
54
+ <TR>
55
+ <TD COLSPAN="3">elephant</TD>
56
+ <TD ROWSPAN="2" BGCOLOR="chartreuse"
57
+ VALIGN="bottom" ALIGN="right">two</TD>
58
+ </TR>
59
+ <TR>
60
+ <TD COLSPAN="2" ROWSPAN="2">
61
+ <TABLE BGCOLOR="grey">
62
+ <TR><TD>corn</TD></TR>
63
+ <TR><TD BGCOLOR="yellow">c</TD></TR>
64
+ <TR><TD>f</TD></TR>
65
+ </TABLE>
66
+ </TD>
67
+ <TD BGCOLOR="white">penguin</TD>
68
+ </TR>
69
+ <TR>
70
+ <TD COLSPAN="2" BORDER="4" ALIGN="right" PORT="there">4</TD>
71
+ </TR>
72
+ </TABLE>>
73
+ ]
74
+ c [
75
+ label=<long line 1<BR/>line 2<BR ALIGN="LEFT"/>line 3<BR ALIGN="RIGHT"/>>
76
+ ]
77
+ subgraph { rank=same b c }
78
+ a:here -> b:there [dir=both arrowtail=diamond]
79
+ c -> b
80
+ d [shape=triangle]
81
+ d -> c [label=<
82
+ <TABLE>
83
+ <TR>
84
+ <TD BGCOLOR="red" WIDTH="10"> </TD>
85
+ <TD>Edge labels<BR/>also</TD>
86
+ <TD BGCOLOR="blue" WIDTH="10"> </TD>
87
+ </TR>
88
+ </TABLE>>
89
+ ]
90
+ }
91
+ ''')
92
+
93
+ st.graphviz_chart('''
94
+ digraph R {
95
+ rankdir=LR
96
+ node [style=rounded]
97
+ node1 [shape=box]
98
+ node2 [fillcolor=yellow, style="rounded,filled", shape=diamond]
99
+ node3 [shape=record, label="{ a | b | c }"]
100
+ node1 -> node2 -> node3
101
+ }
102
+ ''')
103
+
104
+
105
+ # pydeck example
106
+ st.title('Pydeck Example: https://docs.streamlit.io/library/api-reference/charts/st.pydeck_chart')
107
+ df = pd.DataFrame(
108
+ np.random.randn(1000, 2) / [50, 50] + [44.9366, -93.6661],
109
+ columns=['lat', 'lon'])
110
+
111
+ # 44.9366° N, -93.6661° W : Mound MN
112
+ st.pydeck_chart(pdk.Deck(
113
+ map_style=None,
114
+ initial_view_state=pdk.ViewState(
115
+ latitude=44.9366,
116
+ longitude=-93.6661,
117
+ zoom=11,
118
+ pitch=50,
119
+ ),
120
+ layers=[
121
+ pdk.Layer(
122
+ 'HexagonLayer',
123
+ data=df,
124
+ get_position='[lon, lat]',
125
+ radius=200,
126
+ elevation_scale=4,
127
+ elevation_range=[0, 1000],
128
+ pickable=True,
129
+ extruded=True,
130
+ ),
131
+ pdk.Layer(
132
+ 'ScatterplotLayer',
133
+ data=df,
134
+ get_position='[lon, lat]',
135
+ get_color='[200, 30, 0, 160]',
136
+ get_radius=200,
137
+ ),
138
+ ],
139
+ ))
140
+
141
+ st.title('Vega Lite Example: https://docs.streamlit.io/library/api-reference/charts/st.vega_lite_chart ')
142
+ df = pd.DataFrame(
143
+ np.random.randn(200, 3),
144
+ columns=['a', 'b', 'c'])
145
+
146
+ st.vega_lite_chart(df, {
147
+ 'mark': {'type': 'circle', 'tooltip': True},
148
+ 'encoding': {
149
+ 'x': {'field': 'a', 'type': 'quantitative'},
150
+ 'y': {'field': 'b', 'type': 'quantitative'},
151
+ 'size': {'field': 'c', 'type': 'quantitative'},
152
+ 'color': {'field': 'c', 'type': 'quantitative'},
153
+ },
154
+ })
155
+
156
+ # More graph examples
157
+
158
+ st.graphviz_chart('''
159
+ digraph structs {
160
+ node [shape=record];
161
+ struct1 [label="<f0> left|<f1> mid&#92; dle|<f2> right"];
162
+ struct2 [label="<f0> one|<f1> two"];
163
+ struct3 [label="hello&#92;nworld |{ b |{c|<here> d|e}| f}| g | h"];
164
+ struct1:f1 -> struct2:f0;
165
+ struct1:f2 -> struct3:here;
166
+ }
167
+ ''')
168
+
169
+ st.graphviz_chart('''
170
+ graph G {
171
+ fontname="Helvetica,Arial,sans-serif"
172
+ node [fontname="Helvetica,Arial,sans-serif"]
173
+ edge [fontname="Helvetica,Arial,sans-serif"]
174
+ layout=fdp
175
+ e
176
+ subgraph clusterA {
177
+ a -- b;
178
+ subgraph clusterC {
179
+ C -- D;
180
+ }
181
+ }
182
+ subgraph clusterB {
183
+ d -- f
184
+ }
185
+ d -- D
186
+ e -- clusterB
187
+ clusterC -- clusterB
188
+ }
189
+ ''')
190
+
191
+ st.graphviz_chart('''
192
+ graph Transparency {
193
+ layout=neato
194
+ start=11 // empiric value to set orientation
195
+ bgcolor="#0000ff11"
196
+ node [shape=circle width=2.22 label="" style=filled]
197
+ 5 [color="#0000ff80"]
198
+ 6 [color="#ee00ee80"]
199
+ 1 [color="#ff000080"]
200
+ 2 [color="#eeee0080"]
201
+ 3 [color="#00ff0080"]
202
+ 4 [color="#00eeee80"]
203
+ 1 -- 2 -- 3 -- 4 -- 5 -- 6 -- 1
204
+ }
205
+ ''')
206
+
207
+ st.graphviz_chart('''
208
+ digraph UML_Class_diagram {
209
+ fontname="Helvetica,Arial,sans-serif"
210
+ node [fontname="Helvetica,Arial,sans-serif"]
211
+ edge [fontname="Helvetica,Arial,sans-serif"]
212
+ labelloc="t"
213
+ label="UML Class diagram demo"
214
+ graph [splines=false]
215
+ node [shape=record style=filled fillcolor=gray95]
216
+ edge [arrowhead=vee style=dashed]
217
+ Client -> Interface1 [xlabel=dependency]
218
+ Client -> Interface2
219
+ edge [dir=back arrowtail=empty style=""]
220
+ Interface1 -> Class1 [xlabel=inheritance]
221
+ Interface2 -> Class1 [dir=none]
222
+ Interface2 [label="" xlabel="Simple\ninterface" shape=circle]
223
+ Interface1[label = <{<b>«interface» I/O</b> | + property<br align="left"/>...<br align="left"/>|+ method<br align="left"/>...<br align="left"/>}>]
224
+ Class1[label = <{<b>I/O class</b> | + property<br align="left"/>...<br align="left"/>|+ method<br align="left"/>...<br align="left"/>}>]
225
+ edge [dir=back arrowtail=empty style=dashed]
226
+ Class1 -> System_1 [xlabel=implementation]
227
+ System_1 [label = <{<b>System</b> | + property<br align="left"/>...<br align="left"/>|+ method<br align="left"/>...<br align="left"/>}>]
228
+ "Shared resource" [label = <{<b>Shared resource</b> | + property<br align="left"/>...<br align="left"/>|+ method<br align="left"/>...<br align="left"/>}>]
229
+ edge [dir=back arrowtail=diamond]
230
+ "System_1" -> Subsystem_1 [xlabel="composition"]
231
+ Subsystem_1[label = <{<b>Subsystem 1</b> | + property<br align="left"/>...<br align="left"/>|+ method<br align="left"/>...<br align="left"/>}>]
232
+ Subsystem_2[label = <{<b>Subsystem 2</b> | + property<br align="left"/>...<br align="left"/>|+ method<br align="left"/>...<br align="left"/>}>]
233
+ Subsystem_3[label = <{<b>Subsystem 3</b> | + property<br align="left"/>...<br align="left"/>|+ method<br align="left"/>...<br align="left"/>}>]
234
+ "System_1" -> Subsystem_2
235
+ "System_1" -> Subsystem_3
236
+ edge [xdir=back arrowtail=odiamond]
237
+ Subsystem_1 -> "Shared resource" [xlabel=aggregation]
238
+ {Subsystem_2 Subsystem_3 } -> "Shared resource"
239
+ }
240
+ ''')
241
+
242
+
243
+
244
+ st.graphviz_chart('''
245
+ digraph G {
246
+ fontname="Helvetica,Arial,sans-serif"
247
+ node [fontname="Helvetica,Arial,sans-serif"]
248
+ edge [fontname="Helvetica,Arial,sans-serif"]
249
+ subgraph cluster_1 {
250
+ node [ style=filled,shape="box",fillcolor="antiquewhite:aquamarine" ]n5;
251
+ node [ shape="ellipse",fillcolor="bisque4:blue2" ]n4;
252
+ node [ shape="circle",fillcolor="cadetblue1:chocolate1" ]n3;
253
+ node [ shape="diamond",fillcolor="crimson:cyan4" ]n2;
254
+ node [ shape="triangle",fillcolor="deepskyblue2:firebrick" ]n1;
255
+ node [ shape="pentagon",fillcolor="gray24:gray88" ]n0;
256
+ label = "X11 Colors";
257
+ }
258
+ subgraph cluster_2 {
259
+ node [ style=filled,shape="box",fillcolor="bisque:brown" ]n11;
260
+ node [ shape="ellipse",fillcolor="green:darkorchid" ]n10;
261
+ node [ shape="circle",fillcolor="deepskyblue:gold" ]n9;
262
+ node [ shape="diamond",fillcolor="lightseagreen:orangered" ]n8;
263
+ node [ shape="triangle",fillcolor="turquoise:salmon" ]n7;
264
+ node [ shape="pentagon",fillcolor="snow:black" ]n6;
265
+ label = "SVG Colors";
266
+ }
267
+ subgraph cluster_3 {
268
+ node [ style=filled,shape="box",fillcolor="/accent3/1:/accent3/3" ]n17;
269
+ node [ shape="ellipse",fillcolor="/accent4/1:/accent4/4" ]n16;
270
+ node [ shape="circle",fillcolor="/accent5/1:/accent5/5" ]n15;
271
+ node [ shape="diamond",fillcolor="/accent6/1:/accent6/6" ]n14;
272
+ node [ shape="triangle",fillcolor="/accent7/1:/accent7/7" ]n13;
273
+ node [ shape="pentagon",fillcolor="/accent8/1:/accent8/8" ]n12;
274
+ label = "Brewer - accent";
275
+ }
276
+ subgraph cluster_4 {
277
+ node [ style=filled,shape="box",fillcolor="/blues3/1:/blues3/2" ]n23;
278
+ node [ shape="ellipse",fillcolor="/blues4/1:/blues4/3" ]n22;
279
+ node [ shape="circle",fillcolor="/blues5/1:/blues5/4" ]n21;
280
+ node [ shape="diamond",fillcolor="/blues6/1:/blues6/5" ]n20;
281
+ node [ shape="triangle",fillcolor="/blues7/1:/blues7/6" ]n19;
282
+ node [ shape="pentagon",fillcolor="/blues8/1:/blues8/7" ]n18;
283
+ label = "Brewer - blues";
284
+ }
285
+ n3 -> n9 -> n15 -> n21;
286
+ }
287
+ ''')
288
+
289
+ st.graphviz_chart('''
290
+ digraph G {bgcolor="#0000FF44:#FF000044" gradientangle=90
291
+ fontname="Helvetica,Arial,sans-serif"
292
+ node [fontname="Helvetica,Arial,sans-serif"]
293
+ edge [fontname="Helvetica,Arial,sans-serif"]
294
+ subgraph cluster_0 {
295
+ style=filled;
296
+ color=lightgrey;
297
+ fillcolor="darkgray:gold";
298
+ gradientangle=0
299
+ node [fillcolor="yellow:green" style=filled gradientangle=270] a0;
300
+ node [fillcolor="lightgreen:red"] a1;
301
+ node [fillcolor="lightskyblue:darkcyan"] a2;
302
+ node [fillcolor="cyan:lightslateblue"] a3;
303
+ a0 -> a1 -> a2 -> a3;
304
+ label = "process #1";
305
+ }
306
+ subgraph cluster_1 {
307
+ node [fillcolor="yellow:magenta"
308
+ style=filled gradientangle=270] b0;
309
+ node [fillcolor="violet:darkcyan"] b1;
310
+ node [fillcolor="peachpuff:red"] b2;
311
+ node [fillcolor="mediumpurple:purple"] b3;
312
+ b0 -> b1 -> b2 -> b3;
313
+ label = "process #2";
314
+ color=blue
315
+ fillcolor="darkgray:gold";
316
+ gradientangle=0
317
+ style=filled;
318
+ }
319
+ start -> a0;
320
+ start -> b0;
321
+ a1 -> b3;
322
+ b2 -> a3;
323
+ a3 -> a0;
324
+ a3 -> end;
325
+ b3 -> end;
326
+ start [shape=Mdiamond ,
327
+ fillcolor="pink:red",
328
+ gradientangle=90,
329
+ style=radial];
330
+ end [shape=Msquare,
331
+ fillcolor="lightyellow:orange",
332
+ style=radial,
333
+ gradientangle=90];
334
+ }
335
+ ''')
336
+
337
+ st.graphviz_chart('''
338
+ graph Color_wheel {
339
+ graph [
340
+ layout = neato
341
+ label = "Color wheel, 33 colors.\nNeato layout"
342
+ labelloc = b
343
+ fontname = "Helvetica,Arial,sans-serif"
344
+ start = regular
345
+ normalize = 0
346
+ ]
347
+ node [
348
+ shape = circle
349
+ style = filled
350
+ color = "#00000088"
351
+ fontname = "Helvetica,Arial,sans-serif"
352
+ ]
353
+ edge [
354
+ len = 2.7
355
+ color = "#00000088"
356
+ fontname = "Helvetica,Arial,sans-serif"
357
+ ]
358
+ subgraph Dark {
359
+ node [fontcolor = white width = 1.4]
360
+ center [width = 1 style = invis shape = point]
361
+ center -- darkred [label = "0°/360°"]
362
+ darkred [fillcolor = darkred]
363
+ brown [fillcolor = brown]
364
+ brown -- center [label = "30°"]
365
+ olive [fillcolor = olive]
366
+ olive -- center [label = "60°"]
367
+ darkolivegreen [fillcolor = darkolivegreen fontsize = 10]
368
+ darkolivegreen -- center [label = "90°"]
369
+ darkgreen [fillcolor = darkgreen]
370
+ darkgreen -- center [label = "120°"]
371
+ "dark hue 0.416" [color = ".416 1 .6" fontcolor = white]
372
+ "dark hue 0.416" -- center [label = "150°"]
373
+ darkcyan [fillcolor = darkcyan]
374
+ darkcyan -- center [label = "180°"]
375
+ "dark hue 0.583" [color = ".583 1 .6" fontcolor = white]
376
+ "dark hue 0.583" -- center [label = "210°"]
377
+ darkblue [fillcolor = darkblue]
378
+ darkblue -- center [label = "240°"]
379
+ "dark hue 0.750" [color = ".750 1 .6"]
380
+ "dark hue 0.750" -- center [label = "270°"]
381
+ darkmagenta [fillcolor = darkmagenta]
382
+ darkmagenta -- center [label = "300°"]
383
+ "dark hue 0.916" [color = ".916 1 .6"]
384
+ "dark hue 0.916" -- center [label = "330°"]
385
+ }
386
+ subgraph Tue {
387
+ node [width = 1.3]
388
+ "hue 0.083" -- brown
389
+ "hue 0.083" [color = ".083 1 1"]
390
+ "hue 0.125" [color = ".125 1 1"]
391
+ "hue 0.166" -- olive
392
+ "hue 0.166" [color = ".166 1 1"]
393
+ "hue 0.208" [color = ".208 1 1"]
394
+ "hue 0.250" -- darkolivegreen
395
+ "hue 0.250" [color = ".250 1 1"]
396
+ "hue 0.291" [color = ".291 1 1"]
397
+ "hue 0.333" -- darkgreen
398
+ "hue 0.333" [color = ".333 1 1"]
399
+ "hue 0.375" [color = ".375 1 1"]
400
+ "hue 0.416" -- "dark hue 0.416"
401
+ "hue 0.416" [color = ".416 1 1"]
402
+ "hue 0.458" [color = ".458 1 1"]
403
+ "hue 0.500" -- darkcyan
404
+ "hue 0.500" [color = ".500 1 1"]
405
+ "hue 0.541" [color = ".541 1 1"]
406
+ node [fontcolor = white]
407
+ "hue 0.000" [color = ".000 1 1"]
408
+ "hue 0.000" -- darkred
409
+ "hue 0.041" [color = ".041 1 1"]
410
+ "hue 0.583" -- "dark hue 0.583"
411
+ "hue 0.583" [color = ".583 1 1"]
412
+ "hue 0.625" [color = ".625 1 1"]
413
+ "hue 0.666" -- darkblue
414
+ "hue 0.666" [color = ".666 1 1"]
415
+ "hue 0.708" [color = ".708 1 1"]
416
+ "hue 0.750" -- "dark hue 0.750"
417
+ "hue 0.750" [color = ".750 1 1"]
418
+ "hue 0.791" [color = ".791 1 1"]
419
+ "hue 0.833" -- darkmagenta
420
+ "hue 0.833" [color = ".833 1 1"]
421
+ "hue 0.875" [color = ".875 1 1"]
422
+ "hue 0.916" -- "dark hue 0.916"
423
+ "hue 0.916" [color = ".916 1 1"]
424
+ "hue 0.958" [color = ".958 1 1"]
425
+ edge [len = 1]
426
+ "hue 0.000" -- "hue 0.041" -- "hue 0.083" -- "hue 0.125" -- "hue 0.166" -- "hue 0.208"
427
+ "hue 0.208" -- "hue 0.250" -- "hue 0.291" -- "hue 0.333" -- "hue 0.375" -- "hue 0.416"
428
+ "hue 0.416" -- "hue 0.458" -- "hue 0.500" --"hue 0.541" -- "hue 0.583" -- "hue 0.625"
429
+ "hue 0.625" -- "hue 0.666" -- "hue 0.708" -- "hue 0.750" -- "hue 0.791" -- "hue 0.833"
430
+ "hue 0.833" -- "hue 0.875" -- "hue 0.916" -- "hue 0.958" -- "hue 0.000"
431
+ }
432
+ subgraph Main_colors {
433
+ node [width = 2 fontsize = 20]
434
+ red [fillcolor = red fontcolor = white]
435
+ orangered [fillcolor = orangered]
436
+ orange [fillcolor = orange]
437
+ gold [fillcolor = gold]
438
+ yellow [fillcolor = yellow]
439
+ yellowgreen [fillcolor = yellowgreen]
440
+ deeppink [fillcolor = deeppink fontcolor = white]
441
+ fuchsia [label = "fuchsia\nmagenta" fillcolor = fuchsia fontcolor = white]
442
+ purple [fillcolor = purple fontcolor = white]
443
+ blue [fillcolor = blue fontcolor = white]
444
+ cornflowerblue [fillcolor = cornflowerblue]
445
+ deepskyblue [fillcolor = deepskyblue]
446
+ aqua [fillcolor = aqua label = "aqua\ncyan"]
447
+ springgreen [fillcolor = springgreen]
448
+ green [fillcolor = green]
449
+ purple -- fuchsia -- deeppink -- red
450
+ cornflowerblue -- blue -- purple
451
+ cornflowerblue -- deepskyblue -- aqua [len = 1.7]
452
+ aqua -- springgreen -- green -- yellowgreen -- yellow
453
+ yellow -- gold -- orange -- orangered -- red [len = 1.6]
454
+ orange -- "hue 0.083"
455
+ deeppink -- "hue 0.916"
456
+ deeppink -- "hue 0.875"
457
+ red -- "hue 0.000"
458
+ yellowgreen -- "hue 0.250"
459
+ blue -- "hue 0.666"
460
+ yellow -- "hue 0.166"
461
+ gold -- "hue 0.125"
462
+ green -- "hue 0.333"
463
+ springgreen -- "hue 0.416"
464
+ aqua -- "hue 0.500"
465
+ cornflowerblue -- "hue 0.583"
466
+ deepskyblue -- "hue 0.541"
467
+ purple -- "hue 0.791"
468
+ purple -- "hue 0.750"
469
+ fuchsia -- "hue 0.833"
470
+ }
471
+ subgraph Light_colors {
472
+ node [width = 2 fontsize = 20]
473
+ node [shape = circle width = 1.8]
474
+ edge [len = 2.1]
475
+ pink [fillcolor = pink]
476
+ pink -- red
477
+ lightyellow [fillcolor = lightyellow]
478
+ lightyellow -- yellow
479
+ mediumpurple [fillcolor = mediumpurple]
480
+ mediumpurple -- purple
481
+ violet [fillcolor = violet]
482
+ violet -- fuchsia
483
+ hotpink [fillcolor = hotpink]
484
+ hotpink -- deeppink
485
+ "light hue 0.250" [color = ".250 .2 1"]
486
+ "light hue 0.250" -- yellowgreen
487
+ lightcyan [fillcolor = lightcyan]
488
+ lightcyan -- aqua
489
+ lightslateblue [fillcolor = lightslateblue]
490
+ lightslateblue -- blue
491
+ lightgreen [fillcolor = lightgreen]
492
+ lightgreen -- green
493
+ lightskyblue [fillcolor = lightskyblue]
494
+ lightskyblue -- deepskyblue
495
+ peachpuff [fillcolor = peachpuff]
496
+ peachpuff -- orange
497
+ "light hue 0.416" [color = ".416 .2 1"]
498
+ "light hue 0.416" -- springgreen
499
+ }
500
+ subgraph Tints {
501
+ node [width = 1]
502
+ edge [len = 2.4]
503
+ "hue 0 tint" -- pink
504
+ "hue 0 tint" [color = "0 .1 1"]
505
+ "hue 0.041 tint" [color = ".041 .1 1"]
506
+ "hue 0.083 tint" -- peachpuff
507
+ "hue 0.083 tint" [color = ".083 .1 1"]
508
+ "hue 0.125 tint" [color = ".125 .1 1"]
509
+ "hue 0.166 tint" -- lightyellow
510
+ "hue 0.166 tint" [color = ".166 .1 1"]
511
+ "hue 0.208 tint" [color = ".208 .1 1"]
512
+ "hue 0.250 tint" -- "light hue 0.250"
513
+ "hue 0.250 tint" [color = ".250 .1 1"]
514
+ "hue 0.291 tint" [color = ".291 .1 1"]
515
+ "hue 0.333 tint" -- lightgreen
516
+ "hue 0.333 tint" [color = ".333 .1 1"]
517
+ "hue 0.375 tint" [color = ".375 .1 1"]
518
+ "hue 0.416 tint" -- "light hue 0.416"
519
+ "hue 0.416 tint" [color = ".416 .1 1"]
520
+ "hue 0.458 tint" [color = ".458 .1 1"]
521
+ "hue 0.5 tint" -- lightcyan
522
+ "hue 0.5 tint" [color = ".5 .1 1"]
523
+ "hue 0.541 tint" -- lightskyblue
524
+ "hue 0.541 tint" [color = ".541 .1 1"]
525
+ "hue 0.583 tint" [color = ".583 .1 1"]
526
+ "hue 0.625 tint" [color = ".625 .1 1"]
527
+ "hue 0.666 tint" -- lightslateblue
528
+ "hue 0.666 tint" [color = ".666 .1 1"]
529
+ "hue 0.708 tint" [color = ".708 .1 1"]
530
+ "hue 0.750 tint" -- mediumpurple
531
+ "hue 0.750 tint" [color = ".750 .1 1"]
532
+ "hue 0.791 tint" [color = ".791 .1 1"]
533
+ "hue 0.833 tint" -- violet
534
+ "hue 0.833 tint" [color = ".833 .1 1"]
535
+ "hue 0.875 tint" [color = ".875 .1 1"]
536
+ "hue 0.916 tint" -- hotpink
537
+ "hue 0.916 tint" [color = ".916 .1 1"]
538
+ "hue 0.958 tint" [color = ".958 .1 1"]
539
+ edge [len = 2]
540
+ "hue 0 tint" -- "hue 0.041 tint" -- "hue 0.083 tint" -- "hue 0.125 tint" -- "hue 0.166 tint" -- "hue 0.208 tint"
541
+ "hue 0.208 tint" -- "hue 0.250 tint" -- "hue 0.291 tint" -- "hue 0.333 tint" -- "hue 0.375 tint" -- "hue 0.416 tint"
542
+ "hue 0.416 tint" -- "hue 0.458 tint" -- "hue 0.5 tint" --"hue 0.541 tint" -- "hue 0.583 tint" -- "hue 0.625 tint"
543
+ "hue 0.625 tint" -- "hue 0.666 tint" -- "hue 0.708 tint" -- "hue 0.750 tint" -- "hue 0.791 tint" -- "hue 0.833 tint"
544
+ "hue 0.833 tint" -- "hue 0.875 tint" -- "hue 0.916 tint" -- "hue 0.958 tint" -- "hue 0 tint"
545
+ }
546
+ }
547
+ ''')