{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 3D stem and word scatter"
]
},
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
" \n",
" "
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"%matplotlib notebook\n",
"from stemgraphic.alpha import word_scatter, stem_scatter\n",
"from stemgraphic.stopwords import EN\n",
"import cufflinks as cf\n",
"cf.go_offline()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"In [stem and word scatter](stem_and_word_scatter.ipynb), we covered the basics when comparing 2 different sources. But scatter will also take a 3rd source as argument. In that case, it will display the data in a 3d view. We will reuse our two stories from before and add a 3rd one:"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"src1 = '../datasets/The Red Headed League by Arthur Conan Doyle.txt'\n",
"src2 = '../datasets/A Case of Identity by Arthur Conan Doyle.txt'\n",
"src3 = '../datasets/The Final Problem by Arthur Conan Doyle.txt'"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Given how 3d scatter plots provide the most information in an interactive form, where one can zoom in, rotate, look at the data from different angles, we'll go straight into that mode:"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"application/vnd.plotly.v1+json": {
"config": {
"linkText": "Export to plot.ly",
"plotlyServerURL": "https://plot.ly",
"showLink": true
},
"data": [
{
"marker": {
"color": "rgba(255, 0, 136, 1.0)",
"line": {
"width": 1.3
},
"opacity": 0.5,
"size": [
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10
],
"symbol": "circle"
},
"mode": "markers",
"name": "=",
"text": [
"ht 2.0 2.0 2.0",
"ah 1.0 1.0 1.0",
"ef 5.0 5.0 5.0",
"et 1.0 1.0 1.0"
],
"textfont": {
"color": "#4D5663"
},
"type": "scatter3d",
"x": [
2,
1,
5,
1
],
"y": [
2,
1,
5,
1
],
"z": [
2,
1,
5,
1
]
},
{
"marker": {
"color": "rgba(55, 128, 191, 1.0)",
"line": {
"width": 1.3
},
"opacity": 0.5,
"size": [
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10
],
"symbol": "circle"
},
"mode": "markers",
"name": "x",
"text": [
"or 35.0 18.0 17.0",
"op 11.0 5.0 5.0",
"on 89.0 67.0 80.0",
"of 254.0 183.0 203.0",
"oc 8.0 3.0 3.0",
"ob 17.0 17.0 5.0",
"no 130.0 118.0 82.0",
"ne 39.0 37.0 35.0",
"na 16.0 3.0 7.0",
"mu 34.0 22.0 23.0",
"mr 55.0 50.0 9.0",
"mi 39.0 37.0 18.0",
"me 100.0 66.0 100.0",
"ma 96.0 94.0 80.0",
"lo 46.0 30.0 33.0",
"li 65.0 59.0 40.0",
"le 51.0 50.0 45.0",
"kn 30.0 20.0 18.0",
"ke 10.0 9.0 6.0",
"ju 21.0 11.0 4.0",
"jo 19.0 4.0 5.0",
"ja 11.0 7.0 3.0",
"it 150.0 125.0 122.0",
"is 110.0 83.0 69.0",
"in 213.0 176.0 206.0",
"i 261.0 159.0 230.0",
"ou 57.0 30.0 48.0",
"pa 50.0 23.0 44.0",
"a 240.0 165.0 163.0",
"pi 17.0 8.0 8.0",
"wi 151.0 118.0 91.0",
"wh 193.0 144.0 162.0",
"we 139.0 85.0 84.0",
"vi 15.0 10.0 11.0",
"ve 47.0 31.0 15.0",
"va 14.0 7.0 11.0",
"us 31.0 29.0 18.0",
"up 76.0 53.0 57.0",
"un 31.0 27.0 25.0",
"tw 22.0 15.0 14.0",
"tu 12.0 3.0 12.0",
"to 257.0 221.0 242.0",
"ti 23.0 16.0 16.0",
"th 880.0 671.0 752.0",
"te 25.0 17.0 24.0",
"su 50.0 41.0 25.0",
"st 93.0 64.0 73.0",
"so 89.0 73.0 55.0",
"sn 5.0 5.0 3.0",
"sm 22.0 6.0 13.0",
"si 47.0 45.0 27.0",
"se 61.0 52.0 44.0",
"sc 10.0 4.0 6.0",
"sa 102.0 73.0 61.0",
"ru 9.0 4.0 8.0",
"ri 23.0 15.0 10.0",
"re 115.0 69.0 97.0",
"pu 25.0 17.0 15.0",
"po 38.0 25.0 32.0",
"hu 14.0 14.0 6.0",
"pe 23.0 20.0 15.0",
"yo 207.0 136.0 121.0",
"hi 152.0 116.0 130.0",
"ex 46.0 16.0 35.0",
"ev 33.0 25.0 32.0",
"ba 29.0 26.0 12.0",
"es 7.0 2.0 4.0",
"be 139.0 96.0 117.0",
"bi 9.0 4.0 6.0",
"em 5.0 2.0 1.0",
"co 165.0 121.0 135.0",
"el 11.0 9.0 4.0",
"bu 87.0 81.0 51.0",
"do 95.0 65.0 54.0",
"di 50.0 36.0 21.0",
"ce 13.0 9.0 8.0",
"ch 39.0 24.0 23.0",
"ci 7.0 6.0 3.0",
"cl 39.0 25.0 31.0",
"du 12.0 4.0 9.0",
"ey 11.0 8.0 8.0",
"ho 121.0 95.0 70.0",
"at 67.0 55.0 60.0",
"ha 240.0 159.0 210.0",
"ab 38.0 23.0 26.0",
"ad 27.0 15.0 10.0",
"go 44.0 33.0 20.0",
"af 28.0 15.0 17.0",
"av 2.0 1.0 1.0",
"ge 17.0 16.0 15.0",
"gi 10.0 9.0 8.0",
"am 26.0 13.0 14.0",
"an 368.0 296.0 250.0",
"ap 17.0 7.0 8.0",
"ar 45.0 35.0 34.0",
"fo 138.0 93.0 84.0",
"fl 19.0 4.0 5.0",
"as 134.0 86.0 75.0",
"al 63.0 48.0 52.0"
],
"textfont": {
"color": "#4D5663"
},
"type": "scatter3d",
"x": [
35,
11,
89,
254,
8,
17,
130,
39,
16,
34,
55,
39,
100,
96,
46,
65,
51,
30,
10,
21,
19,
11,
150,
110,
213,
261,
57,
50,
240,
17,
151,
193,
139,
15,
47,
14,
31,
76,
31,
22,
12,
257,
23,
880,
25,
50,
93,
89,
5,
22,
47,
61,
10,
102,
9,
23,
115,
25,
38,
14,
23,
207,
152,
46,
33,
29,
7,
139,
9,
5,
165,
11,
87,
95,
50,
13,
39,
7,
39,
12,
11,
121,
67,
240,
38,
27,
44,
28,
2,
17,
10,
26,
368,
17,
45,
138,
19,
134,
63
],
"y": [
18,
5,
67,
183,
3,
17,
118,
37,
3,
22,
50,
37,
66,
94,
30,
59,
50,
20,
9,
11,
4,
7,
125,
83,
176,
159,
30,
23,
165,
8,
118,
144,
85,
10,
31,
7,
29,
53,
27,
15,
3,
221,
16,
671,
17,
41,
64,
73,
5,
6,
45,
52,
4,
73,
4,
15,
69,
17,
25,
14,
20,
136,
116,
16,
25,
26,
2,
96,
4,
2,
121,
9,
81,
65,
36,
9,
24,
6,
25,
4,
8,
95,
55,
159,
23,
15,
33,
15,
1,
16,
9,
13,
296,
7,
35,
93,
4,
86,
48
],
"z": [
17,
5,
80,
203,
3,
5,
82,
35,
7,
23,
9,
18,
100,
80,
33,
40,
45,
18,
6,
4,
5,
3,
122,
69,
206,
230,
48,
44,
163,
8,
91,
162,
84,
11,
15,
11,
18,
57,
25,
14,
12,
242,
16,
752,
24,
25,
73,
55,
3,
13,
27,
44,
6,
61,
8,
10,
97,
15,
32,
6,
15,
121,
130,
35,
32,
12,
4,
117,
6,
1,
135,
4,
51,
54,
21,
8,
23,
3,
31,
9,
8,
70,
60,
210,
26,
10,
20,
17,
1,
15,
8,
14,
250,
8,
34,
84,
5,
75,
52
]
},
{
"marker": {
"color": "rgba(128, 128, 128, 1.0)",
"line": {
"width": 1.3
},
"opacity": 0.5,
"size": [
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10
],
"symbol": "circle"
},
"mode": "markers",
"name": "y",
"text": [
"bo 15.0 25.0 13.0",
"sh 69.0 84.0 61.0",
"ca 63.0 67.0 63.0",
"wo 68.0 71.0 50.0",
"qu 24.0 27.0 19.0",
"wr 16.0 17.0 12.0",
"sy 1.0 3.0 1.0",
"ki 4.0 7.0 2.0",
"he 203.0 212.0 131.0",
"im 13.0 14.0 13.0",
"ow 7.0 9.0 4.0",
"fi 43.0 47.0 34.0",
"ot 18.0 19.0 5.0",
"gl 10.0 22.0 9.0",
"ye 26.0 29.0 16.0",
"ea 15.0 16.0 6.0",
"oh 8.0 9.0 2.0"
],
"textfont": {
"color": "#4D5663"
},
"type": "scatter3d",
"x": [
15,
69,
63,
68,
24,
16,
1,
4,
203,
13,
7,
43,
18,
10,
26,
15,
8
],
"y": [
25,
84,
67,
71,
27,
17,
3,
7,
212,
14,
9,
47,
19,
22,
29,
16,
9
],
"z": [
13,
61,
63,
50,
19,
12,
1,
2,
131,
13,
4,
34,
5,
9,
16,
6,
2
]
},
{
"marker": {
"color": "rgba(188, 128, 189, 1.0)",
"line": {
"width": 1.3
},
"opacity": 0.5,
"size": [
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10,
10
],
"symbol": "circle"
},
"mode": "markers",
"name": "z",
"text": [
"ph 2.0 1.0 3.0",
"fe 22.0 19.0 27.0",
"tr 20.0 27.0 32.0",
"la 31.0 33.0 47.0",
"fr 64.0 57.0 66.0",
"fu 6.0 7.0 8.0",
"ai 1.0 1.0 6.0",
"fa 42.0 57.0 46.0",
"ag 22.0 15.0 26.0",
"vo 3.0 6.0 4.0",
"wa 164.0 141.0 172.0",
"gr 19.0 17.0 24.0",
"ac 10.0 14.0 13.0",
"if 19.0 20.0 21.0",
"ga 13.0 9.0 14.0",
"aw 8.0 8.0 19.0",
"mo 64.0 50.0 72.0",
"cr 25.0 16.0 28.0",
"cu 8.0 7.0 14.0",
"pr 55.0 27.0 61.0",
"da 32.0 15.0 35.0",
"ra 13.0 12.0 16.0",
"ov 20.0 17.0 24.0",
"de 41.0 39.0 50.0",
"ro 31.0 7.0 46.0",
"dr 12.0 18.0 19.0",
"ta 19.0 25.0 22.0",
"by 26.0 14.0 33.0",
"br 26.0 26.0 32.0",
"sl 6.0 16.0 10.0",
"bl 11.0 13.0 18.0",
"ni 5.0 3.0 8.0",
"sp 23.0 15.0 27.0",
"en 38.0 20.0 44.0",
"my 85.0 43.0 114.0",
"sw 6.0 5.0 12.0",
"ol 2.0 8.0 3.0",
"pl 21.0 16.0 24.0"
],
"textfont": {
"color": "#4D5663"
},
"type": "scatter3d",
"x": [
2,
22,
20,
31,
64,
6,
1,
42,
22,
3,
164,
19,
10,
19,
13,
8,
64,
25,
8,
55,
32,
13,
20,
41,
31,
12,
19,
26,
26,
6,
11,
5,
23,
38,
85,
6,
2,
21
],
"y": [
1,
19,
27,
33,
57,
7,
1,
57,
15,
6,
141,
17,
14,
20,
9,
8,
50,
16,
7,
27,
15,
12,
17,
39,
7,
18,
25,
14,
26,
16,
13,
3,
15,
20,
43,
5,
8,
16
],
"z": [
3,
27,
32,
47,
66,
8,
6,
46,
26,
4,
172,
24,
13,
21,
14,
19,
72,
28,
14,
61,
35,
16,
24,
50,
46,
19,
22,
33,
32,
10,
18,
8,
27,
44,
114,
12,
3,
24
]
}
],
"layout": {
"legend": {
"bgcolor": "#F5F6F9",
"font": {
"color": "#4D5663"
}
},
"paper_bgcolor": "#F5F6F9",
"plot_bgcolor": "#F5F6F9",
"scene": {
"xaxis": {
"gridcolor": "#9499A3",
"showgrid": true,
"tickfont": {
"color": "#4D5663"
},
"title": {
"font": {
"color": "#4D5663"
},
"text": ""
},
"type": "log",
"zerolinecolor": "#9499A3"
},
"yaxis": {
"gridcolor": "#9499A3",
"showgrid": true,
"tickfont": {
"color": "#4D5663"
},
"title": {
"font": {
"color": "#4D5663"
},
"text": ""
},
"type": "log",
"zerolinecolor": "#9499A3"
},
"zaxis": {
"gridcolor": "#9499A3",
"showgrid": true,
"tickfont": {
"color": "#4D5663"
},
"title": {
"font": {
"color": "#4D5663"
},
"text": ""
},
"type": "log",
"zerolinecolor": "#9499A3"
}
},
"template": {
"data": {
"bar": [
{
"error_x": {
"color": "#2a3f5f"
},
"error_y": {
"color": "#2a3f5f"
},
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
}
},
"type": "bar"
}
],
"barpolar": [
{
"marker": {
"line": {
"color": "#E5ECF6",
"width": 0.5
}
},
"type": "barpolar"
}
],
"carpet": [
{
"aaxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"endlinecolor": "#2a3f5f",
"gridcolor": "white",
"linecolor": "white",
"minorgridcolor": "white",
"startlinecolor": "#2a3f5f"
},
"type": "carpet"
}
],
"choropleth": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "choropleth"
}
],
"contour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "contour"
}
],
"contourcarpet": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "contourcarpet"
}
],
"heatmap": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmap"
}
],
"heatmapgl": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "heatmapgl"
}
],
"histogram": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "histogram"
}
],
"histogram2d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2d"
}
],
"histogram2dcontour": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "histogram2dcontour"
}
],
"mesh3d": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"type": "mesh3d"
}
],
"parcoords": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "parcoords"
}
],
"scatter": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter"
}
],
"scatter3d": [
{
"line": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatter3d"
}
],
"scattercarpet": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattercarpet"
}
],
"scattergeo": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergeo"
}
],
"scattergl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattergl"
}
],
"scattermapbox": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scattermapbox"
}
],
"scatterpolar": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolar"
}
],
"scatterpolargl": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterpolargl"
}
],
"scatterternary": [
{
"marker": {
"colorbar": {
"outlinewidth": 0,
"ticks": ""
}
},
"type": "scatterternary"
}
],
"surface": [
{
"colorbar": {
"outlinewidth": 0,
"ticks": ""
},
"colorscale": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"type": "surface"
}
],
"table": [
{
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
},
"type": "table"
}
]
},
"layout": {
"annotationdefaults": {
"arrowcolor": "#2a3f5f",
"arrowhead": 0,
"arrowwidth": 1
},
"colorscale": {
"diverging": [
[
0,
"#8e0152"
],
[
0.1,
"#c51b7d"
],
[
0.2,
"#de77ae"
],
[
0.3,
"#f1b6da"
],
[
0.4,
"#fde0ef"
],
[
0.5,
"#f7f7f7"
],
[
0.6,
"#e6f5d0"
],
[
0.7,
"#b8e186"
],
[
0.8,
"#7fbc41"
],
[
0.9,
"#4d9221"
],
[
1,
"#276419"
]
],
"sequential": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
],
"sequentialminus": [
[
0,
"#0d0887"
],
[
0.1111111111111111,
"#46039f"
],
[
0.2222222222222222,
"#7201a8"
],
[
0.3333333333333333,
"#9c179e"
],
[
0.4444444444444444,
"#bd3786"
],
[
0.5555555555555556,
"#d8576b"
],
[
0.6666666666666666,
"#ed7953"
],
[
0.7777777777777778,
"#fb9f3a"
],
[
0.8888888888888888,
"#fdca26"
],
[
1,
"#f0f921"
]
]
},
"colorway": [
"#636efa",
"#EF553B",
"#00cc96",
"#ab63fa",
"#FFA15A",
"#19d3f3",
"#FF6692",
"#B6E880",
"#FF97FF",
"#FECB52"
],
"font": {
"color": "#2a3f5f"
},
"geo": {
"bgcolor": "white",
"lakecolor": "white",
"landcolor": "#E5ECF6",
"showlakes": true,
"showland": true,
"subunitcolor": "white"
},
"hoverlabel": {
"align": "left"
},
"hovermode": "closest",
"mapbox": {
"style": "light"
},
"paper_bgcolor": "white",
"plot_bgcolor": "#E5ECF6",
"polar": {
"angularaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"radialaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"scene": {
"xaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"yaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
},
"zaxis": {
"backgroundcolor": "#E5ECF6",
"gridcolor": "white",
"gridwidth": 2,
"linecolor": "white",
"showbackground": true,
"ticks": "",
"zerolinecolor": "white"
}
},
"shapedefaults": {
"line": {
"color": "#2a3f5f"
}
},
"ternary": {
"aaxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"baxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
},
"bgcolor": "#E5ECF6",
"caxis": {
"gridcolor": "white",
"linecolor": "white",
"ticks": ""
}
},
"title": {
"x": 0.05
},
"xaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"zerolinecolor": "white",
"zerolinewidth": 2
},
"yaxis": {
"automargin": true,
"gridcolor": "white",
"linecolor": "white",
"ticks": "",
"zerolinecolor": "white",
"zerolinewidth": 2
}
}
},
"title": {
"font": {
"color": "#4D5663"
},
"text": "../datasets/The Red Headed League by Arthur Conan Doyle.txt vs
../datasets/A Case of Identity by Arthur Conan Doyle.txt vs ../datasets/The Final Problem by Arthur Conan Doyle.txt"
}
}
},
"text/html": [
"