{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4 Plotly Express の様々なグラフ" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.1 散布図(scatter 関数)" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
countrycontinentyearlifeExppopgdpPercapiso_alphaiso_num
0AfghanistanAsia195228.8018425333779.445314AFG4
1AfghanistanAsia195730.3329240934820.853030AFG4
2AfghanistanAsia196231.99710267083853.100710AFG4
3AfghanistanAsia196734.02011537966836.197138AFG4
4AfghanistanAsia197236.08813079460739.981106AFG4
\n", "
" ], "text/plain": [ " country continent year lifeExp pop gdpPercap iso_alpha \\\n", "0 Afghanistan Asia 1952 28.801 8425333 779.445314 AFG \n", "1 Afghanistan Asia 1957 30.332 9240934 820.853030 AFG \n", "2 Afghanistan Asia 1962 31.997 10267083 853.100710 AFG \n", "3 Afghanistan Asia 1967 34.020 11537966 836.197138 AFG \n", "4 Afghanistan Asia 1972 36.088 13079460 739.981106 AFG \n", "\n", " iso_num \n", "0 4 \n", "1 4 \n", "2 4 \n", "3 4 \n", "4 4 " ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "import plotly.express as px\n", "\n", "gapminder = px.data.gapminder()\n", "gapminder.head()" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "hovertemplate": "%{hovertext}

continent=Asia
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", "hovertext": [ "Afghanistan", "Bahrain", "Bangladesh", "Cambodia", "China", "Hong Kong, China", "India", "Indonesia", "Iran", "Iraq", "Israel", "Japan", "Jordan", "Korea, Dem. Rep.", "Korea, Rep.", "Kuwait", "Lebanon", "Malaysia", "Mongolia", "Myanmar", "Nepal", "Oman", "Pakistan", "Philippines", "Saudi Arabia", "Singapore", "Sri Lanka", "Syria", "Taiwan", "Thailand", "Vietnam", "West Bank and Gaza", "Yemen, Rep." ], "legendgroup": "Asia", "marker": { "color": "#636efa", "size": [ 31889923, 708573, 150448339, 14131858, 1318683096, 6980412, 1110396331, 223547000, 69453570, 27499638, 6426679, 127467972, 6053193, 23301725, 49044790, 2505559, 3921278, 24821286, 2874127, 47761980, 28901790, 3204897, 169270617, 91077287, 27601038, 4553009, 20378239, 19314747, 23174294, 65068149, 85262356, 4018332, 22211743 ], "sizemode": "area", "sizeref": 366300.86, "symbol": "circle" }, "mode": "markers", "name": "Asia", "orientation": "v", "showlegend": true, "type": "scatter", "x": [ 974.5803384, 29796.048339999998, 1391.253792, 1713.7786859999999, 4959.1148539999995, 39724.97867, 2452.210407, 3540.6515640000002, 11605.71449, 4471.061906, 25523.2771, 31656.06806, 4519.461171, 1593.06548, 23348.139730000003, 47306.98978, 10461.05868, 12451.6558, 3095.7722710000003, 944, 1091.359778, 22316.19287, 2605.94758, 3190.481016, 21654.83194, 47143.179639999995, 3970.0954070000003, 4184.548089, 28718.27684, 7458.3963269999995, 2441.576404, 3025.349798, 2280.769906 ], "xaxis": "x", "y": [ 43.828, 75.635, 64.062, 59.723, 72.961, 82.208, 64.69800000000001, 70.65, 70.964, 59.545, 80.745, 82.603, 72.535, 67.297, 78.623, 77.58800000000001, 71.993, 74.241, 66.803, 62.068999999999996, 63.785, 75.64, 65.483, 71.688, 72.777, 79.972, 72.396, 74.143, 78.4, 70.616, 74.249, 73.422, 62.698 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

continent=Europe
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", "hovertext": [ "Albania", "Austria", "Belgium", "Bosnia and Herzegovina", "Bulgaria", "Croatia", "Czech Republic", "Denmark", "Finland", "France", "Germany", "Greece", "Hungary", "Iceland", "Ireland", "Italy", "Montenegro", "Netherlands", "Norway", "Poland", "Portugal", "Romania", "Serbia", "Slovak Republic", "Slovenia", "Spain", "Sweden", "Switzerland", "Turkey", "United Kingdom" ], "legendgroup": "Europe", "marker": { "color": "#EF553B", "size": [ 3600523, 8199783, 10392226, 4552198, 7322858, 4493312, 10228744, 5468120, 5238460, 61083916, 82400996, 10706290, 9956108, 301931, 4109086, 58147733, 684736, 16570613, 4627926, 38518241, 10642836, 22276056, 10150265, 5447502, 2009245, 40448191, 9031088, 7554661, 71158647, 60776238 ], "sizemode": "area", "sizeref": 366300.86, "symbol": "circle" }, "mode": "markers", "name": "Europe", "orientation": "v", "showlegend": true, "type": "scatter", "x": [ 5937.029525999999, 36126.4927, 33692.60508, 7446.298803, 10680.79282, 14619.222719999998, 22833.30851, 35278.41874, 33207.0844, 30470.0167, 32170.37442, 27538.41188, 18008.94444, 36180.789189999996, 40675.99635, 28569.7197, 9253.896111, 36797.93332, 49357.19017, 15389.924680000002, 20509.64777, 10808.47561, 9786.534714, 18678.31435, 25768.25759, 28821.0637, 33859.74835, 37506.419069999996, 8458.276384, 33203.26128 ], "xaxis": "x", "y": [ 76.423, 79.829, 79.441, 74.852, 73.005, 75.748, 76.486, 78.332, 79.313, 80.657, 79.406, 79.483, 73.33800000000001, 81.757, 78.885, 80.546, 74.543, 79.762, 80.196, 75.563, 78.098, 72.476, 74.002, 74.663, 77.926, 80.941, 80.884, 81.70100000000001, 71.777, 79.425 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

continent=Africa
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", "hovertext": [ "Algeria", "Angola", "Benin", "Botswana", "Burkina Faso", "Burundi", "Cameroon", "Central African Republic", "Chad", "Comoros", "Congo, Dem. Rep.", "Congo, Rep.", "Cote d'Ivoire", "Djibouti", "Egypt", "Equatorial Guinea", "Eritrea", "Ethiopia", "Gabon", "Gambia", "Ghana", "Guinea", "Guinea-Bissau", "Kenya", "Lesotho", "Liberia", "Libya", "Madagascar", "Malawi", "Mali", "Mauritania", "Mauritius", "Morocco", "Mozambique", "Namibia", "Niger", "Nigeria", "Reunion", "Rwanda", "Sao Tome and Principe", "Senegal", "Sierra Leone", "Somalia", "South Africa", "Sudan", "Swaziland", "Tanzania", "Togo", "Tunisia", "Uganda", "Zambia", "Zimbabwe" ], "legendgroup": "Africa", "marker": { "color": "#00cc96", "size": [ 33333216, 12420476, 8078314, 1639131, 14326203, 8390505, 17696293, 4369038, 10238807, 710960, 64606759, 3800610, 18013409, 496374, 80264543, 551201, 4906585, 76511887, 1454867, 1688359, 22873338, 9947814, 1472041, 35610177, 2012649, 3193942, 6036914, 19167654, 13327079, 12031795, 3270065, 1250882, 33757175, 19951656, 2055080, 12894865, 135031164, 798094, 8860588, 199579, 12267493, 6144562, 9118773, 43997828, 42292929, 1133066, 38139640, 5701579, 10276158, 29170398, 11746035, 12311143 ], "sizemode": "area", "sizeref": 366300.86, "symbol": "circle" }, "mode": "markers", "name": "Africa", "orientation": "v", "showlegend": true, "type": "scatter", "x": [ 6223.367465, 4797.231267, 1441.284873, 12569.851770000001, 1217.032994, 430.07069160000003, 2042.0952399999999, 706.016537, 1704.0637239999999, 986.1478792000001, 277.55185869999997, 3632.557798, 1544.750112, 2082.4815670000003, 5581.180998, 12154.08975, 641.3695236000001, 690.8055759, 13206.48452, 752.7497265, 1327.60891, 942.6542111, 579.2317429999999, 1463.249282, 1569.331442, 414.5073415, 12057.49928, 1044.770126, 759.3499101, 1042.581557, 1803.1514960000002, 10956.99112, 3820.17523, 823.6856205, 4811.060429, 619.6768923999999, 2013.9773050000001, 7670.122558, 863.0884639000001, 1598.435089, 1712.4721359999999, 862.5407561000001, 926.1410683, 9269.657808, 2602.394995, 4513.480643, 1107.482182, 882.9699437999999, 7092.923025, 1056.3801210000001, 1271.211593, 469.70929810000007 ], "xaxis": "x", "y": [ 72.301, 42.731, 56.728, 50.728, 52.295, 49.58, 50.43, 44.74100000000001, 50.651, 65.152, 46.461999999999996, 55.321999999999996, 48.328, 54.791000000000004, 71.33800000000001, 51.57899999999999, 58.04, 52.946999999999996, 56.735, 59.448, 60.022, 56.007, 46.388000000000005, 54.11, 42.592, 45.678000000000004, 73.952, 59.443000000000005, 48.303000000000004, 54.467, 64.164, 72.801, 71.164, 42.082, 52.906000000000006, 56.867, 46.858999999999995, 76.442, 46.242, 65.528, 63.062, 42.568000000000005, 48.159, 49.339, 58.556000000000004, 39.613, 52.516999999999996, 58.42, 73.923, 51.542, 42.38399999999999, 43.486999999999995 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

continent=Americas
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", "hovertext": [ "Argentina", "Bolivia", "Brazil", "Canada", "Chile", "Colombia", "Costa Rica", "Cuba", "Dominican Republic", "Ecuador", "El Salvador", "Guatemala", "Haiti", "Honduras", "Jamaica", "Mexico", "Nicaragua", "Panama", "Paraguay", "Peru", "Puerto Rico", "Trinidad and Tobago", "United States", "Uruguay", "Venezuela" ], "legendgroup": "Americas", "marker": { "color": "#ab63fa", "size": [ 40301927, 9119152, 190010647, 33390141, 16284741, 44227550, 4133884, 11416987, 9319622, 13755680, 6939688, 12572928, 8502814, 7483763, 2780132, 108700891, 5675356, 3242173, 6667147, 28674757, 3942491, 1056608, 301139947, 3447496, 26084662 ], "sizemode": "area", "sizeref": 366300.86, "symbol": "circle" }, "mode": "markers", "name": "Americas", "orientation": "v", "showlegend": true, "type": "scatter", "x": [ 12779.379640000001, 3822.1370840000004, 9065.800825, 36319.235010000004, 13171.63885, 7006.580419, 9645.06142, 8948.102923, 6025.374752000001, 6873.262326000001, 5728.353514, 5186.050003, 1201.637154, 3548.3308460000003, 7320.880262000001, 11977.57496, 2749.320965, 9809.185636, 4172.838464, 7408.905561, 19328.70901, 18008.50924, 42951.65309, 10611.46299, 11415.805690000001 ], "xaxis": "x", "y": [ 75.32, 65.554, 72.39, 80.653, 78.553, 72.889, 78.782, 78.273, 72.235, 74.994, 71.878, 70.259, 60.916000000000004, 70.19800000000001, 72.567, 76.195, 72.899, 75.53699999999999, 71.752, 71.421, 78.74600000000001, 69.819, 78.242, 76.384, 73.747 ], "yaxis": "y" }, { "hovertemplate": "%{hovertext}

continent=Oceania
gdpPercap=%{x}
lifeExp=%{y}
pop=%{marker.size}", "hovertext": [ "Australia", "New Zealand" ], "legendgroup": "Oceania", "marker": { "color": "#FFA15A", "size": [ 20434176, 4115771 ], "sizemode": "area", "sizeref": 366300.86, "symbol": "circle" }, "mode": "markers", "name": "Oceania", "orientation": "v", "showlegend": true, "type": "scatter", "x": [ 34435.367439999995, 25185.00911 ], "xaxis": "x", "y": [ 81.235, 80.204 ], "yaxis": "y" } ], "layout": { "legend": { "itemsizing": "constant", "title": { "text": "continent" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "gdpPercap" }, "type": "log" }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "lifeExp" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "gapminder_2007 = gapminder.loc[gapminder[\"year\"] == 2007]\n", "px.scatter(\n", " gapminder_2007,\n", " x=\"gdpPercap\",\n", " y=\"lifeExp\",\n", " size=\"pop\", # 要素の大きさ\n", " color=\"continent\", # 要素の色\n", " hover_name=\"country\", # ホバーツールのタイトル\n", " log_x=True, # X軸を対数にとる\n", " size_max=60, # 要素の大きさの最大値\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.5 散布図行列(scatter matrix 関数)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
total_billtipsexsmokerdaytimesize
016.991.01FemaleNoSunDinner2
110.341.66MaleNoSunDinner3
221.013.50MaleNoSunDinner3
323.683.31MaleNoSunDinner2
424.593.61FemaleNoSunDinner4
\n", "
" ], "text/plain": [ " total_bill tip sex smoker day time size\n", "0 16.99 1.01 Female No Sun Dinner 2\n", "1 10.34 1.66 Male No Sun Dinner 3\n", "2 21.01 3.50 Male No Sun Dinner 3\n", "3 23.68 3.31 Male No Sun Dinner 2\n", "4 24.59 3.61 Female No Sun Dinner 4" ] }, "execution_count": 3, "metadata": {}, "output_type": "execute_result" } ], "source": [ "tips = px.data.tips()\n", "tips.head()" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "dimensions": [ { "axis": { "matches": true }, "label": "total_bill", "values": [ 16.99, 10.34, 21.01, 23.68, 24.59, 25.29, 8.77, 26.88, 15.04, 14.78, 10.27, 35.26, 15.42, 18.43, 14.83, 21.58, 10.33, 16.29, 16.97, 20.65, 17.92, 20.29, 15.77, 39.42, 19.82, 17.81, 13.37, 12.69, 21.7, 19.65, 9.55, 18.35, 15.06, 20.69, 17.78, 24.06, 16.31, 16.93, 18.69, 31.27, 16.04, 17.46, 13.94, 9.68, 30.4, 18.29, 22.23, 32.4, 28.55, 18.04, 12.54, 10.29, 34.81, 9.94, 25.56, 19.49, 26.41, 48.27, 17.59, 20.08, 16.45, 20.23, 12.02, 17.07, 14.73, 10.51, 22.49, 22.75, 12.46, 20.92, 18.24, 14, 7.25, 38.07, 23.95, 25.71, 17.31, 29.93, 14.07, 13.13, 17.26, 24.55, 19.77, 29.85, 48.17, 25, 13.39, 16.49, 21.5, 12.66, 16.21, 13.81, 24.52, 20.76, 31.71, 20.69, 48.33, 20.45, 13.28, 11.61, 10.77, 10.07, 35.83, 29.03, 17.82, 18.78 ] }, { "axis": { "matches": true }, "label": "tip", "values": [ 1.01, 1.66, 3.5, 3.31, 3.61, 4.71, 2, 3.12, 1.96, 3.23, 1.71, 5, 1.57, 3, 3.02, 3.92, 1.67, 3.71, 3.5, 3.35, 4.08, 2.75, 2.23, 7.58, 3.18, 2.34, 2, 2, 4.3, 3, 1.45, 2.5, 3, 2.45, 3.27, 3.6, 2, 3.07, 2.31, 5, 2.24, 2.54, 3.06, 1.32, 5.6, 3, 5, 6, 2.05, 3, 2.5, 2.6, 5.2, 1.56, 4.34, 3.51, 1.5, 6.73, 2.64, 3.15, 2.47, 2.01, 1.97, 3, 2.2, 1.25, 3.5, 3.25, 1.5, 4.08, 3.76, 3, 1, 4, 2.55, 4, 3.5, 5.07, 2.5, 2, 2.74, 2, 2, 5.14, 5, 3.75, 2.61, 2, 3.5, 2.5, 2, 2, 3.48, 2.24, 4.5, 5, 9, 3, 2.72, 3.39, 1.47, 1.25, 4.67, 5.92, 1.75, 3 ] }, { "axis": { "matches": true }, "label": "size", "values": [ 2, 3, 3, 2, 4, 4, 2, 4, 2, 2, 2, 4, 2, 4, 2, 2, 3, 3, 3, 3, 2, 2, 2, 4, 2, 4, 2, 2, 2, 2, 2, 4, 2, 4, 2, 3, 3, 3, 3, 3, 3, 2, 2, 2, 4, 2, 2, 4, 3, 2, 2, 2, 4, 2, 4, 2, 2, 4, 3, 3, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 2, 3, 2, 4, 2, 2, 3, 4, 4, 5, 6, 4, 2, 4, 4, 2, 3, 2, 3, 2, 4, 5, 4, 4, 2, 2, 2, 2, 3, 3, 2, 2 ] } ], "hovertemplate": "time=Dinner
smoker=No
%{xaxis.title.text}=%{x}
%{yaxis.title.text}=%{y}", "legendgroup": "Dinner, No", "marker": { "color": "#636efa", "symbol": "circle" }, "name": "Dinner, No", "showlegend": true, "type": "splom" }, { "dimensions": [ { "axis": { "matches": true }, "label": "total_bill", "values": [ 38.01, 11.24, 20.29, 13.81, 11.02, 18.29, 3.07, 15.01, 26.86, 25.28, 17.92, 28.97, 5.75, 16.32, 40.17, 27.28, 12.03, 21.01, 11.35, 15.38, 44.3, 22.42, 15.36, 20.49, 25.21, 14.31, 17.51, 10.59, 10.63, 50.81, 15.81, 7.25, 31.85, 16.82, 32.9, 17.89, 14.48, 9.6, 34.63, 34.65, 23.33, 45.35, 23.17, 40.55, 20.9, 30.46, 18.15, 23.1, 15.69, 26.59, 38.73, 24.27, 12.76, 30.06, 25.89, 13.27, 28.17, 12.9, 28.15, 11.59, 7.74, 30.14, 22.12, 24.01, 15.69, 15.53, 12.6, 32.83, 27.18, 22.67 ] }, { "axis": { "matches": true }, "label": "tip", "values": [ 3, 1.76, 3.21, 2, 1.98, 3.76, 1, 2.09, 3.14, 5, 3.08, 3, 1, 4.3, 4.73, 4, 1.5, 3, 2.5, 3, 2.5, 3.48, 1.64, 4.06, 4.29, 4, 3, 1.61, 2, 10, 3.16, 5.15, 3.18, 4, 3.11, 2, 2, 4, 3.55, 3.68, 5.65, 3.5, 6.5, 3, 3.5, 2, 3.5, 4, 1.5, 3.41, 3, 2.03, 2.23, 2, 5.16, 2.5, 6.5, 1.1, 3, 1.5, 1.44, 3.09, 2.88, 2, 3, 3, 1, 1.17, 2, 2 ] }, { "axis": { "matches": true }, "label": "size", "values": [ 4, 2, 2, 2, 2, 4, 1, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 3, 4, 2, 3, 5, 3, 3, 2, 3, 4, 2, 2, 3, 4, 2, 3, 2, 5, 2, 2, 4, 2, 4, 3, 2, 2, 2, 2, 2 ] } ], "hovertemplate": "time=Dinner
smoker=Yes
%{xaxis.title.text}=%{x}
%{yaxis.title.text}=%{y}", "legendgroup": "Dinner, Yes", "marker": { "color": "#636efa", "symbol": "diamond" }, "name": "Dinner, Yes", "showlegend": true, "type": "splom" }, { "dimensions": [ { "axis": { "matches": true }, "label": "total_bill", "values": [ 27.2, 22.76, 17.29, 16.66, 10.07, 15.98, 34.83, 13.03, 18.28, 24.71, 21.16, 10.65, 12.43, 24.08, 11.69, 13.42, 14.26, 15.95, 12.48, 29.8, 8.52, 14.52, 11.38, 22.82, 19.08, 20.27, 11.17, 12.26, 18.26, 8.51, 10.33, 14.15, 13.16, 17.47, 34.3, 41.19, 27.05, 16.43, 8.35, 18.64, 11.87, 9.78, 7.51, 7.56, 15.98 ] }, { "axis": { "matches": true }, "label": "tip", "values": [ 4, 3, 2.71, 3.4, 1.83, 2.03, 5.17, 2, 4, 5.85, 3, 1.5, 1.8, 2.92, 2.31, 1.68, 2.5, 2, 2.52, 4.2, 1.48, 2, 2, 2.18, 1.5, 2.83, 1.5, 2, 3.25, 1.25, 2, 2, 2.75, 3.5, 6.7, 5, 5, 2.3, 1.5, 1.36, 1.63, 1.73, 2, 1.44, 3 ] }, { "axis": { "matches": true }, "label": "size", "values": [ 4, 2, 2, 2, 1, 2, 4, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 6, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 6, 5, 6, 2, 2, 3, 2, 2, 2, 2, 3 ] } ], "hovertemplate": "time=Lunch
smoker=No
%{xaxis.title.text}=%{x}
%{yaxis.title.text}=%{y}", "legendgroup": "Lunch, No", "marker": { "color": "#EF553B", "symbol": "circle" }, "name": "Lunch, No", "showlegend": true, "type": "splom" }, { "dimensions": [ { "axis": { "matches": true }, "label": "total_bill", "values": [ 19.44, 32.68, 16, 19.81, 28.44, 15.48, 16.58, 10.34, 43.11, 13, 13.51, 18.71, 12.74, 13, 16.4, 20.53, 16.47, 12.16, 13.42, 8.58, 13.42, 16.27, 10.09 ] }, { "axis": { "matches": true }, "label": "tip", "values": [ 3, 5, 2, 4.19, 2.56, 2.02, 4, 2, 5, 2, 2, 4, 2.01, 2, 2.5, 4, 3.23, 2.2, 3.48, 1.92, 1.58, 2.5, 2 ] }, { "axis": { "matches": true }, "label": "size", "values": [ 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 3, 2, 2, 2, 4, 3, 2, 2, 1, 2, 2, 2 ] } ], "hovertemplate": "time=Lunch
smoker=Yes
%{xaxis.title.text}=%{x}
%{yaxis.title.text}=%{y}", "legendgroup": "Lunch, Yes", "marker": { "color": "#EF553B", "symbol": "diamond" }, "name": "Lunch, Yes", "showlegend": true, "type": "splom" } ], "layout": { "dragmode": "select", "legend": { "title": { "text": "time, smoker" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "scatter_matrix_fig = px.scatter_matrix(\n", " tips,\n", " # 描画対象の列名\n", " dimensions=[\"total_bill\", \"tip\", \"size\"],\n", " color=\"time\", # ❶ time列で色分け\n", " symbol=\"smoker\", # ❷ smoker列ごとにマーカの形状で分類\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.3 折れ線グラフ(line 関数)" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "hovertemplate": "country=Australia
year=%{x}
lifeExp=%{y}", "legendgroup": "Australia", "line": { "color": "#636efa", "dash": "solid" }, "mode": "lines", "name": "Australia", "orientation": "v", "showlegend": true, "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 69.12, 70.33, 70.93, 71.1, 71.93, 73.49, 74.74, 76.32, 77.56, 78.83, 80.37, 81.235 ], "yaxis": "y" }, { "hovertemplate": "country=New Zealand
year=%{x}
lifeExp=%{y}", "legendgroup": "New Zealand", "line": { "color": "#EF553B", "dash": "solid" }, "mode": "lines", "name": "New Zealand", "orientation": "v", "showlegend": true, "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 69.39, 70.26, 71.24, 71.52, 71.89, 72.22, 73.84, 74.32, 76.33, 77.55, 79.11, 80.204 ], "yaxis": "y" } ], "layout": { "legend": { "title": { "text": "country" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "year" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "lifeExp" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "gapminder_Oceania = gapminder.loc[gapminder[\"continent\"] == \"Oceania\"]\n", "px.line(\n", " gapminder_Oceania,\n", " x=\"year\",\n", " y=\"lifeExp\",\n", " color=\"country\", # ❶ country列でデータを分割\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.4 棒グラフ(bar 関数)" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "alignmentgroup": "True", "customdata": [ [ 68.75, 11367.16112 ], [ 69.96, 12489.95006 ], [ 71.3, 13462.48555 ], [ 72.13, 16076.58803 ], [ 72.88, 18970.57086 ], [ 74.21, 22090.88306 ], [ 75.76, 22898.79214 ], [ 76.86, 26626.515030000002 ], [ 77.95, 26342.88426 ], [ 78.61, 28954.92589 ], [ 79.77, 33328.96507 ], [ 80.653, 36319.235010000004 ] ], "hovertemplate": "year=%{x}
pop=%{y}
lifeExp=%{marker.color}
gdpPercap=%{customdata[1]}", "legendgroup": "", "marker": { "color": [ 68.75, 69.96, 71.3, 72.13, 72.88, 74.21, 75.76, 76.86, 77.95, 78.61, 79.77, 80.653 ], "coloraxis": "coloraxis" }, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "textposition": "auto", "type": "bar", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 14785584, 17010154, 18985849, 20819767, 22284500, 23796400, 25201900, 26549700, 28523502, 30305843, 31902268, 33390141 ], "yaxis": "y" } ], "layout": { "barmode": "relative", "coloraxis": { "colorbar": { "title": { "text": "lifeExp" } }, "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" ] ] }, "legend": { "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "year" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "pop" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "gapminder_Canada = gapminder.loc[gapminder[\"country\"] == \"Canada\"]\n", "px.bar(\n", " gapminder_Canada,\n", " x=\"year\",\n", " y=\"pop\",\n", " color=\"lifeExp\", # ❶ 値をカラースケールで表現する列\n", " hover_data=[\"lifeExp\", \"gdpPercap\"], # ❷ ホバーツールに表示する列\n", ").show()" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "alignmentgroup": "True", "hovertemplate": "time=Dinner
sex=%{x}
total_bill=%{y}", "legendgroup": "Dinner", "marker": { "color": "#636efa" }, "name": "Dinner", "offsetgroup": "Dinner", "orientation": "v", "showlegend": true, "textposition": "auto", "type": "bar", "x": [ "Female", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Female", "Male", "Female", "Male", "Female", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Female", "Female", "Female", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Female", "Female", "Female", "Female", "Female", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Female", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Female", "Female", "Female", "Male", "Male", "Male", "Female", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Female" ], "xaxis": "x", "y": [ 16.99, 10.34, 21.01, 23.68, 24.59, 25.29, 8.77, 26.88, 15.04, 14.78, 10.27, 35.26, 15.42, 18.43, 14.83, 21.58, 10.33, 16.29, 16.97, 20.65, 17.92, 20.29, 15.77, 39.42, 19.82, 17.81, 13.37, 12.69, 21.7, 19.65, 9.55, 18.35, 15.06, 20.69, 17.78, 24.06, 16.31, 16.93, 18.69, 31.27, 16.04, 17.46, 13.94, 9.68, 30.4, 18.29, 22.23, 32.4, 28.55, 18.04, 12.54, 10.29, 34.81, 9.94, 25.56, 19.49, 38.01, 26.41, 11.24, 48.27, 20.29, 13.81, 11.02, 18.29, 17.59, 20.08, 16.45, 3.07, 20.23, 15.01, 12.02, 17.07, 26.86, 25.28, 14.73, 10.51, 17.92, 28.97, 22.49, 5.75, 16.32, 22.75, 40.17, 27.28, 12.03, 21.01, 12.46, 11.35, 15.38, 44.3, 22.42, 20.92, 15.36, 20.49, 25.21, 18.24, 14.31, 14, 7.25, 38.07, 23.95, 25.71, 17.31, 29.93, 14.07, 13.13, 17.26, 24.55, 19.77, 29.85, 48.17, 25, 13.39, 16.49, 21.5, 12.66, 16.21, 13.81, 17.51, 24.52, 20.76, 31.71, 10.59, 10.63, 50.81, 15.81, 7.25, 31.85, 16.82, 32.9, 17.89, 14.48, 9.6, 34.63, 34.65, 23.33, 45.35, 23.17, 40.55, 20.69, 20.9, 30.46, 18.15, 23.1, 15.69, 26.59, 38.73, 24.27, 12.76, 30.06, 25.89, 48.33, 13.27, 28.17, 12.9, 28.15, 11.59, 7.74, 30.14, 20.45, 13.28, 22.12, 24.01, 15.69, 11.61, 10.77, 15.53, 10.07, 12.6, 32.83, 35.83, 29.03, 27.18, 22.67, 17.82, 18.78 ], "yaxis": "y" }, { "alignmentgroup": "True", "hovertemplate": "time=Lunch
sex=%{x}
total_bill=%{y}", "legendgroup": "Lunch", "marker": { "color": "#EF553B" }, "name": "Lunch", "offsetgroup": "Lunch", "orientation": "v", "showlegend": true, "textposition": "auto", "type": "bar", "x": [ "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Female", "Male", "Female", "Male", "Male", "Female", "Female", "Male", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Female", "Female", "Female", "Female", "Male", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Female", "Female", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Male", "Female", "Male", "Female", "Male", "Female", "Male", "Female", "Female" ], "xaxis": "x", "y": [ 27.2, 22.76, 17.29, 19.44, 16.66, 10.07, 32.68, 15.98, 34.83, 13.03, 18.28, 24.71, 21.16, 10.65, 12.43, 24.08, 11.69, 13.42, 14.26, 15.95, 12.48, 29.8, 8.52, 14.52, 11.38, 22.82, 19.08, 20.27, 11.17, 12.26, 18.26, 8.51, 10.33, 14.15, 16, 13.16, 17.47, 34.3, 41.19, 27.05, 16.43, 8.35, 18.64, 11.87, 9.78, 7.51, 19.81, 28.44, 15.48, 16.58, 7.56, 10.34, 43.11, 13, 13.51, 18.71, 12.74, 13, 16.4, 20.53, 16.47, 12.16, 13.42, 8.58, 15.98, 13.42, 16.27, 10.09 ], "yaxis": "y" } ], "layout": { "barmode": "relative", "legend": { "title": { "text": "time" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "sex" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "total_bill" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.bar(\n", " tips,\n", " x=\"sex\",\n", " y=\"total_bill\", # ❶ time列で分割して積み上げ\n", " color=\"time\",\n", ").show()" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "alignmentgroup": "True", "hovertemplate": "smoker=No
sex=%{x}
total_bill=%{y}", "legendgroup": "No", "marker": { "color": "#636efa" }, "name": "No", "offsetgroup": "No", "orientation": "v", "showlegend": true, "textposition": "auto", "type": "bar", "x": [ "Female", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Female", "Male", "Female", "Male", "Female", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Female", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Female", "Male", "Male", "Female", "Female", "Male", "Female", "Female", "Female", "Male", "Female", "Male", "Male", "Female", "Female", "Male", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Female", "Female", "Female", "Female", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Female", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Female" ], "xaxis": "x", "y": [ 16.99, 10.34, 21.01, 23.68, 24.59, 25.29, 8.77, 26.88, 15.04, 14.78, 10.27, 35.26, 15.42, 18.43, 14.83, 21.58, 10.33, 16.29, 16.97, 20.65, 17.92, 20.29, 15.77, 39.42, 19.82, 17.81, 13.37, 12.69, 21.7, 19.65, 9.55, 18.35, 15.06, 20.69, 17.78, 24.06, 16.31, 16.93, 18.69, 31.27, 16.04, 17.46, 13.94, 9.68, 30.4, 18.29, 22.23, 32.4, 28.55, 18.04, 12.54, 10.29, 34.81, 9.94, 25.56, 19.49, 26.41, 48.27, 17.59, 20.08, 16.45, 20.23, 12.02, 17.07, 14.73, 10.51, 27.2, 22.76, 17.29, 16.66, 10.07, 15.98, 34.83, 13.03, 18.28, 24.71, 21.16, 22.49, 22.75, 12.46, 20.92, 18.24, 14, 7.25, 38.07, 23.95, 25.71, 17.31, 29.93, 10.65, 12.43, 24.08, 11.69, 13.42, 14.26, 15.95, 12.48, 29.8, 8.52, 14.52, 11.38, 22.82, 19.08, 20.27, 11.17, 12.26, 18.26, 8.51, 10.33, 14.15, 13.16, 17.47, 34.3, 41.19, 27.05, 16.43, 8.35, 18.64, 11.87, 9.78, 7.51, 14.07, 13.13, 17.26, 24.55, 19.77, 29.85, 48.17, 25, 13.39, 16.49, 21.5, 12.66, 16.21, 13.81, 24.52, 20.76, 31.71, 20.69, 7.56, 48.33, 15.98, 20.45, 13.28, 11.61, 10.77, 10.07, 35.83, 29.03, 17.82, 18.78 ], "yaxis": "y" }, { "alignmentgroup": "True", "hovertemplate": "smoker=Yes
sex=%{x}
total_bill=%{y}", "legendgroup": "Yes", "marker": { "color": "#EF553B" }, "name": "Yes", "offsetgroup": "Yes", "orientation": "v", "showlegend": true, "textposition": "auto", "type": "bar", "x": [ "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Female", "Female", "Male", "Male", "Male", "Female", "Male", "Female", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Male", "Female", "Male", "Male", "Male", "Female", "Male", "Male", "Female", "Female", "Female", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Female", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Female", "Male" ], "xaxis": "x", "y": [ 38.01, 11.24, 20.29, 13.81, 11.02, 18.29, 3.07, 15.01, 26.86, 25.28, 17.92, 19.44, 32.68, 28.97, 5.75, 16.32, 40.17, 27.28, 12.03, 21.01, 11.35, 15.38, 44.3, 22.42, 15.36, 20.49, 25.21, 14.31, 16, 17.51, 10.59, 10.63, 50.81, 15.81, 7.25, 31.85, 16.82, 32.9, 17.89, 14.48, 9.6, 34.63, 34.65, 23.33, 45.35, 23.17, 40.55, 20.9, 30.46, 18.15, 23.1, 15.69, 19.81, 28.44, 15.48, 16.58, 10.34, 43.11, 13, 13.51, 18.71, 12.74, 13, 16.4, 20.53, 16.47, 26.59, 38.73, 24.27, 12.76, 30.06, 25.89, 13.27, 28.17, 12.9, 28.15, 11.59, 7.74, 30.14, 12.16, 13.42, 8.58, 13.42, 16.27, 10.09, 22.12, 24.01, 15.69, 15.53, 12.6, 32.83, 27.18, 22.67 ], "yaxis": "y" } ], "layout": { "barmode": "group", "legend": { "title": { "text": "smoker" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "sex" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "total_bill" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.bar(\n", " tips,\n", " x=\"sex\",\n", " y=\"total_bill\", # ❶ smoker列で分割してグループ化\n", " color=\"smoker\",\n", " barmode=\"group\",\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.5 面グラフ(area 関数)" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "hovertemplate": "continent=Asia
country=Afghanistan
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": true, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 8425333, 9240934, 10267083, 11537966, 13079460, 14880372, 12881816, 13867957, 16317921, 22227415, 25268405, 31889923 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Bahrain
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 120447, 138655, 171863, 202182, 230800, 297410, 377967, 454612, 529491, 598561, 656397, 708573 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Bangladesh
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 46886859, 51365468, 56839289, 62821884, 70759295, 80428306, 93074406, 103764241, 113704579, 123315288, 135656790, 150448339 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Cambodia
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 4693836, 5322536, 6083619, 6960067, 7450606, 6978607, 7272485, 8371791, 10150094, 11782962, 12926707, 14131858 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=China
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 556263527, 637408000, 665770000, 754550000, 862030000, 943455000, 1000281000, 1084035000, 1164970000, 1230075000, 1280400000, 1318683096 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Hong Kong, China
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2125900, 2736300, 3305200, 3722800, 4115700, 4583700, 5264500, 5584510, 5829696, 6495918, 6762476, 6980412 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=India
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 372000000, 409000000, 454000000, 506000000, 567000000, 634000000, 708000000, 788000000, 872000000, 959000000, 1034172547, 1110396331 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Indonesia
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 82052000, 90124000, 99028000, 109343000, 121282000, 136725000, 153343000, 169276000, 184816000, 199278000, 211060000, 223547000 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Iran
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 17272000, 19792000, 22874000, 26538000, 30614000, 35480679, 43072751, 51889696, 60397973, 63327987, 66907826, 69453570 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Iraq
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 5441766, 6248643, 7240260, 8519282, 10061506, 11882916, 14173318, 16543189, 17861905, 20775703, 24001816, 27499638 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Israel
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1620914, 1944401, 2310904, 2693585, 3095893, 3495918, 3858421, 4203148, 4936550, 5531387, 6029529, 6426679 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Japan
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 86459025, 91563009, 95831757, 100825279, 107188273, 113872473, 118454974, 122091325, 124329269, 125956499, 127065841, 127467972 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Jordan
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 607914, 746559, 933559, 1255058, 1613551, 1937652, 2347031, 2820042, 3867409, 4526235, 5307470, 6053193 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Korea, Dem. Rep.
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 8865488, 9411381, 10917494, 12617009, 14781241, 16325320, 17647518, 19067554, 20711375, 21585105, 22215365, 23301725 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Korea, Rep.
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 20947571, 22611552, 26420307, 30131000, 33505000, 36436000, 39326000, 41622000, 43805450, 46173816, 47969150, 49044790 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Kuwait
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 160000, 212846, 358266, 575003, 841934, 1140357, 1497494, 1891487, 1418095, 1765345, 2111561, 2505559 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Lebanon
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1439529, 1647412, 1886848, 2186894, 2680018, 3115787, 3086876, 3089353, 3219994, 3430388, 3677780, 3921278 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Malaysia
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 6748378, 7739235, 8906385, 10154878, 11441462, 12845381, 14441916, 16331785, 18319502, 20476091, 22662365, 24821286 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Mongolia
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 800663, 882134, 1010280, 1149500, 1320500, 1528000, 1756032, 2015133, 2312802, 2494803, 2674234, 2874127 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Myanmar
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 20092996, 21731844, 23634436, 25870271, 28466390, 31528087, 34680442, 38028578, 40546538, 43247867, 45598081, 47761980 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Nepal
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 9182536, 9682338, 10332057, 11261690, 12412593, 13933198, 15796314, 17917180, 20326209, 23001113, 25873917, 28901790 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Oman
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 507833, 561977, 628164, 714775, 829050, 1004533, 1301048, 1593882, 1915208, 2283635, 2713462, 3204897 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Pakistan
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 41346560, 46679944, 53100671, 60641899, 69325921, 78152686, 91462088, 105186881, 120065004, 135564834, 153403524, 169270617 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Philippines
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 22438691, 26072194, 30325264, 35356600, 40850141, 46850962, 53456774, 60017788, 67185766, 75012988, 82995088, 91077287 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Saudi Arabia
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 4005677, 4419650, 4943029, 5618198, 6472756, 8128505, 11254672, 14619745, 16945857, 21229759, 24501530, 27601038 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Singapore
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1127000, 1445929, 1750200, 1977600, 2152400, 2325300, 2651869, 2794552, 3235865, 3802309, 4197776, 4553009 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Sri Lanka
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 7982342, 9128546, 10421936, 11737396, 13016733, 14116836, 15410151, 16495304, 17587060, 18698655, 19576783, 20378239 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Syria
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 3661549, 4149908, 4834621, 5680812, 6701172, 7932503, 9410494, 11242847, 13219062, 15081016, 17155814, 19314747 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Taiwan
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 8550362, 10164215, 11918938, 13648692, 15226039, 16785196, 18501390, 19757799, 20686918, 21628605, 22454239, 23174294 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Thailand
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 21289402, 25041917, 29263397, 34024249, 39276153, 44148285, 48827160, 52910342, 56667095, 60216677, 62806748, 65068149 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Vietnam
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 26246839, 28998543, 33796140, 39463910, 44655014, 50533506, 56142181, 62826491, 69940728, 76048996, 80908147, 85262356 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=West Bank and Gaza
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1030585, 1070439, 1133134, 1142636, 1089572, 1261091, 1425876, 1691210, 2104779, 2826046, 3389578, 4018332 ], "yaxis": "y" }, { "hovertemplate": "continent=Asia
country=Yemen, Rep.
year=%{x}
pop=%{y}", "legendgroup": "Asia", "line": { "color": "#636efa" }, "mode": "lines", "name": "Asia", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 4963829, 5498090, 6120081, 6740785, 7407075, 8403990, 9657618, 11219340, 13367997, 15826497, 18701257, 22211743 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Albania
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": true, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1282697, 1476505, 1728137, 1984060, 2263554, 2509048, 2780097, 3075321, 3326498, 3428038, 3508512, 3600523 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Austria
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 6927772, 6965860, 7129864, 7376998, 7544201, 7568430, 7574613, 7578903, 7914969, 8069876, 8148312, 8199783 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Belgium
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 8730405, 8989111, 9218400, 9556500, 9709100, 9821800, 9856303, 9870200, 10045622, 10199787, 10311970, 10392226 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Bosnia and Herzegovina
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2791000, 3076000, 3349000, 3585000, 3819000, 4086000, 4172693, 4338977, 4256013, 3607000, 4165416, 4552198 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Bulgaria
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 7274900, 7651254, 8012946, 8310226, 8576200, 8797022, 8892098, 8971958, 8658506, 8066057, 7661799, 7322858 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Croatia
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 3882229, 3991242, 4076557, 4174366, 4225310, 4318673, 4413368, 4484310, 4494013, 4444595, 4481020, 4493312 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Czech Republic
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 9125183, 9513758, 9620282, 9835109, 9862158, 10161915, 10303704, 10311597, 10315702, 10300707, 10256295, 10228744 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Denmark
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 4334000, 4487831, 4646899, 4838800, 4991596, 5088419, 5117810, 5127024, 5171393, 5283663, 5374693, 5468120 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Finland
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 4090500, 4324000, 4491443, 4605744, 4639657, 4738902, 4826933, 4931729, 5041039, 5134406, 5193039, 5238460 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=France
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 42459667, 44310863, 47124000, 49569000, 51732000, 53165019, 54433565, 55630100, 57374179, 58623428, 59925035, 61083916 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Germany
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 69145952, 71019069, 73739117, 76368453, 78717088, 78160773, 78335266, 77718298, 80597764, 82011073, 82350671, 82400996 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Greece
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 7733250, 8096218, 8448233, 8716441, 8888628, 9308479, 9786480, 9974490, 10325429, 10502372, 10603863, 10706290 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Hungary
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 9504000, 9839000, 10063000, 10223422, 10394091, 10637171, 10705535, 10612740, 10348684, 10244684, 10083313, 9956108 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Iceland
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 147962, 165110, 182053, 198676, 209275, 221823, 233997, 244676, 259012, 271192, 288030, 301931 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Ireland
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2952156, 2878220, 2830000, 2900100, 3024400, 3271900, 3480000, 3539900, 3557761, 3667233, 3879155, 4109086 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Italy
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 47666000, 49182000, 50843200, 52667100, 54365564, 56059245, 56535636, 56729703, 56840847, 57479469, 57926999, 58147733 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Montenegro
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 413834, 442829, 474528, 501035, 527678, 560073, 562548, 569473, 621621, 692651, 720230, 684736 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Netherlands
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 10381988, 11026383, 11805689, 12596822, 13329874, 13852989, 14310401, 14665278, 15174244, 15604464, 16122830, 16570613 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Norway
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 3327728, 3491938, 3638919, 3786019, 3933004, 4043205, 4114787, 4186147, 4286357, 4405672, 4535591, 4627926 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Poland
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 25730551, 28235346, 30329617, 31785378, 33039545, 34621254, 36227381, 37740710, 38370697, 38654957, 38625976, 38518241 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Portugal
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 8526050, 8817650, 9019800, 9103000, 8970450, 9662600, 9859650, 9915289, 9927680, 10156415, 10433867, 10642836 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Romania
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 16630000, 17829327, 18680721, 19284814, 20662648, 21658597, 22356726, 22686371, 22797027, 22562458, 22404337, 22276056 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Serbia
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 6860147, 7271135, 7616060, 7971222, 8313288, 8686367, 9032824, 9230783, 9826397, 10336594, 10111559, 10150265 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Slovak Republic
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 3558137, 3844277, 4237384, 4442238, 4593433, 4827803, 5048043, 5199318, 5302888, 5383010, 5410052, 5447502 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Slovenia
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1489518, 1533070, 1582962, 1646912, 1694510, 1746919, 1861252, 1945870, 1999210, 2011612, 2011497, 2009245 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Spain
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 28549870, 29841614, 31158061, 32850275, 34513161, 36439000, 37983310, 38880702, 39549438, 39855442, 40152517, 40448191 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Sweden
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 7124673, 7363802, 7561588, 7867931, 8122293, 8251648, 8325260, 8421403, 8718867, 8897619, 8954175, 9031088 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Switzerland
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 4815000, 5126000, 5666000, 6063000, 6401400, 6316424, 6468126, 6649942, 6995447, 7193761, 7361757, 7554661 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=Turkey
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 22235677, 25670939, 29788695, 33411317, 37492953, 42404033, 47328791, 52881328, 58179144, 63047647, 67308928, 71158647 ], "yaxis": "y" }, { "hovertemplate": "continent=Europe
country=United Kingdom
year=%{x}
pop=%{y}", "legendgroup": "Europe", "line": { "color": "#EF553B" }, "mode": "lines", "name": "Europe", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 50430000, 51430000, 53292000, 54959000, 56079000, 56179000, 56339704, 56981620, 57866349, 58808266, 59912431, 60776238 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Algeria
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": true, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 9279525, 10270856, 11000948, 12760499, 14760787, 17152804, 20033753, 23254956, 26298373, 29072015, 31287142, 33333216 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Angola
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 4232095, 4561361, 4826015, 5247469, 5894858, 6162675, 7016384, 7874230, 8735988, 9875024, 10866106, 12420476 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Benin
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1738315, 1925173, 2151895, 2427334, 2761407, 3168267, 3641603, 4243788, 4981671, 6066080, 7026113, 8078314 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Botswana
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 442308, 474639, 512764, 553541, 619351, 781472, 970347, 1151184, 1342614, 1536536, 1630347, 1639131 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Burkina Faso
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 4469979, 4713416, 4919632, 5127935, 5433886, 5889574, 6634596, 7586551, 8878303, 10352843, 12251209, 14326203 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Burundi
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2445618, 2667518, 2961915, 3330989, 3529983, 3834415, 4580410, 5126023, 5809236, 6121610, 7021078, 8390505 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Cameroon
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 5009067, 5359923, 5793633, 6335506, 7021028, 7959865, 9250831, 10780667, 12467171, 14195809, 15929988, 17696293 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Central African Republic
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1291695, 1392284, 1523478, 1733638, 1927260, 2167533, 2476971, 2840009, 3265124, 3696513, 4048013, 4369038 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Chad
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2682462, 2894855, 3150417, 3495967, 3899068, 4388260, 4875118, 5498955, 6429417, 7562011, 8835739, 10238807 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Comoros
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 153936, 170928, 191689, 217378, 250027, 304739, 348643, 395114, 454429, 527982, 614382, 710960 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Congo, Dem. Rep.
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 14100005, 15577932, 17486434, 19941073, 23007669, 26480870, 30646495, 35481645, 41672143, 47798986, 55379852, 64606759 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Congo, Rep.
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 854885, 940458, 1047924, 1179760, 1340458, 1536769, 1774735, 2064095, 2409073, 2800947, 3328795, 3800610 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Cote d'Ivoire
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2977019, 3300000, 3832408, 4744870, 6071696, 7459574, 9025951, 10761098, 12772596, 14625967, 16252726, 18013409 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Djibouti
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 63149, 71851, 89898, 127617, 178848, 228694, 305991, 311025, 384156, 417908, 447416, 496374 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Egypt
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 22223309, 25009741, 28173309, 31681188, 34807417, 38783863, 45681811, 52799062, 59402198, 66134291, 73312559, 80264543 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Equatorial Guinea
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 216964, 232922, 249220, 259864, 277603, 192675, 285483, 341244, 387838, 439971, 495627, 551201 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Eritrea
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1438760, 1542611, 1666618, 1820319, 2260187, 2512642, 2637297, 2915959, 3668440, 4058319, 4414865, 4906585 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Ethiopia
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 20860941, 22815614, 25145372, 27860297, 30770372, 34617799, 38111756, 42999530, 52088559, 59861301, 67946797, 76511887 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Gabon
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 420702, 434904, 455661, 489004, 537977, 706367, 753874, 880397, 985739, 1126189, 1299304, 1454867 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Gambia
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 284320, 323150, 374020, 439593, 517101, 608274, 715523, 848406, 1025384, 1235767, 1457766, 1688359 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Ghana
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 5581001, 6391288, 7355248, 8490213, 9354120, 10538093, 11400338, 14168101, 16278738, 18418288, 20550751, 22873338 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Guinea
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2664249, 2876726, 3140003, 3451418, 3811387, 4227026, 4710497, 5650262, 6990574, 8048834, 8807818, 9947814 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Guinea-Bissau
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 580653, 601095, 627820, 601287, 625361, 745228, 825987, 927524, 1050938, 1193708, 1332459, 1472041 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Kenya
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 6464046, 7454779, 8678557, 10191512, 12044785, 14500404, 17661452, 21198082, 25020539, 28263827, 31386842, 35610177 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Lesotho
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 748747, 813338, 893143, 996380, 1116779, 1251524, 1411807, 1599200, 1803195, 1982823, 2046772, 2012649 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Liberia
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 863308, 975950, 1112796, 1279406, 1482628, 1703617, 1956875, 2269414, 1912974, 2200725, 2814651, 3193942 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Libya
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1019729, 1201578, 1441863, 1759224, 2183877, 2721783, 3344074, 3799845, 4364501, 4759670, 5368585, 6036914 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Madagascar
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 4762912, 5181679, 5703324, 6334556, 7082430, 8007166, 9171477, 10568642, 12210395, 14165114, 16473477, 19167654 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Malawi
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2917802, 3221238, 3628608, 4147252, 4730997, 5637246, 6502825, 7824747, 10014249, 10419991, 11824495, 13327079 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Mali
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 3838168, 4241884, 4690372, 5212416, 5828158, 6491649, 6998256, 7634008, 8416215, 9384984, 10580176, 12031795 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Mauritania
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1022556, 1076852, 1146757, 1230542, 1332786, 1456688, 1622136, 1841240, 2119465, 2444741, 2828858, 3270065 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Mauritius
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 516556, 609816, 701016, 789309, 851334, 913025, 992040, 1042663, 1096202, 1149818, 1200206, 1250882 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Morocco
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 9939217, 11406350, 13056604, 14770296, 16660670, 18396941, 20198730, 22987397, 25798239, 28529501, 31167783, 33757175 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Mozambique
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 6446316, 7038035, 7788944, 8680909, 9809596, 11127868, 12587223, 12891952, 13160731, 16603334, 18473780, 19951656 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Namibia
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 485831, 548080, 621392, 706640, 821782, 977026, 1099010, 1278184, 1554253, 1774766, 1972153, 2055080 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Niger
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 3379468, 3692184, 4076008, 4534062, 5060262, 5682086, 6437188, 7332638, 8392818, 9666252, 11140655, 12894865 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Nigeria
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 33119096, 37173340, 41871351, 47287752, 53740085, 62209173, 73039376, 81551520, 93364244, 106207839, 119901274, 135031164 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Reunion
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 257700, 308700, 358900, 414024, 461633, 492095, 517810, 562035, 622191, 684810, 743981, 798094 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Rwanda
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2534927, 2822082, 3051242, 3451079, 3992121, 4657072, 5507565, 6349365, 7290203, 7212583, 7852401, 8860588 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Sao Tome and Principe
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 60011, 61325, 65345, 70787, 76595, 86796, 98593, 110812, 125911, 145608, 170372, 199579 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Senegal
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2755589, 3054547, 3430243, 3965841, 4588696, 5260855, 6147783, 7171347, 8307920, 9535314, 10870037, 12267493 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Sierra Leone
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2143249, 2295678, 2467895, 2662190, 2879013, 3140897, 3464522, 3868905, 4260884, 4578212, 5359092, 6144562 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Somalia
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2526994, 2780415, 3080153, 3428839, 3840161, 4353666, 5828892, 6921858, 6099799, 6633514, 7753310, 9118773 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=South Africa
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 14264935, 16151549, 18356657, 20997321, 23935810, 27129932, 31140029, 35933379, 39964159, 42835005, 44433622, 43997828 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Sudan
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 8504667, 9753392, 11183227, 12716129, 14597019, 17104986, 20367053, 24725960, 28227588, 32160729, 37090298, 42292929 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Swaziland
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 290243, 326741, 370006, 420690, 480105, 551425, 649901, 779348, 962344, 1054486, 1130269, 1133066 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Tanzania
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 8322925, 9452826, 10863958, 12607312, 14706593, 17129565, 19844382, 23040630, 26605473, 30686889, 34593779, 38139640 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Togo
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1219113, 1357445, 1528098, 1735550, 2056351, 2308582, 2644765, 3154264, 3747553, 4320890, 4977378, 5701579 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Tunisia
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 3647735, 3950849, 4286552, 4786986, 5303507, 6005061, 6734098, 7724976, 8523077, 9231669, 9770575, 10276158 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Uganda
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 5824797, 6675501, 7688797, 8900294, 10190285, 11457758, 12939400, 15283050, 18252190, 21210254, 24739869, 29170398 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Zambia
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2672000, 3016000, 3421000, 3900000, 4506497, 5216550, 6100407, 7272406, 8381163, 9417789, 10595811, 11746035 ], "yaxis": "y" }, { "hovertemplate": "continent=Africa
country=Zimbabwe
year=%{x}
pop=%{y}", "legendgroup": "Africa", "line": { "color": "#00cc96" }, "mode": "lines", "name": "Africa", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 3080907, 3646340, 4277736, 4995432, 5861135, 6642107, 7636524, 9216418, 10704340, 11404948, 11926563, 12311143 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Argentina
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": true, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 17876956, 19610538, 21283783, 22934225, 24779799, 26983828, 29341374, 31620918, 33958947, 36203463, 38331121, 40301927 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Bolivia
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2883315, 3211738, 3593918, 4040665, 4565872, 5079716, 5642224, 6156369, 6893451, 7693188, 8445134, 9119152 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Brazil
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 56602560, 65551171, 76039390, 88049823, 100840058, 114313951, 128962939, 142938076, 155975974, 168546719, 179914212, 190010647 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Canada
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 14785584, 17010154, 18985849, 20819767, 22284500, 23796400, 25201900, 26549700, 28523502, 30305843, 31902268, 33390141 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Chile
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 6377619, 7048426, 7961258, 8858908, 9717524, 10599793, 11487112, 12463354, 13572994, 14599929, 15497046, 16284741 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Colombia
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 12350771, 14485993, 17009885, 19764027, 22542890, 25094412, 27764644, 30964245, 34202721, 37657830, 41008227, 44227550 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Costa Rica
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 926317, 1112300, 1345187, 1588717, 1834796, 2108457, 2424367, 2799811, 3173216, 3518107, 3834934, 4133884 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Cuba
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 6007797, 6640752, 7254373, 8139332, 8831348, 9537988, 9789224, 10239839, 10723260, 10983007, 11226999, 11416987 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Dominican Republic
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2491346, 2923186, 3453434, 4049146, 4671329, 5302800, 5968349, 6655297, 7351181, 7992357, 8650322, 9319622 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Ecuador
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 3548753, 4058385, 4681707, 5432424, 6298651, 7278866, 8365850, 9545158, 10748394, 11911819, 12921234, 13755680 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=El Salvador
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2042865, 2355805, 2747687, 3232927, 3790903, 4282586, 4474873, 4842194, 5274649, 5783439, 6353681, 6939688 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Guatemala
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 3146381, 3640876, 4208858, 4690773, 5149581, 5703430, 6395630, 7326406, 8486949, 9803875, 11178650, 12572928 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Haiti
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 3201488, 3507701, 3880130, 4318137, 4698301, 4908554, 5198399, 5756203, 6326682, 6913545, 7607651, 8502814 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Honduras
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1517453, 1770390, 2090162, 2500689, 2965146, 3055235, 3669448, 4372203, 5077347, 5867957, 6677328, 7483763 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Jamaica
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1426095, 1535090, 1665128, 1861096, 1997616, 2156814, 2298309, 2326606, 2378618, 2531311, 2664659, 2780132 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Mexico
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 30144317, 35015548, 41121485, 47995559, 55984294, 63759976, 71640904, 80122492, 88111030, 95895146, 102479927, 108700891 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Nicaragua
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1165790, 1358828, 1590597, 1865490, 2182908, 2554598, 2979423, 3344353, 4017939, 4609572, 5146848, 5675356 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Panama
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 940080, 1063506, 1215725, 1405486, 1616384, 1839782, 2036305, 2253639, 2484997, 2734531, 2990875, 3242173 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Paraguay
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1555876, 1770902, 2009813, 2287985, 2614104, 2984494, 3366439, 3886512, 4483945, 5154123, 5884491, 6667147 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Peru
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 8025700, 9146100, 10516500, 12132200, 13954700, 15990099, 18125129, 20195924, 22430449, 24748122, 26769436, 28674757 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Puerto Rico
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2227000, 2260000, 2448046, 2648961, 2847132, 3080828, 3279001, 3444468, 3585176, 3759430, 3859606, 3942491 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Trinidad and Tobago
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 662850, 764900, 887498, 960155, 975199, 1039009, 1116479, 1191336, 1183669, 1138101, 1101832, 1056608 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=United States
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 157553000, 171984000, 186538000, 198712000, 209896000, 220239000, 232187835, 242803533, 256894189, 272911760, 287675526, 301139947 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Uruguay
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 2252965, 2424959, 2598466, 2748579, 2829526, 2873520, 2953997, 3045153, 3149262, 3262838, 3363085, 3447496 ], "yaxis": "y" }, { "hovertemplate": "continent=Americas
country=Venezuela
year=%{x}
pop=%{y}", "legendgroup": "Americas", "line": { "color": "#ab63fa" }, "mode": "lines", "name": "Americas", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 5439568, 6702668, 8143375, 9709552, 11515649, 13503563, 15620766, 17910182, 20265563, 22374398, 24287670, 26084662 ], "yaxis": "y" }, { "hovertemplate": "continent=Oceania
country=Australia
year=%{x}
pop=%{y}", "legendgroup": "Oceania", "line": { "color": "#FFA15A" }, "mode": "lines", "name": "Oceania", "orientation": "v", "showlegend": true, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 8691212, 9712569, 10794968, 11872264, 13177000, 14074100, 15184200, 16257249, 17481977, 18565243, 19546792, 20434176 ], "yaxis": "y" }, { "hovertemplate": "continent=Oceania
country=New Zealand
year=%{x}
pop=%{y}", "legendgroup": "Oceania", "line": { "color": "#FFA15A" }, "mode": "lines", "name": "Oceania", "orientation": "v", "showlegend": false, "stackgroup": "1", "type": "scatter", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "xaxis": "x", "y": [ 1994794, 2229407, 2488550, 2728150, 2929100, 3164900, 3210650, 3317166, 3437674, 3676187, 3908037, 4115771 ], "yaxis": "y" } ], "layout": { "legend": { "title": { "text": "continent" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "year" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "pop" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.area(\n", " gapminder,\n", " x=\"year\",\n", " y=\"pop\", # ❶ continent列で分割\n", " color=\"continent\", # ❷ country列のデータごとに境界線を描画\n", " line_group=\"country\",\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.6 エラーバー" ] }, { "cell_type": "code", "execution_count": 10, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "error_x": { "array": [ 0.08644794300545999, 0.032268099683674646, 0.06707887907875873, 0.04508739364133492, 0.038210275203151726, 0.04108113499221856, 0.04014795834695406, 0.03173839459582769, 0.062191936792030146, 0.043024727082126436, 0.09738020779272523, 0.06778008914343112, 0.019856988842711087, 0.04267010093480328, 0.0343346239774423, 0.07976388039585666, 0.08799982885634318, 0.0903841955826372, 0.06627198123752623, 0.02702082620297578, 0.025236670150458974, 0.08548979426974024, 0.05277146463087467, 0.08021610840045981, 0.05724885171916064, 0.07331425252875111, 0.051901162746405584, 0.0770883910501888, 0.05688579907047156, 0.04657098785919809, 0.03426889079532818, 0.006820934841670412, 0.03779241793280999, 0.007962607769825237, 0.0982817113730445, 0.01816128513307638, 0.08118586977205398, 0.08749616449558982, 0.06884132523859433, 0.05694944127453758, 0.01609714368156088, 0.04668800227633063, 0.0345172051155215, 0.02250399578140846, 0.05925118687657968, 0.0312269837701917, 0.09163055534683508, 0.09096355249515571, 0.02571182937821962, 0.01108913007440292, 0.019296273201911286, 0.04995841706788861, 0.07285856679745963, 0.02081944384087915, 0.024803355837723074, 0.0851671874936367, 0.04158487182675274, 0.061668506715523624, 0.023366613923925007, 0.010196725942579744, 0.05158570169685298, 0.04771409870497824, 0.015267164409316325, 0.06218062317404155, 0.05440101188139382, 0.06541373469707444, 0.014454554012465981, 0.0751527817135244, 0.02220491397999227, 0.051935182436603305, 0.0785296028221619, 0.002233042799180618, 0.03243624597261865, 0.08729223764001111, 0.08447096076020696, 0.053844059259454374, 0.0866608274166513, 0.09498059913536266, 0.08264069976293414, 0.08541154438365388, 0.009874340182034836, 0.0651304332340991, 0.0703516988152653, 0.061024081264662966, 0.0799615261736028, 0.0034571219871634253, 0.077023873455498, 0.0731728600739527, 0.02596983932983531, 0.02570692988221467, 0.06323033174301278, 0.03452974615910816, 0.07965886780072876, 0.04461462320034573, 0.0782749414784172, 0.09904717836238408, 0.030024833953390007, 0.014300582825809939, 0.09013084363492739, 0.05415593788873733 ] }, "error_y": { "array": [ 0.09747403708550822, 0.06366044000018972, 0.0993913024610479, 0.05460708041429516, 0.052642593390552134, 0.01354279030721699, 0.03557051709838811, 0.0026218567296373285, 0.01603951795196491, 0.0745637192707496, 0.0030399689928788834, 0.03665430972437444, 0.08623462528380442, 0.06926777175073544, 0.06909421420661686, 0.01886368009553109, 0.04419042807484234, 0.05815774073442912, 0.09897517076637052, 0.020390622523312186, 0.024773290176235488, 0.026217308377291193, 0.07501724132979928, 0.04569753274356928, 0.0056929438411094995, 0.05085162406102396, 0.021196016464367598, 0.07986042447602103, 0.029733138150727225, 0.002760601195450363, 0.059343244946462106, 0.08438404289311889, 0.038101612406221425, 0.07498583107261435, 0.051114147829712825, 0.054095180496218864, 0.09594343210617524, 0.08039608914986468, 0.0032323066623573984, 0.07093872512312951, 0.04650014815635061, 0.09475489413951, 0.022143273432348832, 0.02670720196843658, 0.0081473964877262, 0.04286188286637865, 0.01090187640190683, 0.06337867606119178, 0.08029632373737379, 0.06968004961201785, 0.07662113810757705, 0.034245411984351985, 0.08458514830276777, 0.04287687749994426, 0.08240098704123189, 0.06264961586242938, 0.014342304867024492, 0.007838689985494796, 0.0018332642913007292, 0.006672499763935647, 0.045858381370843186, 0.011334192276759048, 0.0027783348848669956, 0.07548614813904675, 0.039485048046063946, 0.07469384956075252, 0.04524048267464516, 0.045008674700076114, 0.0478072506717831, 0.047400392656219405, 0.08031633421141697, 0.040239251985773584, 0.0904686160343623, 0.0037061047954035867, 0.07738743427204187, 0.012564138113773882, 0.06185135669120855, 0.001036426133523194, 0.0538627282576347, 0.0003017956619596363, 0.09511937854902046, 0.09054020337027781, 0.07959669419422694, 0.09152743199147875, 0.014555823115839707, 0.01577300698705333, 0.0187631672902434, 0.062249590229992116, 0.09058094960083019, 0.09899551783590738, 0.07111224587658159, 0.07318004091422953, 0.09092932045442545, 0.04008737323711209, 0.02498506802250368, 0.017343017078712285, 0.0119457050333729, 0.08126105880328288, 0.014679237341724317, 0.026429748272690068 ] }, "hovertemplate": "x=%{x}
y=%{y}", "legendgroup": "", "marker": { "color": "#636efa", "symbol": "circle" }, "mode": "markers", "name": "", "orientation": "v", "showlegend": false, "type": "scatter", "x": [ 1.6243453636632417, -0.5281717522634557, 0.8654076293246785, 1.74481176421648, 0.31903909605709857, 1.462107937044974, -0.3224172040135075, 1.1337694423354374, -0.17242820755043575, 0.04221374671559283, -1.1006191772129212, 0.9015907205927955, 0.9008559492644118, -0.12289022551864817, -0.2678880796260159, -0.691660751725309, -0.6871727001195994, -0.671246130836819, -1.1173103486352778, 1.6598021771098705, -0.19183555236161492, -0.7471582937508376, 0.05080775477602897, 0.19091548466746602, 0.12015895248162915, 0.3001703199558275, -1.1425181980221402, -0.2088942333747781, 0.8389834138745049, 0.2855873252542588, -0.7543979409966528, 0.5129298204180088, 0.48851814653749703, 1.131629387451427, 2.1855754065331614, -1.4441138054295894, 0.16003706944783047, 0.31563494724160523, -0.3062040126283718, 0.2300947353643834, -0.22232814261035927, 0.1865613909882843, 0.19829972012676975, -0.6706622862890306, 0.12182127099143693, 1.198917879901507, -0.3752849500901142, 0.4234943540641129, -0.3438536755710756, -0.6200008439481293, -0.4471285647859982, 0.4034916417908, -1.0949118457410418, 0.7405564510962748, -0.26621850600362207, -1.3731173202467557, 0.8461606475850334, 0.35054597866410736, -0.038695509266051115, 1.121417708235664, -0.024616955875778355, 1.2737559301587766, -1.857981864446752, 1.6276507531489064, -1.199268032335186, -0.18092030207815046, -1.2300581356669618, 0.7928068659193477, 0.5205763370733708, 0.8018610318713447, -0.18656977190734877, 0.8688861570058679, 0.5294653243527092, 0.07782112791270591, 0.23249455917873788, -0.31011677351806, 1.038824601859414, 0.44136444356858207, -0.13644474389603303, 0.0174094083000046, -0.5170944579202279, 0.2487991613877705, 0.4952113239779604, 0.9863351878212421, 2.1906997289697334, -0.646916688254908, 2.528325706806398, 0.043668993178389105, 1.3314571125875918, 0.6800698398781045, -1.2725587552459943, 0.5031848134353261, -0.11044702641731631, 0.5627610966190263, 0.28066507712263905, 1.1603385699937696, 1.9046587083409812, 0.6590497961002102, 0.602319280295629, 0.8109516728035557 ], "xaxis": "x", "y": [ -0.6117564136500754, -1.0729686221561705, -2.3015386968802827, -0.7612069008951028, -0.2493703754774101, -2.060140709497654, -0.38405435466841564, -1.0998912673140309, -0.8778584179213718, 0.5828152137158222, 1.1447237098396141, 0.5024943389018682, -0.6837278591743331, -0.9357694342590688, 0.530355466738186, -0.39675352685597737, -0.8452056414987196, -0.01266459891890136, 0.23441569781709215, 0.7420441605773356, -0.8876289640848363, 1.6924546010277466, -0.6369956465693534, 2.100255136478842, 0.6172031097074192, -0.35224984649351865, -0.3493427224128775, 0.5866231911821976, 0.9311020813035573, 0.8851411642707281, 1.2528681552332879, -0.29809283510271567, -0.07557171302105573, 1.5198168164221988, -1.3964963354881377, -0.5044658629464512, 0.8761689211162249, -2.022201215824003, 0.8279746426072462, 0.7620111803120247, -0.20075806892999745, 0.4100516472082563, 0.11900864580745882, 0.3775637863209194, 1.1294839079119197, 0.18515641748394385, -0.6387304074542224, 0.07734006834855942, 0.04359685683424694, 0.6980320340722189, 1.2245077048054989, 0.593578523237067, 0.1693824330586681, -0.9537006018079346, 0.03261454669335856, 0.31515939204229176, -0.8595159408319863, -1.3122834112374318, -1.6157723547032947, 0.4089005379368278, -0.7751616191691596, 1.9671017492547347, 1.2361640304528203, 0.3380116965744758, 0.8633453175440216, -0.6039206277932573, 0.5505374959762154, -0.6235307296797916, -1.1443413896231427, 0.04656729842414554, -0.10174587252914521, 0.7504116398650081, 0.13770120999738608, 0.6183802619985245, 0.6825514068644851, -2.434837764107139, 2.1869796469742577, -0.10015523328349978, -0.11905418777480989, -1.1220187287468883, -0.997026827650263, -0.29664115237086275, -0.17470315974250095, 0.2135339013354418, -1.8963609228910925, 0.901486891648711, -0.24863477771546005, -0.22631424251360518, -0.2873078634760189, -0.3198015988986712, 0.31354772046343216, 1.2932258825322618, -0.6173620637123609, 0.24073709223773224, -0.07311270374727777, 0.36949271637572373, 1.1110566985605046, -1.6274383406162574, 0.42028220364705954, 1.0444420947072588 ], "yaxis": "y" } ], "layout": { "legend": { "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "x" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "y" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import numpy as np\n", "import pandas as pd\n", "\n", "np.random.seed(1)\n", "df = pd.DataFrame(np.random.randn(100, 2), columns=[\"x\", \"y\"])\n", "px.scatter(\n", " df,\n", " x=\"x\",\n", " y=\"y\",\n", " error_x=np.random.rand(100) * 0.1, # X値のエラー値\n", " error_y=np.random.rand(100) * 0.1, # Y値のエラー値\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.7 箱ひげ図(box 関数)" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "alignmentgroup": "True", "hovertemplate": "time=%{x}
total_bill=%{y}", "legendgroup": "", "marker": { "color": "#636efa" }, "name": "", "notched": false, "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "box", "x": [ "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner" ], "x0": " ", "xaxis": "x", "y": [ 16.99, 10.34, 21.01, 23.68, 24.59, 25.29, 8.77, 26.88, 15.04, 14.78, 10.27, 35.26, 15.42, 18.43, 14.83, 21.58, 10.33, 16.29, 16.97, 20.65, 17.92, 20.29, 15.77, 39.42, 19.82, 17.81, 13.37, 12.69, 21.7, 19.65, 9.55, 18.35, 15.06, 20.69, 17.78, 24.06, 16.31, 16.93, 18.69, 31.27, 16.04, 17.46, 13.94, 9.68, 30.4, 18.29, 22.23, 32.4, 28.55, 18.04, 12.54, 10.29, 34.81, 9.94, 25.56, 19.49, 38.01, 26.41, 11.24, 48.27, 20.29, 13.81, 11.02, 18.29, 17.59, 20.08, 16.45, 3.07, 20.23, 15.01, 12.02, 17.07, 26.86, 25.28, 14.73, 10.51, 17.92, 27.2, 22.76, 17.29, 19.44, 16.66, 10.07, 32.68, 15.98, 34.83, 13.03, 18.28, 24.71, 21.16, 28.97, 22.49, 5.75, 16.32, 22.75, 40.17, 27.28, 12.03, 21.01, 12.46, 11.35, 15.38, 44.3, 22.42, 20.92, 15.36, 20.49, 25.21, 18.24, 14.31, 14, 7.25, 38.07, 23.95, 25.71, 17.31, 29.93, 10.65, 12.43, 24.08, 11.69, 13.42, 14.26, 15.95, 12.48, 29.8, 8.52, 14.52, 11.38, 22.82, 19.08, 20.27, 11.17, 12.26, 18.26, 8.51, 10.33, 14.15, 16, 13.16, 17.47, 34.3, 41.19, 27.05, 16.43, 8.35, 18.64, 11.87, 9.78, 7.51, 14.07, 13.13, 17.26, 24.55, 19.77, 29.85, 48.17, 25, 13.39, 16.49, 21.5, 12.66, 16.21, 13.81, 17.51, 24.52, 20.76, 31.71, 10.59, 10.63, 50.81, 15.81, 7.25, 31.85, 16.82, 32.9, 17.89, 14.48, 9.6, 34.63, 34.65, 23.33, 45.35, 23.17, 40.55, 20.69, 20.9, 30.46, 18.15, 23.1, 15.69, 19.81, 28.44, 15.48, 16.58, 7.56, 10.34, 43.11, 13, 13.51, 18.71, 12.74, 13, 16.4, 20.53, 16.47, 26.59, 38.73, 24.27, 12.76, 30.06, 25.89, 48.33, 13.27, 28.17, 12.9, 28.15, 11.59, 7.74, 30.14, 12.16, 13.42, 8.58, 15.98, 13.42, 16.27, 10.09, 20.45, 13.28, 22.12, 24.01, 15.69, 11.61, 10.77, 15.53, 10.07, 12.6, 32.83, 35.83, 29.03, 27.18, 22.67, 17.82, 18.78 ], "y0": " ", "yaxis": "y" } ], "layout": { "boxmode": "group", "legend": { "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "time" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "total_bill" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.box(tips, x=\"time\", y=\"total_bill\").show()" ] }, { "cell_type": "code", "execution_count": 12, "metadata": { "code_folding": [] }, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "alignmentgroup": "True", "boxpoints": "all", "customdata": [ [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Fri" ], [ "Fri" ], [ "Fri" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Thur" ], [ "Sat" ], [ "Fri" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Thur" ] ], "hovertemplate": "smoker=No
time=%{x}
total_bill=%{y}
day=%{customdata[0]}", "legendgroup": "No", "marker": { "color": "#636efa" }, "name": "No", "notched": true, "offsetgroup": "No", "orientation": "v", "showlegend": true, "type": "box", "x": [ "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Dinner", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner" ], "x0": " ", "xaxis": "x", "y": [ 16.99, 10.34, 21.01, 23.68, 24.59, 25.29, 8.77, 26.88, 15.04, 14.78, 10.27, 35.26, 15.42, 18.43, 14.83, 21.58, 10.33, 16.29, 16.97, 20.65, 17.92, 20.29, 15.77, 39.42, 19.82, 17.81, 13.37, 12.69, 21.7, 19.65, 9.55, 18.35, 15.06, 20.69, 17.78, 24.06, 16.31, 16.93, 18.69, 31.27, 16.04, 17.46, 13.94, 9.68, 30.4, 18.29, 22.23, 32.4, 28.55, 18.04, 12.54, 10.29, 34.81, 9.94, 25.56, 19.49, 26.41, 48.27, 17.59, 20.08, 16.45, 20.23, 12.02, 17.07, 14.73, 10.51, 27.2, 22.76, 17.29, 16.66, 10.07, 15.98, 34.83, 13.03, 18.28, 24.71, 21.16, 22.49, 22.75, 12.46, 20.92, 18.24, 14, 7.25, 38.07, 23.95, 25.71, 17.31, 29.93, 10.65, 12.43, 24.08, 11.69, 13.42, 14.26, 15.95, 12.48, 29.8, 8.52, 14.52, 11.38, 22.82, 19.08, 20.27, 11.17, 12.26, 18.26, 8.51, 10.33, 14.15, 13.16, 17.47, 34.3, 41.19, 27.05, 16.43, 8.35, 18.64, 11.87, 9.78, 7.51, 14.07, 13.13, 17.26, 24.55, 19.77, 29.85, 48.17, 25, 13.39, 16.49, 21.5, 12.66, 16.21, 13.81, 24.52, 20.76, 31.71, 20.69, 7.56, 48.33, 15.98, 20.45, 13.28, 11.61, 10.77, 10.07, 35.83, 29.03, 17.82, 18.78 ], "y0": " ", "yaxis": "y" }, { "alignmentgroup": "True", "boxpoints": "all", "customdata": [ [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Thur" ], [ "Thur" ], [ "Fri" ], [ "Fri" ], [ "Fri" ], [ "Fri" ], [ "Fri" ], [ "Fri" ], [ "Fri" ], [ "Fri" ], [ "Fri" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Thur" ], [ "Sun" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Sun" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Thur" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Fri" ], [ "Fri" ], [ "Fri" ], [ "Fri" ], [ "Fri" ], [ "Fri" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ], [ "Sat" ] ], "hovertemplate": "smoker=Yes
time=%{x}
total_bill=%{y}
day=%{customdata[0]}", "legendgroup": "Yes", "marker": { "color": "#EF553B" }, "name": "Yes", "notched": true, "offsetgroup": "Yes", "orientation": "v", "showlegend": true, "type": "box", "x": [ "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner" ], "x0": " ", "xaxis": "x", "y": [ 38.01, 11.24, 20.29, 13.81, 11.02, 18.29, 3.07, 15.01, 26.86, 25.28, 17.92, 19.44, 32.68, 28.97, 5.75, 16.32, 40.17, 27.28, 12.03, 21.01, 11.35, 15.38, 44.3, 22.42, 15.36, 20.49, 25.21, 14.31, 16, 17.51, 10.59, 10.63, 50.81, 15.81, 7.25, 31.85, 16.82, 32.9, 17.89, 14.48, 9.6, 34.63, 34.65, 23.33, 45.35, 23.17, 40.55, 20.9, 30.46, 18.15, 23.1, 15.69, 19.81, 28.44, 15.48, 16.58, 10.34, 43.11, 13, 13.51, 18.71, 12.74, 13, 16.4, 20.53, 16.47, 26.59, 38.73, 24.27, 12.76, 30.06, 25.89, 13.27, 28.17, 12.9, 28.15, 11.59, 7.74, 30.14, 12.16, 13.42, 8.58, 13.42, 16.27, 10.09, 22.12, 24.01, 15.69, 15.53, 12.6, 32.83, 27.18, 22.67 ], "y0": " ", "yaxis": "y" } ], "layout": { "boxmode": "group", "legend": { "title": { "text": "smoker" }, "tracegroupgap": 0 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "title": { "text": "Box plot of total bill" }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "time" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "total_bill" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.box(\n", " tips,\n", " x=\"time\",\n", " y=\"total_bill\",\n", " color=\"smoker\", # smoker列で色分け\n", " notched=True, # ❶ ノッチを入れる\n", " points=\"all\", # ❷ すべての要素を点で描画\n", " title=\"Box plot of total bill\",\n", " hover_data=[\"day\"], # ❸ ホバーツールにday列の値を表示\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.8 バイオリン図(violin 関数)" ] }, { "cell_type": "code", "execution_count": 13, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "alignmentgroup": "True", "box": { "visible": true }, "customdata": [ [ 16.99, 1.01, "Female", "No", "Sun", "Dinner", 2 ], [ 24.59, 3.61, "Female", "No", "Sun", "Dinner", 4 ], [ 35.26, 5, "Female", "No", "Sun", "Dinner", 4 ], [ 14.83, 3.02, "Female", "No", "Sun", "Dinner", 2 ], [ 10.33, 1.67, "Female", "No", "Sun", "Dinner", 3 ], [ 16.97, 3.5, "Female", "No", "Sun", "Dinner", 3 ], [ 20.29, 2.75, "Female", "No", "Sat", "Dinner", 2 ], [ 15.77, 2.23, "Female", "No", "Sat", "Dinner", 2 ], [ 19.65, 3, "Female", "No", "Sat", "Dinner", 2 ], [ 15.06, 3, "Female", "No", "Sat", "Dinner", 2 ], [ 20.69, 2.45, "Female", "No", "Sat", "Dinner", 4 ], [ 16.93, 3.07, "Female", "No", "Sat", "Dinner", 3 ], [ 10.29, 2.6, "Female", "No", "Sun", "Dinner", 2 ], [ 34.81, 5.2, "Female", "No", "Sun", "Dinner", 4 ], [ 26.41, 1.5, "Female", "No", "Sat", "Dinner", 2 ], [ 16.45, 2.47, "Female", "No", "Sat", "Dinner", 2 ], [ 3.07, 1, "Female", "Yes", "Sat", "Dinner", 1 ], [ 17.07, 3, "Female", "No", "Sat", "Dinner", 3 ], [ 26.86, 3.14, "Female", "Yes", "Sat", "Dinner", 2 ], [ 25.28, 5, "Female", "Yes", "Sat", "Dinner", 2 ], [ 14.73, 2.2, "Female", "No", "Sat", "Dinner", 2 ], [ 10.07, 1.83, "Female", "No", "Thur", "Lunch", 1 ], [ 34.83, 5.17, "Female", "No", "Thur", "Lunch", 4 ], [ 5.75, 1, "Female", "Yes", "Fri", "Dinner", 2 ], [ 16.32, 4.3, "Female", "Yes", "Fri", "Dinner", 2 ], [ 22.75, 3.25, "Female", "No", "Fri", "Dinner", 2 ], [ 11.35, 2.5, "Female", "Yes", "Fri", "Dinner", 2 ], [ 15.38, 3, "Female", "Yes", "Fri", "Dinner", 2 ], [ 44.3, 2.5, "Female", "Yes", "Sat", "Dinner", 3 ], [ 22.42, 3.48, "Female", "Yes", "Sat", "Dinner", 2 ], [ 20.92, 4.08, "Female", "No", "Sat", "Dinner", 2 ], [ 14.31, 4, "Female", "Yes", "Sat", "Dinner", 2 ], [ 7.25, 1, "Female", "No", "Sat", "Dinner", 1 ], [ 25.71, 4, "Female", "No", "Sun", "Dinner", 3 ], [ 17.31, 3.5, "Female", "No", "Sun", "Dinner", 2 ], [ 10.65, 1.5, "Female", "No", "Thur", "Lunch", 2 ], [ 12.43, 1.8, "Female", "No", "Thur", "Lunch", 2 ], [ 24.08, 2.92, "Female", "No", "Thur", "Lunch", 4 ], [ 13.42, 1.68, "Female", "No", "Thur", "Lunch", 2 ], [ 12.48, 2.52, "Female", "No", "Thur", "Lunch", 2 ], [ 29.8, 4.2, "Female", "No", "Thur", "Lunch", 6 ], [ 14.52, 2, "Female", "No", "Thur", "Lunch", 2 ], [ 11.38, 2, "Female", "No", "Thur", "Lunch", 2 ], [ 20.27, 2.83, "Female", "No", "Thur", "Lunch", 2 ], [ 11.17, 1.5, "Female", "No", "Thur", "Lunch", 2 ], [ 12.26, 2, "Female", "No", "Thur", "Lunch", 2 ], [ 18.26, 3.25, "Female", "No", "Thur", "Lunch", 2 ], [ 8.51, 1.25, "Female", "No", "Thur", "Lunch", 2 ], [ 10.33, 2, "Female", "No", "Thur", "Lunch", 2 ], [ 14.15, 2, "Female", "No", "Thur", "Lunch", 2 ], [ 13.16, 2.75, "Female", "No", "Thur", "Lunch", 2 ], [ 17.47, 3.5, "Female", "No", "Thur", "Lunch", 2 ], [ 27.05, 5, "Female", "No", "Thur", "Lunch", 6 ], [ 16.43, 2.3, "Female", "No", "Thur", "Lunch", 2 ], [ 8.35, 1.5, "Female", "No", "Thur", "Lunch", 2 ], [ 18.64, 1.36, "Female", "No", "Thur", "Lunch", 3 ], [ 11.87, 1.63, "Female", "No", "Thur", "Lunch", 2 ], [ 29.85, 5.14, "Female", "No", "Sun", "Dinner", 5 ], [ 25, 3.75, "Female", "No", "Sun", "Dinner", 4 ], [ 13.39, 2.61, "Female", "No", "Sun", "Dinner", 2 ], [ 16.21, 2, "Female", "No", "Sun", "Dinner", 3 ], [ 17.51, 3, "Female", "Yes", "Sun", "Dinner", 2 ], [ 10.59, 1.61, "Female", "Yes", "Sat", "Dinner", 2 ], [ 10.63, 2, "Female", "Yes", "Sat", "Dinner", 2 ], [ 9.6, 4, "Female", "Yes", "Sun", "Dinner", 2 ], [ 20.9, 3.5, "Female", "Yes", "Sun", "Dinner", 3 ], [ 18.15, 3.5, "Female", "Yes", "Sun", "Dinner", 3 ], [ 19.81, 4.19, "Female", "Yes", "Thur", "Lunch", 2 ], [ 43.11, 5, "Female", "Yes", "Thur", "Lunch", 4 ], [ 13, 2, "Female", "Yes", "Thur", "Lunch", 2 ], [ 12.74, 2.01, "Female", "Yes", "Thur", "Lunch", 2 ], [ 13, 2, "Female", "Yes", "Thur", "Lunch", 2 ], [ 16.4, 2.5, "Female", "Yes", "Thur", "Lunch", 2 ], [ 16.47, 3.23, "Female", "Yes", "Thur", "Lunch", 3 ], [ 12.76, 2.23, "Female", "Yes", "Sat", "Dinner", 2 ], [ 13.27, 2.5, "Female", "Yes", "Sat", "Dinner", 2 ], [ 28.17, 6.5, "Female", "Yes", "Sat", "Dinner", 3 ], [ 12.9, 1.1, "Female", "Yes", "Sat", "Dinner", 2 ], [ 30.14, 3.09, "Female", "Yes", "Sat", "Dinner", 4 ], [ 13.42, 3.48, "Female", "Yes", "Fri", "Lunch", 2 ], [ 15.98, 3, "Female", "No", "Fri", "Lunch", 3 ], [ 16.27, 2.5, "Female", "Yes", "Fri", "Lunch", 2 ], [ 10.09, 2, "Female", "Yes", "Fri", "Lunch", 2 ], [ 22.12, 2.88, "Female", "Yes", "Sat", "Dinner", 2 ], [ 35.83, 4.67, "Female", "No", "Sat", "Dinner", 3 ], [ 27.18, 2, "Female", "Yes", "Sat", "Dinner", 2 ], [ 18.78, 3, "Female", "No", "Thur", "Dinner", 2 ] ], "hovertemplate": "sex=%{customdata[2]}
smoker=%{customdata[3]}
tip=%{customdata[1]}
total_bill=%{customdata[0]}
day=%{customdata[4]}
time=%{customdata[5]}
size=%{customdata[6]}", "legendgroup": "Female", "marker": { "color": "#636efa" }, "name": "Female", "offsetgroup": "Female", "orientation": "v", "points": "all", "scalegroup": "True", "showlegend": true, "type": "violin", "x": [ "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "Yes", "No", "Yes", "Yes", "No", "No", "No", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "No", "Yes", "No" ], "x0": " ", "xaxis": "x", "y": [ 1.01, 3.61, 5, 3.02, 1.67, 3.5, 2.75, 2.23, 3, 3, 2.45, 3.07, 2.6, 5.2, 1.5, 2.47, 1, 3, 3.14, 5, 2.2, 1.83, 5.17, 1, 4.3, 3.25, 2.5, 3, 2.5, 3.48, 4.08, 4, 1, 4, 3.5, 1.5, 1.8, 2.92, 1.68, 2.52, 4.2, 2, 2, 2.83, 1.5, 2, 3.25, 1.25, 2, 2, 2.75, 3.5, 5, 2.3, 1.5, 1.36, 1.63, 5.14, 3.75, 2.61, 2, 3, 1.61, 2, 4, 3.5, 3.5, 4.19, 5, 2, 2.01, 2, 2.5, 3.23, 2.23, 2.5, 6.5, 1.1, 3.09, 3.48, 3, 2.5, 2, 2.88, 4.67, 2, 3 ], "y0": " ", "yaxis": "y" }, { "alignmentgroup": "True", "box": { "visible": true }, "customdata": [ [ 10.34, 1.66, "Male", "No", "Sun", "Dinner", 3 ], [ 21.01, 3.5, "Male", "No", "Sun", "Dinner", 3 ], [ 23.68, 3.31, "Male", "No", "Sun", "Dinner", 2 ], [ 25.29, 4.71, "Male", "No", "Sun", "Dinner", 4 ], [ 8.77, 2, "Male", "No", "Sun", "Dinner", 2 ], [ 26.88, 3.12, "Male", "No", "Sun", "Dinner", 4 ], [ 15.04, 1.96, "Male", "No", "Sun", "Dinner", 2 ], [ 14.78, 3.23, "Male", "No", "Sun", "Dinner", 2 ], [ 10.27, 1.71, "Male", "No", "Sun", "Dinner", 2 ], [ 15.42, 1.57, "Male", "No", "Sun", "Dinner", 2 ], [ 18.43, 3, "Male", "No", "Sun", "Dinner", 4 ], [ 21.58, 3.92, "Male", "No", "Sun", "Dinner", 2 ], [ 16.29, 3.71, "Male", "No", "Sun", "Dinner", 3 ], [ 20.65, 3.35, "Male", "No", "Sat", "Dinner", 3 ], [ 17.92, 4.08, "Male", "No", "Sat", "Dinner", 2 ], [ 39.42, 7.58, "Male", "No", "Sat", "Dinner", 4 ], [ 19.82, 3.18, "Male", "No", "Sat", "Dinner", 2 ], [ 17.81, 2.34, "Male", "No", "Sat", "Dinner", 4 ], [ 13.37, 2, "Male", "No", "Sat", "Dinner", 2 ], [ 12.69, 2, "Male", "No", "Sat", "Dinner", 2 ], [ 21.7, 4.3, "Male", "No", "Sat", "Dinner", 2 ], [ 9.55, 1.45, "Male", "No", "Sat", "Dinner", 2 ], [ 18.35, 2.5, "Male", "No", "Sat", "Dinner", 4 ], [ 17.78, 3.27, "Male", "No", "Sat", "Dinner", 2 ], [ 24.06, 3.6, "Male", "No", "Sat", "Dinner", 3 ], [ 16.31, 2, "Male", "No", "Sat", "Dinner", 3 ], [ 18.69, 2.31, "Male", "No", "Sat", "Dinner", 3 ], [ 31.27, 5, "Male", "No", "Sat", "Dinner", 3 ], [ 16.04, 2.24, "Male", "No", "Sat", "Dinner", 3 ], [ 17.46, 2.54, "Male", "No", "Sun", "Dinner", 2 ], [ 13.94, 3.06, "Male", "No", "Sun", "Dinner", 2 ], [ 9.68, 1.32, "Male", "No", "Sun", "Dinner", 2 ], [ 30.4, 5.6, "Male", "No", "Sun", "Dinner", 4 ], [ 18.29, 3, "Male", "No", "Sun", "Dinner", 2 ], [ 22.23, 5, "Male", "No", "Sun", "Dinner", 2 ], [ 32.4, 6, "Male", "No", "Sun", "Dinner", 4 ], [ 28.55, 2.05, "Male", "No", "Sun", "Dinner", 3 ], [ 18.04, 3, "Male", "No", "Sun", "Dinner", 2 ], [ 12.54, 2.5, "Male", "No", "Sun", "Dinner", 2 ], [ 9.94, 1.56, "Male", "No", "Sun", "Dinner", 2 ], [ 25.56, 4.34, "Male", "No", "Sun", "Dinner", 4 ], [ 19.49, 3.51, "Male", "No", "Sun", "Dinner", 2 ], [ 38.01, 3, "Male", "Yes", "Sat", "Dinner", 4 ], [ 11.24, 1.76, "Male", "Yes", "Sat", "Dinner", 2 ], [ 48.27, 6.73, "Male", "No", "Sat", "Dinner", 4 ], [ 20.29, 3.21, "Male", "Yes", "Sat", "Dinner", 2 ], [ 13.81, 2, "Male", "Yes", "Sat", "Dinner", 2 ], [ 11.02, 1.98, "Male", "Yes", "Sat", "Dinner", 2 ], [ 18.29, 3.76, "Male", "Yes", "Sat", "Dinner", 4 ], [ 17.59, 2.64, "Male", "No", "Sat", "Dinner", 3 ], [ 20.08, 3.15, "Male", "No", "Sat", "Dinner", 3 ], [ 20.23, 2.01, "Male", "No", "Sat", "Dinner", 2 ], [ 15.01, 2.09, "Male", "Yes", "Sat", "Dinner", 2 ], [ 12.02, 1.97, "Male", "No", "Sat", "Dinner", 2 ], [ 10.51, 1.25, "Male", "No", "Sat", "Dinner", 2 ], [ 17.92, 3.08, "Male", "Yes", "Sat", "Dinner", 2 ], [ 27.2, 4, "Male", "No", "Thur", "Lunch", 4 ], [ 22.76, 3, "Male", "No", "Thur", "Lunch", 2 ], [ 17.29, 2.71, "Male", "No", "Thur", "Lunch", 2 ], [ 19.44, 3, "Male", "Yes", "Thur", "Lunch", 2 ], [ 16.66, 3.4, "Male", "No", "Thur", "Lunch", 2 ], [ 32.68, 5, "Male", "Yes", "Thur", "Lunch", 2 ], [ 15.98, 2.03, "Male", "No", "Thur", "Lunch", 2 ], [ 13.03, 2, "Male", "No", "Thur", "Lunch", 2 ], [ 18.28, 4, "Male", "No", "Thur", "Lunch", 2 ], [ 24.71, 5.85, "Male", "No", "Thur", "Lunch", 2 ], [ 21.16, 3, "Male", "No", "Thur", "Lunch", 2 ], [ 28.97, 3, "Male", "Yes", "Fri", "Dinner", 2 ], [ 22.49, 3.5, "Male", "No", "Fri", "Dinner", 2 ], [ 40.17, 4.73, "Male", "Yes", "Fri", "Dinner", 4 ], [ 27.28, 4, "Male", "Yes", "Fri", "Dinner", 2 ], [ 12.03, 1.5, "Male", "Yes", "Fri", "Dinner", 2 ], [ 21.01, 3, "Male", "Yes", "Fri", "Dinner", 2 ], [ 12.46, 1.5, "Male", "No", "Fri", "Dinner", 2 ], [ 15.36, 1.64, "Male", "Yes", "Sat", "Dinner", 2 ], [ 20.49, 4.06, "Male", "Yes", "Sat", "Dinner", 2 ], [ 25.21, 4.29, "Male", "Yes", "Sat", "Dinner", 2 ], [ 18.24, 3.76, "Male", "No", "Sat", "Dinner", 2 ], [ 14, 3, "Male", "No", "Sat", "Dinner", 2 ], [ 38.07, 4, "Male", "No", "Sun", "Dinner", 3 ], [ 23.95, 2.55, "Male", "No", "Sun", "Dinner", 2 ], [ 29.93, 5.07, "Male", "No", "Sun", "Dinner", 4 ], [ 11.69, 2.31, "Male", "No", "Thur", "Lunch", 2 ], [ 14.26, 2.5, "Male", "No", "Thur", "Lunch", 2 ], [ 15.95, 2, "Male", "No", "Thur", "Lunch", 2 ], [ 8.52, 1.48, "Male", "No", "Thur", "Lunch", 2 ], [ 22.82, 2.18, "Male", "No", "Thur", "Lunch", 3 ], [ 19.08, 1.5, "Male", "No", "Thur", "Lunch", 2 ], [ 16, 2, "Male", "Yes", "Thur", "Lunch", 2 ], [ 34.3, 6.7, "Male", "No", "Thur", "Lunch", 6 ], [ 41.19, 5, "Male", "No", "Thur", "Lunch", 5 ], [ 9.78, 1.73, "Male", "No", "Thur", "Lunch", 2 ], [ 7.51, 2, "Male", "No", "Thur", "Lunch", 2 ], [ 14.07, 2.5, "Male", "No", "Sun", "Dinner", 2 ], [ 13.13, 2, "Male", "No", "Sun", "Dinner", 2 ], [ 17.26, 2.74, "Male", "No", "Sun", "Dinner", 3 ], [ 24.55, 2, "Male", "No", "Sun", "Dinner", 4 ], [ 19.77, 2, "Male", "No", "Sun", "Dinner", 4 ], [ 48.17, 5, "Male", "No", "Sun", "Dinner", 6 ], [ 16.49, 2, "Male", "No", "Sun", "Dinner", 4 ], [ 21.5, 3.5, "Male", "No", "Sun", "Dinner", 4 ], [ 12.66, 2.5, "Male", "No", "Sun", "Dinner", 2 ], [ 13.81, 2, "Male", "No", "Sun", "Dinner", 2 ], [ 24.52, 3.48, "Male", "No", "Sun", "Dinner", 3 ], [ 20.76, 2.24, "Male", "No", "Sun", "Dinner", 2 ], [ 31.71, 4.5, "Male", "No", "Sun", "Dinner", 4 ], [ 50.81, 10, "Male", "Yes", "Sat", "Dinner", 3 ], [ 15.81, 3.16, "Male", "Yes", "Sat", "Dinner", 2 ], [ 7.25, 5.15, "Male", "Yes", "Sun", "Dinner", 2 ], [ 31.85, 3.18, "Male", "Yes", "Sun", "Dinner", 2 ], [ 16.82, 4, "Male", "Yes", "Sun", "Dinner", 2 ], [ 32.9, 3.11, "Male", "Yes", "Sun", "Dinner", 2 ], [ 17.89, 2, "Male", "Yes", "Sun", "Dinner", 2 ], [ 14.48, 2, "Male", "Yes", "Sun", "Dinner", 2 ], [ 34.63, 3.55, "Male", "Yes", "Sun", "Dinner", 2 ], [ 34.65, 3.68, "Male", "Yes", "Sun", "Dinner", 4 ], [ 23.33, 5.65, "Male", "Yes", "Sun", "Dinner", 2 ], [ 45.35, 3.5, "Male", "Yes", "Sun", "Dinner", 3 ], [ 23.17, 6.5, "Male", "Yes", "Sun", "Dinner", 4 ], [ 40.55, 3, "Male", "Yes", "Sun", "Dinner", 2 ], [ 20.69, 5, "Male", "No", "Sun", "Dinner", 5 ], [ 30.46, 2, "Male", "Yes", "Sun", "Dinner", 5 ], [ 23.1, 4, "Male", "Yes", "Sun", "Dinner", 3 ], [ 15.69, 1.5, "Male", "Yes", "Sun", "Dinner", 2 ], [ 28.44, 2.56, "Male", "Yes", "Thur", "Lunch", 2 ], [ 15.48, 2.02, "Male", "Yes", "Thur", "Lunch", 2 ], [ 16.58, 4, "Male", "Yes", "Thur", "Lunch", 2 ], [ 7.56, 1.44, "Male", "No", "Thur", "Lunch", 2 ], [ 10.34, 2, "Male", "Yes", "Thur", "Lunch", 2 ], [ 13.51, 2, "Male", "Yes", "Thur", "Lunch", 2 ], [ 18.71, 4, "Male", "Yes", "Thur", "Lunch", 3 ], [ 20.53, 4, "Male", "Yes", "Thur", "Lunch", 4 ], [ 26.59, 3.41, "Male", "Yes", "Sat", "Dinner", 3 ], [ 38.73, 3, "Male", "Yes", "Sat", "Dinner", 4 ], [ 24.27, 2.03, "Male", "Yes", "Sat", "Dinner", 2 ], [ 30.06, 2, "Male", "Yes", "Sat", "Dinner", 3 ], [ 25.89, 5.16, "Male", "Yes", "Sat", "Dinner", 4 ], [ 48.33, 9, "Male", "No", "Sat", "Dinner", 4 ], [ 28.15, 3, "Male", "Yes", "Sat", "Dinner", 5 ], [ 11.59, 1.5, "Male", "Yes", "Sat", "Dinner", 2 ], [ 7.74, 1.44, "Male", "Yes", "Sat", "Dinner", 2 ], [ 12.16, 2.2, "Male", "Yes", "Fri", "Lunch", 2 ], [ 8.58, 1.92, "Male", "Yes", "Fri", "Lunch", 1 ], [ 13.42, 1.58, "Male", "Yes", "Fri", "Lunch", 2 ], [ 20.45, 3, "Male", "No", "Sat", "Dinner", 4 ], [ 13.28, 2.72, "Male", "No", "Sat", "Dinner", 2 ], [ 24.01, 2, "Male", "Yes", "Sat", "Dinner", 4 ], [ 15.69, 3, "Male", "Yes", "Sat", "Dinner", 3 ], [ 11.61, 3.39, "Male", "No", "Sat", "Dinner", 2 ], [ 10.77, 1.47, "Male", "No", "Sat", "Dinner", 2 ], [ 15.53, 3, "Male", "Yes", "Sat", "Dinner", 2 ], [ 10.07, 1.25, "Male", "No", "Sat", "Dinner", 2 ], [ 12.6, 1, "Male", "Yes", "Sat", "Dinner", 2 ], [ 32.83, 1.17, "Male", "Yes", "Sat", "Dinner", 2 ], [ 29.03, 5.92, "Male", "No", "Sat", "Dinner", 3 ], [ 22.67, 2, "Male", "Yes", "Sat", "Dinner", 2 ], [ 17.82, 1.75, "Male", "No", "Sat", "Dinner", 2 ] ], "hovertemplate": "sex=%{customdata[2]}
smoker=%{customdata[3]}
tip=%{customdata[1]}
total_bill=%{customdata[0]}
day=%{customdata[4]}
time=%{customdata[5]}
size=%{customdata[6]}", "legendgroup": "Male", "marker": { "color": "#EF553B" }, "name": "Male", "offsetgroup": "Male", "orientation": "v", "points": "all", "scalegroup": "True", "showlegend": true, "type": "violin", "x": [ "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "No", "No", "No", "Yes", "No", "No", "Yes", "No", "No", "No", "Yes", "No", "Yes", "No", "No", "No", "No", "No", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "Yes", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "No", "Yes", "Yes", "No", "No", "Yes", "No", "Yes", "Yes", "No", "Yes", "No" ], "x0": " ", "xaxis": "x", "y": [ 1.66, 3.5, 3.31, 4.71, 2, 3.12, 1.96, 3.23, 1.71, 1.57, 3, 3.92, 3.71, 3.35, 4.08, 7.58, 3.18, 2.34, 2, 2, 4.3, 1.45, 2.5, 3.27, 3.6, 2, 2.31, 5, 2.24, 2.54, 3.06, 1.32, 5.6, 3, 5, 6, 2.05, 3, 2.5, 1.56, 4.34, 3.51, 3, 1.76, 6.73, 3.21, 2, 1.98, 3.76, 2.64, 3.15, 2.01, 2.09, 1.97, 1.25, 3.08, 4, 3, 2.71, 3, 3.4, 5, 2.03, 2, 4, 5.85, 3, 3, 3.5, 4.73, 4, 1.5, 3, 1.5, 1.64, 4.06, 4.29, 3.76, 3, 4, 2.55, 5.07, 2.31, 2.5, 2, 1.48, 2.18, 1.5, 2, 6.7, 5, 1.73, 2, 2.5, 2, 2.74, 2, 2, 5, 2, 3.5, 2.5, 2, 3.48, 2.24, 4.5, 10, 3.16, 5.15, 3.18, 4, 3.11, 2, 2, 3.55, 3.68, 5.65, 3.5, 6.5, 3, 5, 2, 4, 1.5, 2.56, 2.02, 4, 1.44, 2, 2, 4, 4, 3.41, 3, 2.03, 2, 5.16, 9, 3, 1.5, 1.44, 2.2, 1.92, 1.58, 3, 2.72, 2, 3, 3.39, 1.47, 3, 1.25, 1, 1.17, 5.92, 2, 1.75 ], "y0": " ", "yaxis": "y" } ], "layout": { "legend": { "title": { "text": "sex" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "violinmode": "group", "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "smoker" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "tip" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.violin(\n", " tips,\n", " y=\"tip\",\n", " x=\"smoker\",\n", " color=\"sex\", # ❶ sex列で色分け\n", " box=True, # ❷ 箱ひげ図を重ねて描画\n", " points=\"all\", # ❸ すべての要素を点で描画\n", " hover_data=tips.columns, # ホバーツールにすべて列の値を表示\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.9 ヒストグラム(histogram 関数)" ] }, { "cell_type": "code", "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "alignmentgroup": "True", "bingroup": "x", "hovertemplate": "total_bill=%{x}
count=%{y}", "legendgroup": "", "marker": { "color": "#636efa" }, "name": "", "offsetgroup": "", "orientation": "v", "showlegend": false, "type": "histogram", "x": [ 16.99, 10.34, 21.01, 23.68, 24.59, 25.29, 8.77, 26.88, 15.04, 14.78, 10.27, 35.26, 15.42, 18.43, 14.83, 21.58, 10.33, 16.29, 16.97, 20.65, 17.92, 20.29, 15.77, 39.42, 19.82, 17.81, 13.37, 12.69, 21.7, 19.65, 9.55, 18.35, 15.06, 20.69, 17.78, 24.06, 16.31, 16.93, 18.69, 31.27, 16.04, 17.46, 13.94, 9.68, 30.4, 18.29, 22.23, 32.4, 28.55, 18.04, 12.54, 10.29, 34.81, 9.94, 25.56, 19.49, 38.01, 26.41, 11.24, 48.27, 20.29, 13.81, 11.02, 18.29, 17.59, 20.08, 16.45, 3.07, 20.23, 15.01, 12.02, 17.07, 26.86, 25.28, 14.73, 10.51, 17.92, 27.2, 22.76, 17.29, 19.44, 16.66, 10.07, 32.68, 15.98, 34.83, 13.03, 18.28, 24.71, 21.16, 28.97, 22.49, 5.75, 16.32, 22.75, 40.17, 27.28, 12.03, 21.01, 12.46, 11.35, 15.38, 44.3, 22.42, 20.92, 15.36, 20.49, 25.21, 18.24, 14.31, 14, 7.25, 38.07, 23.95, 25.71, 17.31, 29.93, 10.65, 12.43, 24.08, 11.69, 13.42, 14.26, 15.95, 12.48, 29.8, 8.52, 14.52, 11.38, 22.82, 19.08, 20.27, 11.17, 12.26, 18.26, 8.51, 10.33, 14.15, 16, 13.16, 17.47, 34.3, 41.19, 27.05, 16.43, 8.35, 18.64, 11.87, 9.78, 7.51, 14.07, 13.13, 17.26, 24.55, 19.77, 29.85, 48.17, 25, 13.39, 16.49, 21.5, 12.66, 16.21, 13.81, 17.51, 24.52, 20.76, 31.71, 10.59, 10.63, 50.81, 15.81, 7.25, 31.85, 16.82, 32.9, 17.89, 14.48, 9.6, 34.63, 34.65, 23.33, 45.35, 23.17, 40.55, 20.69, 20.9, 30.46, 18.15, 23.1, 15.69, 19.81, 28.44, 15.48, 16.58, 7.56, 10.34, 43.11, 13, 13.51, 18.71, 12.74, 13, 16.4, 20.53, 16.47, 26.59, 38.73, 24.27, 12.76, 30.06, 25.89, 48.33, 13.27, 28.17, 12.9, 28.15, 11.59, 7.74, 30.14, 12.16, 13.42, 8.58, 15.98, 13.42, 16.27, 10.09, 20.45, 13.28, 22.12, 24.01, 15.69, 11.61, 10.77, 15.53, 10.07, 12.6, 32.83, 35.83, 29.03, 27.18, 22.67, 17.82, 18.78 ], "xaxis": "x", "yaxis": "y" } ], "layout": { "barmode": "relative", "legend": { "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "total_bill" } }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ], "title": { "text": "count" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.histogram(tips, x=\"total_bill\").show()" ] }, { "cell_type": "code", "execution_count": 15, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "alignmentgroup": "True", "bingroup": "x", "hovertemplate": "sex=Female
total_bill=%{x}
count=%{y}", "legendgroup": "Female", "marker": { "color": "#636efa" }, "name": "Female", "offsetgroup": "Female", "orientation": "v", "showlegend": true, "type": "histogram", "x": [ 16.99, 24.59, 35.26, 14.83, 10.33, 16.97, 20.29, 15.77, 19.65, 15.06, 20.69, 16.93, 10.29, 34.81, 26.41, 16.45, 3.07, 17.07, 26.86, 25.28, 14.73, 10.07, 34.83, 5.75, 16.32, 22.75, 11.35, 15.38, 44.3, 22.42, 20.92, 14.31, 7.25, 25.71, 17.31, 10.65, 12.43, 24.08, 13.42, 12.48, 29.8, 14.52, 11.38, 20.27, 11.17, 12.26, 18.26, 8.51, 10.33, 14.15, 13.16, 17.47, 27.05, 16.43, 8.35, 18.64, 11.87, 29.85, 25, 13.39, 16.21, 17.51, 10.59, 10.63, 9.6, 20.9, 18.15, 19.81, 43.11, 13, 12.74, 13, 16.4, 16.47, 12.76, 13.27, 28.17, 12.9, 30.14, 13.42, 15.98, 16.27, 10.09, 22.12, 35.83, 27.18, 18.78 ], "xaxis": "x", "yaxis": "y" }, { "alignmentgroup": "True", "boxpoints": "all", "customdata": [ [ 16.99, 1.01, "Female", "No", "Sun", "Dinner", 2 ], [ 24.59, 3.61, "Female", "No", "Sun", "Dinner", 4 ], [ 35.26, 5, "Female", "No", "Sun", "Dinner", 4 ], [ 14.83, 3.02, "Female", "No", "Sun", "Dinner", 2 ], [ 10.33, 1.67, "Female", "No", "Sun", "Dinner", 3 ], [ 16.97, 3.5, "Female", "No", "Sun", "Dinner", 3 ], [ 20.29, 2.75, "Female", "No", "Sat", "Dinner", 2 ], [ 15.77, 2.23, "Female", "No", "Sat", "Dinner", 2 ], [ 19.65, 3, "Female", "No", "Sat", "Dinner", 2 ], [ 15.06, 3, "Female", "No", "Sat", "Dinner", 2 ], [ 20.69, 2.45, "Female", "No", "Sat", "Dinner", 4 ], [ 16.93, 3.07, "Female", "No", "Sat", "Dinner", 3 ], [ 10.29, 2.6, "Female", "No", "Sun", "Dinner", 2 ], [ 34.81, 5.2, "Female", "No", "Sun", "Dinner", 4 ], [ 26.41, 1.5, "Female", "No", "Sat", "Dinner", 2 ], [ 16.45, 2.47, "Female", "No", "Sat", "Dinner", 2 ], [ 3.07, 1, "Female", "Yes", "Sat", "Dinner", 1 ], [ 17.07, 3, "Female", "No", "Sat", "Dinner", 3 ], [ 26.86, 3.14, "Female", "Yes", "Sat", "Dinner", 2 ], [ 25.28, 5, "Female", "Yes", "Sat", "Dinner", 2 ], [ 14.73, 2.2, "Female", "No", "Sat", "Dinner", 2 ], [ 10.07, 1.83, "Female", "No", "Thur", "Lunch", 1 ], [ 34.83, 5.17, "Female", "No", "Thur", "Lunch", 4 ], [ 5.75, 1, "Female", "Yes", "Fri", "Dinner", 2 ], [ 16.32, 4.3, "Female", "Yes", "Fri", "Dinner", 2 ], [ 22.75, 3.25, "Female", "No", "Fri", "Dinner", 2 ], [ 11.35, 2.5, "Female", "Yes", "Fri", "Dinner", 2 ], [ 15.38, 3, "Female", "Yes", "Fri", "Dinner", 2 ], [ 44.3, 2.5, "Female", "Yes", "Sat", "Dinner", 3 ], [ 22.42, 3.48, "Female", "Yes", "Sat", "Dinner", 2 ], [ 20.92, 4.08, "Female", "No", "Sat", "Dinner", 2 ], [ 14.31, 4, "Female", "Yes", "Sat", "Dinner", 2 ], [ 7.25, 1, "Female", "No", "Sat", "Dinner", 1 ], [ 25.71, 4, "Female", "No", "Sun", "Dinner", 3 ], [ 17.31, 3.5, "Female", "No", "Sun", "Dinner", 2 ], [ 10.65, 1.5, "Female", "No", "Thur", "Lunch", 2 ], [ 12.43, 1.8, "Female", "No", "Thur", "Lunch", 2 ], [ 24.08, 2.92, "Female", "No", "Thur", "Lunch", 4 ], [ 13.42, 1.68, "Female", "No", "Thur", "Lunch", 2 ], [ 12.48, 2.52, "Female", "No", "Thur", "Lunch", 2 ], [ 29.8, 4.2, "Female", "No", "Thur", "Lunch", 6 ], [ 14.52, 2, "Female", "No", "Thur", "Lunch", 2 ], [ 11.38, 2, "Female", "No", "Thur", "Lunch", 2 ], [ 20.27, 2.83, "Female", "No", "Thur", "Lunch", 2 ], [ 11.17, 1.5, "Female", "No", "Thur", "Lunch", 2 ], [ 12.26, 2, "Female", "No", "Thur", "Lunch", 2 ], [ 18.26, 3.25, "Female", "No", "Thur", "Lunch", 2 ], [ 8.51, 1.25, "Female", "No", "Thur", "Lunch", 2 ], [ 10.33, 2, "Female", "No", "Thur", "Lunch", 2 ], [ 14.15, 2, "Female", "No", "Thur", "Lunch", 2 ], [ 13.16, 2.75, "Female", "No", "Thur", "Lunch", 2 ], [ 17.47, 3.5, "Female", "No", "Thur", "Lunch", 2 ], [ 27.05, 5, "Female", "No", "Thur", "Lunch", 6 ], [ 16.43, 2.3, "Female", "No", "Thur", "Lunch", 2 ], [ 8.35, 1.5, "Female", "No", "Thur", "Lunch", 2 ], [ 18.64, 1.36, "Female", "No", "Thur", "Lunch", 3 ], [ 11.87, 1.63, "Female", "No", "Thur", "Lunch", 2 ], [ 29.85, 5.14, "Female", "No", "Sun", "Dinner", 5 ], [ 25, 3.75, "Female", "No", "Sun", "Dinner", 4 ], [ 13.39, 2.61, "Female", "No", "Sun", "Dinner", 2 ], [ 16.21, 2, "Female", "No", "Sun", "Dinner", 3 ], [ 17.51, 3, "Female", "Yes", "Sun", "Dinner", 2 ], [ 10.59, 1.61, "Female", "Yes", "Sat", "Dinner", 2 ], [ 10.63, 2, "Female", "Yes", "Sat", "Dinner", 2 ], [ 9.6, 4, "Female", "Yes", "Sun", "Dinner", 2 ], [ 20.9, 3.5, "Female", "Yes", "Sun", "Dinner", 3 ], [ 18.15, 3.5, "Female", "Yes", "Sun", "Dinner", 3 ], [ 19.81, 4.19, "Female", "Yes", "Thur", "Lunch", 2 ], [ 43.11, 5, "Female", "Yes", "Thur", "Lunch", 4 ], [ 13, 2, "Female", "Yes", "Thur", "Lunch", 2 ], [ 12.74, 2.01, "Female", "Yes", "Thur", "Lunch", 2 ], [ 13, 2, "Female", "Yes", "Thur", "Lunch", 2 ], [ 16.4, 2.5, "Female", "Yes", "Thur", "Lunch", 2 ], [ 16.47, 3.23, "Female", "Yes", "Thur", "Lunch", 3 ], [ 12.76, 2.23, "Female", "Yes", "Sat", "Dinner", 2 ], [ 13.27, 2.5, "Female", "Yes", "Sat", "Dinner", 2 ], [ 28.17, 6.5, "Female", "Yes", "Sat", "Dinner", 3 ], [ 12.9, 1.1, "Female", "Yes", "Sat", "Dinner", 2 ], [ 30.14, 3.09, "Female", "Yes", "Sat", "Dinner", 4 ], [ 13.42, 3.48, "Female", "Yes", "Fri", "Lunch", 2 ], [ 15.98, 3, "Female", "No", "Fri", "Lunch", 3 ], [ 16.27, 2.5, "Female", "Yes", "Fri", "Lunch", 2 ], [ 10.09, 2, "Female", "Yes", "Fri", "Lunch", 2 ], [ 22.12, 2.88, "Female", "Yes", "Sat", "Dinner", 2 ], [ 35.83, 4.67, "Female", "No", "Sat", "Dinner", 3 ], [ 27.18, 2, "Female", "Yes", "Sat", "Dinner", 2 ], [ 18.78, 3, "Female", "No", "Thur", "Dinner", 2 ] ], "fillcolor": "rgba(255,255,255,0)", "hoveron": "points", "hovertemplate": "sex=%{customdata[2]}
total_bill=%{customdata[0]}
tip=%{customdata[1]}
smoker=%{customdata[3]}
day=%{customdata[4]}
time=%{customdata[5]}
size=%{customdata[6]}", "jitter": 0, "legendgroup": "Female", "line": { "color": "rgba(255,255,255,0)" }, "marker": { "color": "#636efa", "symbol": "line-ns-open" }, "name": "Female", "offsetgroup": "Female", "showlegend": false, "type": "box", "x": [ 16.99, 24.59, 35.26, 14.83, 10.33, 16.97, 20.29, 15.77, 19.65, 15.06, 20.69, 16.93, 10.29, 34.81, 26.41, 16.45, 3.07, 17.07, 26.86, 25.28, 14.73, 10.07, 34.83, 5.75, 16.32, 22.75, 11.35, 15.38, 44.3, 22.42, 20.92, 14.31, 7.25, 25.71, 17.31, 10.65, 12.43, 24.08, 13.42, 12.48, 29.8, 14.52, 11.38, 20.27, 11.17, 12.26, 18.26, 8.51, 10.33, 14.15, 13.16, 17.47, 27.05, 16.43, 8.35, 18.64, 11.87, 29.85, 25, 13.39, 16.21, 17.51, 10.59, 10.63, 9.6, 20.9, 18.15, 19.81, 43.11, 13, 12.74, 13, 16.4, 16.47, 12.76, 13.27, 28.17, 12.9, 30.14, 13.42, 15.98, 16.27, 10.09, 22.12, 35.83, 27.18, 18.78 ], "xaxis": "x2", "yaxis": "y2" }, { "alignmentgroup": "True", "bingroup": "x", "hovertemplate": "sex=Male
total_bill=%{x}
count=%{y}", "legendgroup": "Male", "marker": { "color": "#EF553B" }, "name": "Male", "offsetgroup": "Male", "orientation": "v", "showlegend": true, "type": "histogram", "x": [ 10.34, 21.01, 23.68, 25.29, 8.77, 26.88, 15.04, 14.78, 10.27, 15.42, 18.43, 21.58, 16.29, 20.65, 17.92, 39.42, 19.82, 17.81, 13.37, 12.69, 21.7, 9.55, 18.35, 17.78, 24.06, 16.31, 18.69, 31.27, 16.04, 17.46, 13.94, 9.68, 30.4, 18.29, 22.23, 32.4, 28.55, 18.04, 12.54, 9.94, 25.56, 19.49, 38.01, 11.24, 48.27, 20.29, 13.81, 11.02, 18.29, 17.59, 20.08, 20.23, 15.01, 12.02, 10.51, 17.92, 27.2, 22.76, 17.29, 19.44, 16.66, 32.68, 15.98, 13.03, 18.28, 24.71, 21.16, 28.97, 22.49, 40.17, 27.28, 12.03, 21.01, 12.46, 15.36, 20.49, 25.21, 18.24, 14, 38.07, 23.95, 29.93, 11.69, 14.26, 15.95, 8.52, 22.82, 19.08, 16, 34.3, 41.19, 9.78, 7.51, 14.07, 13.13, 17.26, 24.55, 19.77, 48.17, 16.49, 21.5, 12.66, 13.81, 24.52, 20.76, 31.71, 50.81, 15.81, 7.25, 31.85, 16.82, 32.9, 17.89, 14.48, 34.63, 34.65, 23.33, 45.35, 23.17, 40.55, 20.69, 30.46, 23.1, 15.69, 28.44, 15.48, 16.58, 7.56, 10.34, 13.51, 18.71, 20.53, 26.59, 38.73, 24.27, 30.06, 25.89, 48.33, 28.15, 11.59, 7.74, 12.16, 8.58, 13.42, 20.45, 13.28, 24.01, 15.69, 11.61, 10.77, 15.53, 10.07, 12.6, 32.83, 29.03, 22.67, 17.82 ], "xaxis": "x", "yaxis": "y" }, { "alignmentgroup": "True", "boxpoints": "all", "customdata": [ [ 10.34, 1.66, "Male", "No", "Sun", "Dinner", 3 ], [ 21.01, 3.5, "Male", "No", "Sun", "Dinner", 3 ], [ 23.68, 3.31, "Male", "No", "Sun", "Dinner", 2 ], [ 25.29, 4.71, "Male", "No", "Sun", "Dinner", 4 ], [ 8.77, 2, "Male", "No", "Sun", "Dinner", 2 ], [ 26.88, 3.12, "Male", "No", "Sun", "Dinner", 4 ], [ 15.04, 1.96, "Male", "No", "Sun", "Dinner", 2 ], [ 14.78, 3.23, "Male", "No", "Sun", "Dinner", 2 ], [ 10.27, 1.71, "Male", "No", "Sun", "Dinner", 2 ], [ 15.42, 1.57, "Male", "No", "Sun", "Dinner", 2 ], [ 18.43, 3, "Male", "No", "Sun", "Dinner", 4 ], [ 21.58, 3.92, "Male", "No", "Sun", "Dinner", 2 ], [ 16.29, 3.71, "Male", "No", "Sun", "Dinner", 3 ], [ 20.65, 3.35, "Male", "No", "Sat", "Dinner", 3 ], [ 17.92, 4.08, "Male", "No", "Sat", "Dinner", 2 ], [ 39.42, 7.58, "Male", "No", "Sat", "Dinner", 4 ], [ 19.82, 3.18, "Male", "No", "Sat", "Dinner", 2 ], [ 17.81, 2.34, "Male", "No", "Sat", "Dinner", 4 ], [ 13.37, 2, "Male", "No", "Sat", "Dinner", 2 ], [ 12.69, 2, "Male", "No", "Sat", "Dinner", 2 ], [ 21.7, 4.3, "Male", "No", "Sat", "Dinner", 2 ], [ 9.55, 1.45, "Male", "No", "Sat", "Dinner", 2 ], [ 18.35, 2.5, "Male", "No", "Sat", "Dinner", 4 ], [ 17.78, 3.27, "Male", "No", "Sat", "Dinner", 2 ], [ 24.06, 3.6, "Male", "No", "Sat", "Dinner", 3 ], [ 16.31, 2, "Male", "No", "Sat", "Dinner", 3 ], [ 18.69, 2.31, "Male", "No", "Sat", "Dinner", 3 ], [ 31.27, 5, "Male", "No", "Sat", "Dinner", 3 ], [ 16.04, 2.24, "Male", "No", "Sat", "Dinner", 3 ], [ 17.46, 2.54, "Male", "No", "Sun", "Dinner", 2 ], [ 13.94, 3.06, "Male", "No", "Sun", "Dinner", 2 ], [ 9.68, 1.32, "Male", "No", "Sun", "Dinner", 2 ], [ 30.4, 5.6, "Male", "No", "Sun", "Dinner", 4 ], [ 18.29, 3, "Male", "No", "Sun", "Dinner", 2 ], [ 22.23, 5, "Male", "No", "Sun", "Dinner", 2 ], [ 32.4, 6, "Male", "No", "Sun", "Dinner", 4 ], [ 28.55, 2.05, "Male", "No", "Sun", "Dinner", 3 ], [ 18.04, 3, "Male", "No", "Sun", "Dinner", 2 ], [ 12.54, 2.5, "Male", "No", "Sun", "Dinner", 2 ], [ 9.94, 1.56, "Male", "No", "Sun", "Dinner", 2 ], [ 25.56, 4.34, "Male", "No", "Sun", "Dinner", 4 ], [ 19.49, 3.51, "Male", "No", "Sun", "Dinner", 2 ], [ 38.01, 3, "Male", "Yes", "Sat", "Dinner", 4 ], [ 11.24, 1.76, "Male", "Yes", "Sat", "Dinner", 2 ], [ 48.27, 6.73, "Male", "No", "Sat", "Dinner", 4 ], [ 20.29, 3.21, "Male", "Yes", "Sat", "Dinner", 2 ], [ 13.81, 2, "Male", "Yes", "Sat", "Dinner", 2 ], [ 11.02, 1.98, "Male", "Yes", "Sat", "Dinner", 2 ], [ 18.29, 3.76, "Male", "Yes", "Sat", "Dinner", 4 ], [ 17.59, 2.64, "Male", "No", "Sat", "Dinner", 3 ], [ 20.08, 3.15, "Male", "No", "Sat", "Dinner", 3 ], [ 20.23, 2.01, "Male", "No", "Sat", "Dinner", 2 ], [ 15.01, 2.09, "Male", "Yes", "Sat", "Dinner", 2 ], [ 12.02, 1.97, "Male", "No", "Sat", "Dinner", 2 ], [ 10.51, 1.25, "Male", "No", "Sat", "Dinner", 2 ], [ 17.92, 3.08, "Male", "Yes", "Sat", "Dinner", 2 ], [ 27.2, 4, "Male", "No", "Thur", "Lunch", 4 ], [ 22.76, 3, "Male", "No", "Thur", "Lunch", 2 ], [ 17.29, 2.71, "Male", "No", "Thur", "Lunch", 2 ], [ 19.44, 3, "Male", "Yes", "Thur", "Lunch", 2 ], [ 16.66, 3.4, "Male", "No", "Thur", "Lunch", 2 ], [ 32.68, 5, "Male", "Yes", "Thur", "Lunch", 2 ], [ 15.98, 2.03, "Male", "No", "Thur", "Lunch", 2 ], [ 13.03, 2, "Male", "No", "Thur", "Lunch", 2 ], [ 18.28, 4, "Male", "No", "Thur", "Lunch", 2 ], [ 24.71, 5.85, "Male", "No", "Thur", "Lunch", 2 ], [ 21.16, 3, "Male", "No", "Thur", "Lunch", 2 ], [ 28.97, 3, "Male", "Yes", "Fri", "Dinner", 2 ], [ 22.49, 3.5, "Male", "No", "Fri", "Dinner", 2 ], [ 40.17, 4.73, "Male", "Yes", "Fri", "Dinner", 4 ], [ 27.28, 4, "Male", "Yes", "Fri", "Dinner", 2 ], [ 12.03, 1.5, "Male", "Yes", "Fri", "Dinner", 2 ], [ 21.01, 3, "Male", "Yes", "Fri", "Dinner", 2 ], [ 12.46, 1.5, "Male", "No", "Fri", "Dinner", 2 ], [ 15.36, 1.64, "Male", "Yes", "Sat", "Dinner", 2 ], [ 20.49, 4.06, "Male", "Yes", "Sat", "Dinner", 2 ], [ 25.21, 4.29, "Male", "Yes", "Sat", "Dinner", 2 ], [ 18.24, 3.76, "Male", "No", "Sat", "Dinner", 2 ], [ 14, 3, "Male", "No", "Sat", "Dinner", 2 ], [ 38.07, 4, "Male", "No", "Sun", "Dinner", 3 ], [ 23.95, 2.55, "Male", "No", "Sun", "Dinner", 2 ], [ 29.93, 5.07, "Male", "No", "Sun", "Dinner", 4 ], [ 11.69, 2.31, "Male", "No", "Thur", "Lunch", 2 ], [ 14.26, 2.5, "Male", "No", "Thur", "Lunch", 2 ], [ 15.95, 2, "Male", "No", "Thur", "Lunch", 2 ], [ 8.52, 1.48, "Male", "No", "Thur", "Lunch", 2 ], [ 22.82, 2.18, "Male", "No", "Thur", "Lunch", 3 ], [ 19.08, 1.5, "Male", "No", "Thur", "Lunch", 2 ], [ 16, 2, "Male", "Yes", "Thur", "Lunch", 2 ], [ 34.3, 6.7, "Male", "No", "Thur", "Lunch", 6 ], [ 41.19, 5, "Male", "No", "Thur", "Lunch", 5 ], [ 9.78, 1.73, "Male", "No", "Thur", "Lunch", 2 ], [ 7.51, 2, "Male", "No", "Thur", "Lunch", 2 ], [ 14.07, 2.5, "Male", "No", "Sun", "Dinner", 2 ], [ 13.13, 2, "Male", "No", "Sun", "Dinner", 2 ], [ 17.26, 2.74, "Male", "No", "Sun", "Dinner", 3 ], [ 24.55, 2, "Male", "No", "Sun", "Dinner", 4 ], [ 19.77, 2, "Male", "No", "Sun", "Dinner", 4 ], [ 48.17, 5, "Male", "No", "Sun", "Dinner", 6 ], [ 16.49, 2, "Male", "No", "Sun", "Dinner", 4 ], [ 21.5, 3.5, "Male", "No", "Sun", "Dinner", 4 ], [ 12.66, 2.5, "Male", "No", "Sun", "Dinner", 2 ], [ 13.81, 2, "Male", "No", "Sun", "Dinner", 2 ], [ 24.52, 3.48, "Male", "No", "Sun", "Dinner", 3 ], [ 20.76, 2.24, "Male", "No", "Sun", "Dinner", 2 ], [ 31.71, 4.5, "Male", "No", "Sun", "Dinner", 4 ], [ 50.81, 10, "Male", "Yes", "Sat", "Dinner", 3 ], [ 15.81, 3.16, "Male", "Yes", "Sat", "Dinner", 2 ], [ 7.25, 5.15, "Male", "Yes", "Sun", "Dinner", 2 ], [ 31.85, 3.18, "Male", "Yes", "Sun", "Dinner", 2 ], [ 16.82, 4, "Male", "Yes", "Sun", "Dinner", 2 ], [ 32.9, 3.11, "Male", "Yes", "Sun", "Dinner", 2 ], [ 17.89, 2, "Male", "Yes", "Sun", "Dinner", 2 ], [ 14.48, 2, "Male", "Yes", "Sun", "Dinner", 2 ], [ 34.63, 3.55, "Male", "Yes", "Sun", "Dinner", 2 ], [ 34.65, 3.68, "Male", "Yes", "Sun", "Dinner", 4 ], [ 23.33, 5.65, "Male", "Yes", "Sun", "Dinner", 2 ], [ 45.35, 3.5, "Male", "Yes", "Sun", "Dinner", 3 ], [ 23.17, 6.5, "Male", "Yes", "Sun", "Dinner", 4 ], [ 40.55, 3, "Male", "Yes", "Sun", "Dinner", 2 ], [ 20.69, 5, "Male", "No", "Sun", "Dinner", 5 ], [ 30.46, 2, "Male", "Yes", "Sun", "Dinner", 5 ], [ 23.1, 4, "Male", "Yes", "Sun", "Dinner", 3 ], [ 15.69, 1.5, "Male", "Yes", "Sun", "Dinner", 2 ], [ 28.44, 2.56, "Male", "Yes", "Thur", "Lunch", 2 ], [ 15.48, 2.02, "Male", "Yes", "Thur", "Lunch", 2 ], [ 16.58, 4, "Male", "Yes", "Thur", "Lunch", 2 ], [ 7.56, 1.44, "Male", "No", "Thur", "Lunch", 2 ], [ 10.34, 2, "Male", "Yes", "Thur", "Lunch", 2 ], [ 13.51, 2, "Male", "Yes", "Thur", "Lunch", 2 ], [ 18.71, 4, "Male", "Yes", "Thur", "Lunch", 3 ], [ 20.53, 4, "Male", "Yes", "Thur", "Lunch", 4 ], [ 26.59, 3.41, "Male", "Yes", "Sat", "Dinner", 3 ], [ 38.73, 3, "Male", "Yes", "Sat", "Dinner", 4 ], [ 24.27, 2.03, "Male", "Yes", "Sat", "Dinner", 2 ], [ 30.06, 2, "Male", "Yes", "Sat", "Dinner", 3 ], [ 25.89, 5.16, "Male", "Yes", "Sat", "Dinner", 4 ], [ 48.33, 9, "Male", "No", "Sat", "Dinner", 4 ], [ 28.15, 3, "Male", "Yes", "Sat", "Dinner", 5 ], [ 11.59, 1.5, "Male", "Yes", "Sat", "Dinner", 2 ], [ 7.74, 1.44, "Male", "Yes", "Sat", "Dinner", 2 ], [ 12.16, 2.2, "Male", "Yes", "Fri", "Lunch", 2 ], [ 8.58, 1.92, "Male", "Yes", "Fri", "Lunch", 1 ], [ 13.42, 1.58, "Male", "Yes", "Fri", "Lunch", 2 ], [ 20.45, 3, "Male", "No", "Sat", "Dinner", 4 ], [ 13.28, 2.72, "Male", "No", "Sat", "Dinner", 2 ], [ 24.01, 2, "Male", "Yes", "Sat", "Dinner", 4 ], [ 15.69, 3, "Male", "Yes", "Sat", "Dinner", 3 ], [ 11.61, 3.39, "Male", "No", "Sat", "Dinner", 2 ], [ 10.77, 1.47, "Male", "No", "Sat", "Dinner", 2 ], [ 15.53, 3, "Male", "Yes", "Sat", "Dinner", 2 ], [ 10.07, 1.25, "Male", "No", "Sat", "Dinner", 2 ], [ 12.6, 1, "Male", "Yes", "Sat", "Dinner", 2 ], [ 32.83, 1.17, "Male", "Yes", "Sat", "Dinner", 2 ], [ 29.03, 5.92, "Male", "No", "Sat", "Dinner", 3 ], [ 22.67, 2, "Male", "Yes", "Sat", "Dinner", 2 ], [ 17.82, 1.75, "Male", "No", "Sat", "Dinner", 2 ] ], "fillcolor": "rgba(255,255,255,0)", "hoveron": "points", "hovertemplate": "sex=%{customdata[2]}
total_bill=%{customdata[0]}
tip=%{customdata[1]}
smoker=%{customdata[3]}
day=%{customdata[4]}
time=%{customdata[5]}
size=%{customdata[6]}", "jitter": 0, "legendgroup": "Male", "line": { "color": "rgba(255,255,255,0)" }, "marker": { "color": "#EF553B", "symbol": "line-ns-open" }, "name": "Male", "offsetgroup": "Male", "showlegend": false, "type": "box", "x": [ 10.34, 21.01, 23.68, 25.29, 8.77, 26.88, 15.04, 14.78, 10.27, 15.42, 18.43, 21.58, 16.29, 20.65, 17.92, 39.42, 19.82, 17.81, 13.37, 12.69, 21.7, 9.55, 18.35, 17.78, 24.06, 16.31, 18.69, 31.27, 16.04, 17.46, 13.94, 9.68, 30.4, 18.29, 22.23, 32.4, 28.55, 18.04, 12.54, 9.94, 25.56, 19.49, 38.01, 11.24, 48.27, 20.29, 13.81, 11.02, 18.29, 17.59, 20.08, 20.23, 15.01, 12.02, 10.51, 17.92, 27.2, 22.76, 17.29, 19.44, 16.66, 32.68, 15.98, 13.03, 18.28, 24.71, 21.16, 28.97, 22.49, 40.17, 27.28, 12.03, 21.01, 12.46, 15.36, 20.49, 25.21, 18.24, 14, 38.07, 23.95, 29.93, 11.69, 14.26, 15.95, 8.52, 22.82, 19.08, 16, 34.3, 41.19, 9.78, 7.51, 14.07, 13.13, 17.26, 24.55, 19.77, 48.17, 16.49, 21.5, 12.66, 13.81, 24.52, 20.76, 31.71, 50.81, 15.81, 7.25, 31.85, 16.82, 32.9, 17.89, 14.48, 34.63, 34.65, 23.33, 45.35, 23.17, 40.55, 20.69, 30.46, 23.1, 15.69, 28.44, 15.48, 16.58, 7.56, 10.34, 13.51, 18.71, 20.53, 26.59, 38.73, 24.27, 30.06, 25.89, 48.33, 28.15, 11.59, 7.74, 12.16, 8.58, 13.42, 20.45, 13.28, 24.01, 15.69, 11.61, 10.77, 15.53, 10.07, 12.6, 32.83, 29.03, 22.67, 17.82 ], "xaxis": "x2", "yaxis": "y2" } ], "layout": { "barmode": "relative", "legend": { "title": { "text": "sex" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "xaxis": { "anchor": "y", "domain": [ 0, 1 ], "title": { "text": "total_bill" } }, "xaxis2": { "anchor": "y2", "domain": [ 0, 1 ], "matches": "x", "showgrid": true, "showticklabels": false }, "yaxis": { "anchor": "x", "domain": [ 0, 0.7326 ], "title": { "text": "count" } }, "yaxis2": { "anchor": "x2", "domain": [ 0.7426, 1 ], "matches": "y2", "showgrid": false, "showline": false, "showticklabels": false, "ticks": "" } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.histogram(\n", " tips,\n", " x=\"total_bill\",\n", " color=\"sex\", # ❶ sex列で分割して積み上げ\n", " marginal=\"rug\", # ❷ ラグプロットをサブプロットで表示\n", " hover_data=tips.columns, # ❸ ホバーツールにすべて列の値を表示\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.10 円グラフ(pie 関数)" ] }, { "cell_type": "code", "execution_count": 16, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "domain": { "x": [ 0, 1 ], "y": [ 0, 1 ] }, "hovertemplate": "day=%{label}
tip=%{value}", "labels": [ "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sun", "Sun", "Sun", "Sun", "Sun", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sat", "Sat", "Sat", "Sat", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Thur" ], "legendgroup": "", "name": "", "showlegend": true, "type": "pie", "values": [ 1.01, 1.66, 3.5, 3.31, 3.61, 4.71, 2, 3.12, 1.96, 3.23, 1.71, 5, 1.57, 3, 3.02, 3.92, 1.67, 3.71, 3.5, 3.35, 4.08, 2.75, 2.23, 7.58, 3.18, 2.34, 2, 2, 4.3, 3, 1.45, 2.5, 3, 2.45, 3.27, 3.6, 2, 3.07, 2.31, 5, 2.24, 2.54, 3.06, 1.32, 5.6, 3, 5, 6, 2.05, 3, 2.5, 2.6, 5.2, 1.56, 4.34, 3.51, 3, 1.5, 1.76, 6.73, 3.21, 2, 1.98, 3.76, 2.64, 3.15, 2.47, 1, 2.01, 2.09, 1.97, 3, 3.14, 5, 2.2, 1.25, 3.08, 4, 3, 2.71, 3, 3.4, 1.83, 5, 2.03, 5.17, 2, 4, 5.85, 3, 3, 3.5, 1, 4.3, 3.25, 4.73, 4, 1.5, 3, 1.5, 2.5, 3, 2.5, 3.48, 4.08, 1.64, 4.06, 4.29, 3.76, 4, 3, 1, 4, 2.55, 4, 3.5, 5.07, 1.5, 1.8, 2.92, 2.31, 1.68, 2.5, 2, 2.52, 4.2, 1.48, 2, 2, 2.18, 1.5, 2.83, 1.5, 2, 3.25, 1.25, 2, 2, 2, 2.75, 3.5, 6.7, 5, 5, 2.3, 1.5, 1.36, 1.63, 1.73, 2, 2.5, 2, 2.74, 2, 2, 5.14, 5, 3.75, 2.61, 2, 3.5, 2.5, 2, 2, 3, 3.48, 2.24, 4.5, 1.61, 2, 10, 3.16, 5.15, 3.18, 4, 3.11, 2, 2, 4, 3.55, 3.68, 5.65, 3.5, 6.5, 3, 5, 3.5, 2, 3.5, 4, 1.5, 4.19, 2.56, 2.02, 4, 1.44, 2, 5, 2, 2, 4, 2.01, 2, 2.5, 4, 3.23, 3.41, 3, 2.03, 2.23, 2, 5.16, 9, 2.5, 6.5, 1.1, 3, 1.5, 1.44, 3.09, 2.2, 3.48, 1.92, 3, 1.58, 2.5, 2, 3, 2.72, 2.88, 2, 3, 3.39, 1.47, 3, 1.25, 1, 1.17, 4.67, 5.92, 2, 2, 1.75, 3 ] } ], "layout": { "legend": { "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.pie(tips, names=\"day\", values=\"tip\")" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.11 サンバーストグラフ(sunburst 関数)" ] }, { "cell_type": "code", "execution_count": 17, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "branchvalues": "total", "domain": { "x": [ 0, 1 ], "y": [ 0, 1 ] }, "hovertemplate": "labels=%{label}
pop=%{value}
parent=%{parent}
id=%{id}", "ids": [ "Asia/Afghanistan", "Europe/Albania", "Africa/Algeria", "Africa/Angola", "Americas/Argentina", "Oceania/Australia", "Europe/Austria", "Asia/Bahrain", "Asia/Bangladesh", "Europe/Belgium", "Africa/Benin", "Americas/Bolivia", "Europe/Bosnia and Herzegovina", "Africa/Botswana", "Americas/Brazil", "Europe/Bulgaria", "Africa/Burkina Faso", "Africa/Burundi", "Asia/Cambodia", "Africa/Cameroon", "Americas/Canada", "Africa/Central African Republic", "Africa/Chad", "Americas/Chile", "Asia/China", "Americas/Colombia", "Africa/Comoros", "Africa/Congo, Dem. Rep.", "Africa/Congo, Rep.", "Americas/Costa Rica", "Africa/Cote d'Ivoire", "Europe/Croatia", "Americas/Cuba", "Europe/Czech Republic", "Europe/Denmark", "Africa/Djibouti", "Americas/Dominican Republic", "Americas/Ecuador", "Africa/Egypt", "Americas/El Salvador", "Africa/Equatorial Guinea", "Africa/Eritrea", "Africa/Ethiopia", "Europe/Finland", "Europe/France", "Africa/Gabon", "Africa/Gambia", "Europe/Germany", "Africa/Ghana", "Europe/Greece", "Americas/Guatemala", "Africa/Guinea", "Africa/Guinea-Bissau", "Americas/Haiti", "Americas/Honduras", "Asia/Hong Kong, China", "Europe/Hungary", "Europe/Iceland", "Asia/India", "Asia/Indonesia", "Asia/Iran", "Asia/Iraq", "Europe/Ireland", "Asia/Israel", "Europe/Italy", "Americas/Jamaica", "Asia/Japan", "Asia/Jordan", "Africa/Kenya", "Asia/Korea, Dem. Rep.", "Asia/Korea, Rep.", "Asia/Kuwait", "Asia/Lebanon", "Africa/Lesotho", "Africa/Liberia", "Africa/Libya", "Africa/Madagascar", "Africa/Malawi", "Asia/Malaysia", "Africa/Mali", "Africa/Mauritania", "Africa/Mauritius", "Americas/Mexico", "Asia/Mongolia", "Europe/Montenegro", "Africa/Morocco", "Africa/Mozambique", "Asia/Myanmar", "Africa/Namibia", "Asia/Nepal", "Europe/Netherlands", "Oceania/New Zealand", "Americas/Nicaragua", "Africa/Niger", "Africa/Nigeria", "Europe/Norway", "Asia/Oman", "Asia/Pakistan", "Americas/Panama", "Americas/Paraguay", "Americas/Peru", "Asia/Philippines", "Europe/Poland", "Europe/Portugal", "Americas/Puerto Rico", "Africa/Reunion", "Europe/Romania", "Africa/Rwanda", "Africa/Sao Tome and Principe", "Asia/Saudi Arabia", "Africa/Senegal", "Europe/Serbia", "Africa/Sierra Leone", "Asia/Singapore", "Europe/Slovak Republic", "Europe/Slovenia", "Africa/Somalia", "Africa/South Africa", "Europe/Spain", "Asia/Sri Lanka", "Africa/Sudan", "Africa/Swaziland", "Europe/Sweden", "Europe/Switzerland", "Asia/Syria", "Asia/Taiwan", "Africa/Tanzania", "Asia/Thailand", "Africa/Togo", "Americas/Trinidad and Tobago", "Africa/Tunisia", "Europe/Turkey", "Africa/Uganda", "Europe/United Kingdom", "Americas/United States", "Americas/Uruguay", "Americas/Venezuela", "Asia/Vietnam", "Asia/West Bank and Gaza", "Asia/Yemen, Rep.", "Africa/Zambia", "Africa/Zimbabwe", "Africa", "Americas", "Asia", "Europe", "Oceania" ], "labels": [ "Afghanistan", "Albania", "Algeria", "Angola", "Argentina", "Australia", "Austria", "Bahrain", "Bangladesh", "Belgium", "Benin", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo, Dem. Rep.", "Congo, Rep.", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Czech Republic", "Denmark", "Djibouti", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Ethiopia", "Finland", "France", "Gabon", "Gambia", "Germany", "Ghana", "Greece", "Guatemala", "Guinea", "Guinea-Bissau", "Haiti", "Honduras", "Hong Kong, China", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kenya", "Korea, Dem. Rep.", "Korea, Rep.", "Kuwait", "Lebanon", "Lesotho", "Liberia", "Libya", "Madagascar", "Malawi", "Malaysia", "Mali", "Mauritania", "Mauritius", "Mexico", "Mongolia", "Montenegro", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Panama", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Puerto Rico", "Reunion", "Romania", "Rwanda", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Sierra Leone", "Singapore", "Slovak Republic", "Slovenia", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tanzania", "Thailand", "Togo", "Trinidad and Tobago", "Tunisia", "Turkey", "Uganda", "United Kingdom", "United States", "Uruguay", "Venezuela", "Vietnam", "West Bank and Gaza", "Yemen, Rep.", "Zambia", "Zimbabwe", "Africa", "Americas", "Asia", "Europe", "Oceania" ], "name": "", "parents": [ "Asia", "Europe", "Africa", "Africa", "Americas", "Oceania", "Europe", "Asia", "Asia", "Europe", "Africa", "Americas", "Europe", "Africa", "Americas", "Europe", "Africa", "Africa", "Asia", "Africa", "Americas", "Africa", "Africa", "Americas", "Asia", "Americas", "Africa", "Africa", "Africa", "Americas", "Africa", "Europe", "Americas", "Europe", "Europe", "Africa", "Americas", "Americas", "Africa", "Americas", "Africa", "Africa", "Africa", "Europe", "Europe", "Africa", "Africa", "Europe", "Africa", "Europe", "Americas", "Africa", "Africa", "Americas", "Americas", "Asia", "Europe", "Europe", "Asia", "Asia", "Asia", "Asia", "Europe", "Asia", "Europe", "Americas", "Asia", "Asia", "Africa", "Asia", "Asia", "Asia", "Asia", "Africa", "Africa", "Africa", "Africa", "Africa", "Asia", "Africa", "Africa", "Africa", "Americas", "Asia", "Europe", "Africa", "Africa", "Asia", "Africa", "Asia", "Europe", "Oceania", "Americas", "Africa", "Africa", "Europe", "Asia", "Asia", "Americas", "Americas", "Americas", "Asia", "Europe", "Europe", "Americas", "Africa", "Europe", "Africa", "Africa", "Asia", "Africa", "Europe", "Africa", "Asia", "Europe", "Europe", "Africa", "Africa", "Europe", "Asia", "Africa", "Africa", "Europe", "Europe", "Asia", "Asia", "Africa", "Asia", "Africa", "Americas", "Africa", "Europe", "Africa", "Europe", "Americas", "Americas", "Americas", "Asia", "Asia", "Asia", "Africa", "Africa", "", "", "", "", "" ], "type": "sunburst", "values": [ 31889923, 3600523, 33333216, 12420476, 40301927, 20434176, 8199783, 708573, 150448339, 10392226, 8078314, 9119152, 4552198, 1639131, 190010647, 7322858, 14326203, 8390505, 14131858, 17696293, 33390141, 4369038, 10238807, 16284741, 1318683096, 44227550, 710960, 64606759, 3800610, 4133884, 18013409, 4493312, 11416987, 10228744, 5468120, 496374, 9319622, 13755680, 80264543, 6939688, 551201, 4906585, 76511887, 5238460, 61083916, 1454867, 1688359, 82400996, 22873338, 10706290, 12572928, 9947814, 1472041, 8502814, 7483763, 6980412, 9956108, 301931, 1110396331, 223547000, 69453570, 27499638, 4109086, 6426679, 58147733, 2780132, 127467972, 6053193, 35610177, 23301725, 49044790, 2505559, 3921278, 2012649, 3193942, 6036914, 19167654, 13327079, 24821286, 12031795, 3270065, 1250882, 108700891, 2874127, 684736, 33757175, 19951656, 47761980, 2055080, 28901790, 16570613, 4115771, 5675356, 12894865, 135031164, 4627926, 3204897, 169270617, 3242173, 6667147, 28674757, 91077287, 38518241, 10642836, 3942491, 798094, 22276056, 8860588, 199579, 27601038, 12267493, 10150265, 6144562, 4553009, 5447502, 2009245, 9118773, 43997828, 40448191, 20378239, 42292929, 1133066, 9031088, 7554661, 19314747, 23174294, 38139640, 65068149, 5701579, 1056608, 10276158, 71158647, 29170398, 60776238, 301139947, 3447496, 26084662, 85262356, 4018332, 22211743, 11746035, 12311143, 929539692, 898871184, 3811953827, 586098529, 24549947 ] } ], "layout": { "legend": { "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.sunburst(\n", " gapminder_2007, path=[\"continent\", \"country\"], values=\"pop\"\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.12 ツリーマップ(treemap 関数)" ] }, { "cell_type": "code", "execution_count": 18, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "branchvalues": "total", "domain": { "x": [ 0, 1 ], "y": [ 0, 1 ] }, "hovertemplate": "labels=%{label}
pop=%{value}
parent=%{parent}
id=%{id}", "ids": [ "Asia/Afghanistan", "Europe/Albania", "Africa/Algeria", "Africa/Angola", "Americas/Argentina", "Oceania/Australia", "Europe/Austria", "Asia/Bahrain", "Asia/Bangladesh", "Europe/Belgium", "Africa/Benin", "Americas/Bolivia", "Europe/Bosnia and Herzegovina", "Africa/Botswana", "Americas/Brazil", "Europe/Bulgaria", "Africa/Burkina Faso", "Africa/Burundi", "Asia/Cambodia", "Africa/Cameroon", "Americas/Canada", "Africa/Central African Republic", "Africa/Chad", "Americas/Chile", "Asia/China", "Americas/Colombia", "Africa/Comoros", "Africa/Congo, Dem. Rep.", "Africa/Congo, Rep.", "Americas/Costa Rica", "Africa/Cote d'Ivoire", "Europe/Croatia", "Americas/Cuba", "Europe/Czech Republic", "Europe/Denmark", "Africa/Djibouti", "Americas/Dominican Republic", "Americas/Ecuador", "Africa/Egypt", "Americas/El Salvador", "Africa/Equatorial Guinea", "Africa/Eritrea", "Africa/Ethiopia", "Europe/Finland", "Europe/France", "Africa/Gabon", "Africa/Gambia", "Europe/Germany", "Africa/Ghana", "Europe/Greece", "Americas/Guatemala", "Africa/Guinea", "Africa/Guinea-Bissau", "Americas/Haiti", "Americas/Honduras", "Asia/Hong Kong, China", "Europe/Hungary", "Europe/Iceland", "Asia/India", "Asia/Indonesia", "Asia/Iran", "Asia/Iraq", "Europe/Ireland", "Asia/Israel", "Europe/Italy", "Americas/Jamaica", "Asia/Japan", "Asia/Jordan", "Africa/Kenya", "Asia/Korea, Dem. Rep.", "Asia/Korea, Rep.", "Asia/Kuwait", "Asia/Lebanon", "Africa/Lesotho", "Africa/Liberia", "Africa/Libya", "Africa/Madagascar", "Africa/Malawi", "Asia/Malaysia", "Africa/Mali", "Africa/Mauritania", "Africa/Mauritius", "Americas/Mexico", "Asia/Mongolia", "Europe/Montenegro", "Africa/Morocco", "Africa/Mozambique", "Asia/Myanmar", "Africa/Namibia", "Asia/Nepal", "Europe/Netherlands", "Oceania/New Zealand", "Americas/Nicaragua", "Africa/Niger", "Africa/Nigeria", "Europe/Norway", "Asia/Oman", "Asia/Pakistan", "Americas/Panama", "Americas/Paraguay", "Americas/Peru", "Asia/Philippines", "Europe/Poland", "Europe/Portugal", "Americas/Puerto Rico", "Africa/Reunion", "Europe/Romania", "Africa/Rwanda", "Africa/Sao Tome and Principe", "Asia/Saudi Arabia", "Africa/Senegal", "Europe/Serbia", "Africa/Sierra Leone", "Asia/Singapore", "Europe/Slovak Republic", "Europe/Slovenia", "Africa/Somalia", "Africa/South Africa", "Europe/Spain", "Asia/Sri Lanka", "Africa/Sudan", "Africa/Swaziland", "Europe/Sweden", "Europe/Switzerland", "Asia/Syria", "Asia/Taiwan", "Africa/Tanzania", "Asia/Thailand", "Africa/Togo", "Americas/Trinidad and Tobago", "Africa/Tunisia", "Europe/Turkey", "Africa/Uganda", "Europe/United Kingdom", "Americas/United States", "Americas/Uruguay", "Americas/Venezuela", "Asia/Vietnam", "Asia/West Bank and Gaza", "Asia/Yemen, Rep.", "Africa/Zambia", "Africa/Zimbabwe", "Africa", "Americas", "Asia", "Europe", "Oceania" ], "labels": [ "Afghanistan", "Albania", "Algeria", "Angola", "Argentina", "Australia", "Austria", "Bahrain", "Bangladesh", "Belgium", "Benin", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo, Dem. Rep.", "Congo, Rep.", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Czech Republic", "Denmark", "Djibouti", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Ethiopia", "Finland", "France", "Gabon", "Gambia", "Germany", "Ghana", "Greece", "Guatemala", "Guinea", "Guinea-Bissau", "Haiti", "Honduras", "Hong Kong, China", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kenya", "Korea, Dem. Rep.", "Korea, Rep.", "Kuwait", "Lebanon", "Lesotho", "Liberia", "Libya", "Madagascar", "Malawi", "Malaysia", "Mali", "Mauritania", "Mauritius", "Mexico", "Mongolia", "Montenegro", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Panama", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Puerto Rico", "Reunion", "Romania", "Rwanda", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Sierra Leone", "Singapore", "Slovak Republic", "Slovenia", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tanzania", "Thailand", "Togo", "Trinidad and Tobago", "Tunisia", "Turkey", "Uganda", "United Kingdom", "United States", "Uruguay", "Venezuela", "Vietnam", "West Bank and Gaza", "Yemen, Rep.", "Zambia", "Zimbabwe", "Africa", "Americas", "Asia", "Europe", "Oceania" ], "name": "", "parents": [ "Asia", "Europe", "Africa", "Africa", "Americas", "Oceania", "Europe", "Asia", "Asia", "Europe", "Africa", "Americas", "Europe", "Africa", "Americas", "Europe", "Africa", "Africa", "Asia", "Africa", "Americas", "Africa", "Africa", "Americas", "Asia", "Americas", "Africa", "Africa", "Africa", "Americas", "Africa", "Europe", "Americas", "Europe", "Europe", "Africa", "Americas", "Americas", "Africa", "Americas", "Africa", "Africa", "Africa", "Europe", "Europe", "Africa", "Africa", "Europe", "Africa", "Europe", "Americas", "Africa", "Africa", "Americas", "Americas", "Asia", "Europe", "Europe", "Asia", "Asia", "Asia", "Asia", "Europe", "Asia", "Europe", "Americas", "Asia", "Asia", "Africa", "Asia", "Asia", "Asia", "Asia", "Africa", "Africa", "Africa", "Africa", "Africa", "Asia", "Africa", "Africa", "Africa", "Americas", "Asia", "Europe", "Africa", "Africa", "Asia", "Africa", "Asia", "Europe", "Oceania", "Americas", "Africa", "Africa", "Europe", "Asia", "Asia", "Americas", "Americas", "Americas", "Asia", "Europe", "Europe", "Americas", "Africa", "Europe", "Africa", "Africa", "Asia", "Africa", "Europe", "Africa", "Asia", "Europe", "Europe", "Africa", "Africa", "Europe", "Asia", "Africa", "Africa", "Europe", "Europe", "Asia", "Asia", "Africa", "Asia", "Africa", "Americas", "Africa", "Europe", "Africa", "Europe", "Americas", "Americas", "Americas", "Asia", "Asia", "Asia", "Africa", "Africa", "", "", "", "", "" ], "type": "treemap", "values": [ 31889923, 3600523, 33333216, 12420476, 40301927, 20434176, 8199783, 708573, 150448339, 10392226, 8078314, 9119152, 4552198, 1639131, 190010647, 7322858, 14326203, 8390505, 14131858, 17696293, 33390141, 4369038, 10238807, 16284741, 1318683096, 44227550, 710960, 64606759, 3800610, 4133884, 18013409, 4493312, 11416987, 10228744, 5468120, 496374, 9319622, 13755680, 80264543, 6939688, 551201, 4906585, 76511887, 5238460, 61083916, 1454867, 1688359, 82400996, 22873338, 10706290, 12572928, 9947814, 1472041, 8502814, 7483763, 6980412, 9956108, 301931, 1110396331, 223547000, 69453570, 27499638, 4109086, 6426679, 58147733, 2780132, 127467972, 6053193, 35610177, 23301725, 49044790, 2505559, 3921278, 2012649, 3193942, 6036914, 19167654, 13327079, 24821286, 12031795, 3270065, 1250882, 108700891, 2874127, 684736, 33757175, 19951656, 47761980, 2055080, 28901790, 16570613, 4115771, 5675356, 12894865, 135031164, 4627926, 3204897, 169270617, 3242173, 6667147, 28674757, 91077287, 38518241, 10642836, 3942491, 798094, 22276056, 8860588, 199579, 27601038, 12267493, 10150265, 6144562, 4553009, 5447502, 2009245, 9118773, 43997828, 40448191, 20378239, 42292929, 1133066, 9031088, 7554661, 19314747, 23174294, 38139640, 65068149, 5701579, 1056608, 10276158, 71158647, 29170398, 60776238, 301139947, 3447496, 26084662, 85262356, 4018332, 22211743, 11746035, 12311143, 929539692, 898871184, 3811953827, 586098529, 24549947 ] } ], "layout": { "legend": { "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.treemap(\n", " gapminder_2007, path=[\"continent\", \"country\"], values=\"pop\"\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.13 平行座標プロット(parallel coordinates 関数)" ] }, { "cell_type": "code", "execution_count": 19, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
sepal_lengthsepal_widthpetal_lengthpetal_widthspeciesspecies_id
05.13.51.40.2setosa1
14.93.01.40.2setosa1
24.73.21.30.2setosa1
34.63.11.50.2setosa1
45.03.61.40.2setosa1
\n", "
" ], "text/plain": [ " sepal_length sepal_width petal_length petal_width species species_id\n", "0 5.1 3.5 1.4 0.2 setosa 1\n", "1 4.9 3.0 1.4 0.2 setosa 1\n", "2 4.7 3.2 1.3 0.2 setosa 1\n", "3 4.6 3.1 1.5 0.2 setosa 1\n", "4 5.0 3.6 1.4 0.2 setosa 1" ] }, "execution_count": 19, "metadata": {}, "output_type": "execute_result" } ], "source": [ "iris = px.data.iris()\n", "iris.head()" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "dimensions": [ { "label": "sepal_length", "values": [ 5.1, 4.9, 4.7, 4.6, 5, 5.4, 4.6, 5, 4.4, 4.9, 5.4, 4.8, 4.8, 4.3, 5.8, 5.7, 5.4, 5.1, 5.7, 5.1, 5.4, 5.1, 4.6, 5.1, 4.8, 5, 5, 5.2, 5.2, 4.7, 4.8, 5.4, 5.2, 5.5, 4.9, 5, 5.5, 4.9, 4.4, 5.1, 5, 4.5, 4.4, 5, 5.1, 4.8, 5.1, 4.6, 5.3, 5, 7, 6.4, 6.9, 5.5, 6.5, 5.7, 6.3, 4.9, 6.6, 5.2, 5, 5.9, 6, 6.1, 5.6, 6.7, 5.6, 5.8, 6.2, 5.6, 5.9, 6.1, 6.3, 6.1, 6.4, 6.6, 6.8, 6.7, 6, 5.7, 5.5, 5.5, 5.8, 6, 5.4, 6, 6.7, 6.3, 5.6, 5.5, 5.5, 6.1, 5.8, 5, 5.6, 5.7, 5.7, 6.2, 5.1, 5.7, 6.3, 5.8, 7.1, 6.3, 6.5, 7.6, 4.9, 7.3, 6.7, 7.2, 6.5, 6.4, 6.8, 5.7, 5.8, 6.4, 6.5, 7.7, 7.7, 6, 6.9, 5.6, 7.7, 6.3, 6.7, 7.2, 6.2, 6.1, 6.4, 7.2, 7.4, 7.9, 6.4, 6.3, 6.1, 7.7, 6.3, 6.4, 6, 6.9, 6.7, 6.9, 5.8, 6.8, 6.7, 6.7, 6.3, 6.5, 6.2, 5.9 ] }, { "label": "sepal_width", "values": [ 3.5, 3, 3.2, 3.1, 3.6, 3.9, 3.4, 3.4, 2.9, 3.1, 3.7, 3.4, 3, 3, 4, 4.4, 3.9, 3.5, 3.8, 3.8, 3.4, 3.7, 3.6, 3.3, 3.4, 3, 3.4, 3.5, 3.4, 3.2, 3.1, 3.4, 4.1, 4.2, 3.1, 3.2, 3.5, 3.1, 3, 3.4, 3.5, 2.3, 3.2, 3.5, 3.8, 3, 3.8, 3.2, 3.7, 3.3, 3.2, 3.2, 3.1, 2.3, 2.8, 2.8, 3.3, 2.4, 2.9, 2.7, 2, 3, 2.2, 2.9, 2.9, 3.1, 3, 2.7, 2.2, 2.5, 3.2, 2.8, 2.5, 2.8, 2.9, 3, 2.8, 3, 2.9, 2.6, 2.4, 2.4, 2.7, 2.7, 3, 3.4, 3.1, 2.3, 3, 2.5, 2.6, 3, 2.6, 2.3, 2.7, 3, 2.9, 2.9, 2.5, 2.8, 3.3, 2.7, 3, 2.9, 3, 3, 2.5, 2.9, 2.5, 3.6, 3.2, 2.7, 3, 2.5, 2.8, 3.2, 3, 3.8, 2.6, 2.2, 3.2, 2.8, 2.8, 2.7, 3.3, 3.2, 2.8, 3, 2.8, 3, 2.8, 3.8, 2.8, 2.8, 2.6, 3, 3.4, 3.1, 3, 3.1, 3.1, 3.1, 2.7, 3.2, 3.3, 3, 2.5, 3, 3.4, 3 ] }, { "label": "petal_length", "values": [ 1.4, 1.4, 1.3, 1.5, 1.4, 1.7, 1.4, 1.5, 1.4, 1.5, 1.5, 1.6, 1.4, 1.1, 1.2, 1.5, 1.3, 1.4, 1.7, 1.5, 1.7, 1.5, 1, 1.7, 1.9, 1.6, 1.6, 1.5, 1.4, 1.6, 1.6, 1.5, 1.5, 1.4, 1.5, 1.2, 1.3, 1.5, 1.3, 1.5, 1.3, 1.3, 1.3, 1.6, 1.9, 1.4, 1.6, 1.4, 1.5, 1.4, 4.7, 4.5, 4.9, 4, 4.6, 4.5, 4.7, 3.3, 4.6, 3.9, 3.5, 4.2, 4, 4.7, 3.6, 4.4, 4.5, 4.1, 4.5, 3.9, 4.8, 4, 4.9, 4.7, 4.3, 4.4, 4.8, 5, 4.5, 3.5, 3.8, 3.7, 3.9, 5.1, 4.5, 4.5, 4.7, 4.4, 4.1, 4, 4.4, 4.6, 4, 3.3, 4.2, 4.2, 4.2, 4.3, 3, 4.1, 6, 5.1, 5.9, 5.6, 5.8, 6.6, 4.5, 6.3, 5.8, 6.1, 5.1, 5.3, 5.5, 5, 5.1, 5.3, 5.5, 6.7, 6.9, 5, 5.7, 4.9, 6.7, 4.9, 5.7, 6, 4.8, 4.9, 5.6, 5.8, 6.1, 6.4, 5.6, 5.1, 5.6, 6.1, 5.6, 5.5, 4.8, 5.4, 5.6, 5.1, 5.1, 5.9, 5.7, 5.2, 5, 5.2, 5.4, 5.1 ] }, { "label": "petal_width", "values": [ 0.2, 0.2, 0.2, 0.2, 0.2, 0.4, 0.3, 0.2, 0.2, 0.1, 0.2, 0.2, 0.1, 0.1, 0.2, 0.4, 0.4, 0.3, 0.3, 0.3, 0.2, 0.4, 0.2, 0.5, 0.2, 0.2, 0.4, 0.2, 0.2, 0.2, 0.2, 0.4, 0.1, 0.2, 0.1, 0.2, 0.2, 0.1, 0.2, 0.2, 0.3, 0.3, 0.2, 0.6, 0.4, 0.3, 0.2, 0.2, 0.2, 0.2, 1.4, 1.5, 1.5, 1.3, 1.5, 1.3, 1.6, 1, 1.3, 1.4, 1, 1.5, 1, 1.4, 1.3, 1.4, 1.5, 1, 1.5, 1.1, 1.8, 1.3, 1.5, 1.2, 1.3, 1.4, 1.4, 1.7, 1.5, 1, 1.1, 1, 1.2, 1.6, 1.5, 1.6, 1.5, 1.3, 1.3, 1.3, 1.2, 1.4, 1.2, 1, 1.3, 1.2, 1.3, 1.3, 1.1, 1.3, 2.5, 1.9, 2.1, 1.8, 2.2, 2.1, 1.7, 1.8, 1.8, 2.5, 2, 1.9, 2.1, 2, 2.4, 2.3, 1.8, 2.2, 2.3, 1.5, 2.3, 2, 2, 1.8, 2.1, 1.8, 1.8, 1.8, 2.1, 1.6, 1.9, 2, 2.2, 1.5, 1.4, 2.3, 2.4, 1.8, 1.8, 2.1, 2.4, 2.3, 1.9, 2.3, 2.5, 2.3, 1.9, 2, 2.3, 1.8 ] } ], "domain": { "x": [ 0, 1 ], "y": [ 0, 1 ] }, "line": { "color": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 ], "coloraxis": "coloraxis" }, "name": "", "type": "parcoords" } ], "layout": { "coloraxis": { "colorbar": { "title": { "text": "species_id" } }, "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" ] ] }, "legend": { "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.parallel_coordinates(\n", " iris,\n", " dimensions=[\"sepal_length\", \"sepal_width\", \"petal_length\", \"petal_width\"],\n", " color=\"species_id\", # ❶ species_id列をカラースケールで表現\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.14 平行プロット(parallel categories 関数)" ] }, { "cell_type": "code", "execution_count": 21, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "dimensions": [ { "label": "sex", "values": [ "Female", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Female", "Male", "Female", "Male", "Female", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Female", "Female", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Female", "Female", "Female", "Female", "Female", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Female", "Female", "Male", "Female", "Female", "Female", "Male", "Female", "Male", "Male", "Female", "Female", "Male", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Female", "Female", "Female", "Female", "Male", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Female", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Female", "Female", "Male", "Male", "Female", "Female", "Female", "Male", "Female", "Male", "Male", "Male", "Female", "Male", "Male", "Male", "Female", "Female", "Female", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Female", "Male", "Female", "Female", "Male", "Male", "Female", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Male", "Female", "Male", "Female", "Male", "Male", "Female" ] }, { "label": "smoker", "values": [ "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "Yes", "No", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "No", "No", "No", "Yes", "No", "Yes", "No", "No", "Yes", "Yes", "No", "No", "Yes", "No", "No", "No", "Yes", "No", "No", "Yes", "No", "No", "No", "No", "No", "No", "Yes", "No", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "No", "Yes", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "Yes", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "No", "Yes", "No", "No", "No", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "Yes", "No", "Yes", "Yes", "Yes", "No", "No", "Yes", "Yes", "Yes", "No", "No", "Yes", "No", "Yes", "Yes", "No", "No", "Yes", "Yes", "No", "No" ] }, { "label": "time", "values": [ "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Lunch", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner", "Dinner" ] }, { "label": "day", "values": [ "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sun", "Sun", "Sun", "Sun", "Sun", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sat", "Sat", "Sat", "Sat", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Sun", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Thur", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Fri", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Sat", "Thur" ] } ], "domain": { "x": [ 0, 1 ], "y": [ 0, 1 ] }, "line": { "color": [ 2, 3, 3, 2, 4, 4, 2, 4, 2, 2, 2, 4, 2, 4, 2, 2, 3, 3, 3, 3, 2, 2, 2, 4, 2, 4, 2, 2, 2, 2, 2, 4, 2, 4, 2, 3, 3, 3, 3, 3, 3, 2, 2, 2, 4, 2, 2, 4, 3, 2, 2, 2, 4, 2, 4, 2, 4, 2, 2, 4, 2, 2, 2, 4, 3, 3, 2, 1, 2, 2, 2, 3, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 1, 2, 2, 4, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 1, 3, 2, 3, 2, 4, 2, 2, 4, 2, 2, 2, 2, 2, 6, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 6, 5, 6, 2, 2, 3, 2, 2, 2, 2, 2, 3, 4, 4, 5, 6, 4, 2, 4, 4, 2, 3, 2, 2, 3, 2, 4, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 4, 2, 3, 4, 2, 5, 3, 5, 3, 3, 2, 2, 2, 2, 2, 2, 2, 4, 2, 2, 3, 2, 2, 2, 4, 3, 3, 4, 2, 2, 3, 4, 4, 2, 3, 2, 5, 2, 2, 4, 2, 2, 1, 3, 2, 2, 2, 4, 2, 2, 4, 3, 2, 2, 2, 2, 2, 2, 3, 3, 2, 2, 2, 2 ], "coloraxis": "coloraxis" }, "name": "", "type": "parcats" } ], "layout": { "coloraxis": { "colorbar": { "title": { "text": "size" } }, "colorscale": [ [ 0, "#000004" ], [ 0.1111111111111111, "#1b0c41" ], [ 0.2222222222222222, "#4a0c6b" ], [ 0.3333333333333333, "#781c6d" ], [ 0.4444444444444444, "#a52c60" ], [ 0.5555555555555556, "#cf4446" ], [ 0.6666666666666666, "#ed6925" ], [ 0.7777777777777778, "#fb9b06" ], [ 0.8888888888888888, "#f7d13d" ], [ 1, "#fcffa4" ] ] }, "legend": { "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.parallel_categories(\n", " tips,\n", " dimensions=[\"sex\", \"smoker\", \"time\", \"day\"], # 対象列を指定\n", " color=\"size\", # ❶ size列で色分け\n", " color_continuous_scale=px.colors.sequential.Inferno, # カラースケール\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 三角図(scatter ternary・ line ternary 関数)" ] }, { "cell_type": "code", "execution_count": 22, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
districtCoderreBergeronJolytotalwinnerresultdistrict_id
0101-Bois-de-Liesse2481182930247334Jolyplurality101
1102-Cap-Saint-Jacques2525116326756363Jolyplurality102
211-Sault-au-Récollet3348277025328650Coderreplurality11
3111-Mile-End1734478225149030Bergeronmajority111
4112-DeLorimier17705933304410747Bergeronmajority112
\n", "
" ], "text/plain": [ " district Coderre Bergeron Joly total winner result \\\n", "0 101-Bois-de-Liesse 2481 1829 3024 7334 Joly plurality \n", "1 102-Cap-Saint-Jacques 2525 1163 2675 6363 Joly plurality \n", "2 11-Sault-au-Récollet 3348 2770 2532 8650 Coderre plurality \n", "3 111-Mile-End 1734 4782 2514 9030 Bergeron majority \n", "4 112-DeLorimier 1770 5933 3044 10747 Bergeron majority \n", "\n", " district_id \n", "0 101 \n", "1 102 \n", "2 11 \n", "3 111 \n", "4 112 " ] }, "execution_count": 22, "metadata": {}, "output_type": "execute_result" } ], "source": [ "election = px.data.election()\n", "election.head()" ] }, { "cell_type": "code", "execution_count": 23, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "a": [ 3024, 2675, 3578, 2849, 1894, 2282, 1636, 3262, 2648, 1266, 1908, 998, 1068, 690 ], "b": [ 2481, 2525, 2432, 2476, 1451, 1906, 1548, 1773, 2040, 1165, 1325, 631, 595, 518 ], "c": [ 1829, 1163, 3368, 2631, 754, 2169, 1503, 2653, 1437, 832, 1205, 258, 226, 224 ], "hovertemplate": "%{hovertext}

winner=Joly
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", "hovertext": [ "101-Bois-de-Liesse", "102-Cap-Saint-Jacques", "161-Saint-HenriPetite-BourgognePointe-Saint-Charles", "172-Desmarchais-Crawford", "181-Peter-McGill", "182-Saint-Jacques", "33-Snowdon", "34-Notre-Dame-de-Grâce", "35-Loyola", "41-du Canal", "43-Fort-Rolland", "61-Pierre-Foretier", "62-Denis-Benjamin-Viger", "63-Jacques-Bizard" ], "legendgroup": "Joly", "marker": { "color": "#636efa", "size": [ 7334, 6363, 9378, 7956, 4099, 6357, 4687, 7688, 6125, 3263, 4438, 1887, 1889, 1432 ], "sizemode": "area", "sizeref": 49.111111111111114, "symbol": "circle" }, "mode": "markers", "name": "Joly", "showlegend": true, "subplot": "ternary", "type": "scatterternary" }, { "a": [ 2532, 2543, 3330, 2852, 1656, 2431, 2081, 3959, 2822, 1641, 1908, 2438, 3291, 1220, 2039, 1402, 1076, 1172, 1286, 1232, 1157, 3717, 2943, 326, 3454, 2338, 1435, 1051, 423 ], "b": [ 3348, 3252, 5456, 4734, 5737, 3673, 3612, 4308, 4104, 3931, 5387, 2566, 3347, 3668, 2878, 2420, 2184, 1589, 2526, 1873, 1193, 4201, 3536, 332, 3694, 3509, 6591, 6229, 996 ], "c": [ 2770, 2521, 1760, 1879, 958, 3155, 1554, 1320, 1459, 882, 1184, 2092, 2562, 984, 2666, 1793, 691, 708, 851, 1182, 653, 1642, 1330, 131, 2589, 2178, 1085, 780, 643 ], "hovertemplate": "%{hovertext}

winner=Coderre
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", "hovertext": [ "11-Sault-au-Récollet", "12-Saint-Sulpice", "121-La Pointe-aux-Prairies", "122-Pointe-aux-Trembles", "123-Rivière-des-Prairies", "134-Marie-Victorin", "14-Bordeaux-Cartierville", "141-Côte-de-Liesse", "142-Norman-McLaren", "151-Saint-Léonard-Est", "152-Saint-Léonard-Ouest", "162-Saint-PaulÉmard", "171-ChamplainL'Île-des-Soeurs", "191-Saint-Michel", "192-François-Perrault", "194-Parc-Extension", "21-Ouest", "22-Est", "23-Centre", "31-Darlington", "42-J.-Émery-Provost", "51-Sault-Saint-Louis", "52-Cecil-P.-Newman", "64-Sainte-Geneviève", "71-Tétreaultville", "74-Louis-Riel", "81-Marie-Clarac", "82-Ovide-Clermont", "91-Claude-Ryan" ], "legendgroup": "Coderre", "marker": { "color": "#EF553B", "size": [ 8650, 8316, 10546, 9465, 8351, 9259, 7247, 9587, 8385, 6454, 8479, 7096, 9200, 5872, 7583, 5615, 3951, 3469, 4663, 4287, 3003, 9560, 7809, 789, 9737, 8025, 9111, 8060, 2062 ], "sizemode": "area", "sizeref": 49.111111111111114, "symbol": "circle" }, "mode": "markers", "name": "Coderre", "showlegend": true, "subplot": "ternary", "type": "scatterternary" }, { "a": [ 2514, 3044, 2316, 2873, 2815, 2788, 3234, 2271, 2782, 1578, 3139, 2675, 592, 419, 489 ], "b": [ 1734, 1770, 1455, 2979, 1827, 2331, 2670, 1347, 2201, 1644, 2746, 1546, 540, 446, 491 ], "c": [ 4782, 5933, 3599, 3430, 6408, 5748, 4962, 2827, 5819, 1950, 3250, 3679, 833, 465, 698 ], "hovertemplate": "%{hovertext}

winner=Bergeron
Joly=%{a}
Coderre=%{b}
Bergeron=%{c}
total=%{marker.size}", "hovertext": [ "111-Mile-End", "112-DeLorimier", "113-Jeanne-Mance", "13-Ahuntsic", "131-Saint-Édouard", "132-Étienne-Desmarteau", "133-Vieux-Rosemont", "183-Sainte-Marie", "193-Villeray", "32-Côte-des-Neiges", "72-MaisonneuveLongue-Pointe", "73-Hochelaga", "92-Joseph-Beaubien", "93-Robert-Bourassa", "94-Jeanne-Sauvé" ], "legendgroup": "Bergeron", "marker": { "color": "#00cc96", "size": [ 9030, 10747, 7370, 9282, 11050, 10867, 10866, 6445, 10802, 5172, 9135, 7900, 1965, 1330, 1678 ], "sizemode": "area", "sizeref": 49.111111111111114, "symbol": "circle" }, "mode": "markers", "name": "Bergeron", "showlegend": true, "subplot": "ternary", "type": "scatterternary" } ], "layout": { "legend": { "itemsizing": "constant", "title": { "text": "winner" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } }, "ternary": { "aaxis": { "title": { "text": "Joly" } }, "baxis": { "title": { "text": "Coderre" } }, "caxis": { "title": { "text": "Bergeron" } }, "domain": { "x": [ 0, 1 ], "y": [ 0, 1 ] } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.scatter_ternary(\n", " election,\n", " a=\"Joly\",\n", " b=\"Coderre\",\n", " c=\"Bergeron\",\n", " color=\"winner\", # ❶ winner列で色分け\n", " size=\"total\", # ❷ 要素の大きさをtotal列の値\n", " size_max=15, # ❷ 要素の大きさの最大値\n", " hover_name=\"district\", # ❸ ホバーツールのタイトル\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.16 ポーラチャート(scatter polar 関数・ line polar 関数・ bar polar関数)" ] }, { "cell_type": "code", "execution_count": 24, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
\n", "\n", "\n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", " \n", "
directionstrengthfrequency
0N0-10.5
1NNE0-10.6
2NE0-10.5
3ENE0-10.4
4E0-10.4
\n", "
" ], "text/plain": [ " direction strength frequency\n", "0 N 0-1 0.5\n", "1 NNE 0-1 0.6\n", "2 NE 0-1 0.5\n", "3 ENE 0-1 0.4\n", "4 E 0-1 0.4" ] }, "execution_count": 24, "metadata": {}, "output_type": "execute_result" } ], "source": [ "wind = px.data.wind()\n", "wind.head()" ] }, { "cell_type": "code", "execution_count": 25, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "hovertemplate": "strength=0-1
frequency=%{r}
direction=%{theta}", "legendgroup": "0-1", "marker": { "color": "#636efa" }, "name": "0-1", "r": [ 0.5, 0.6, 0.5, 0.4, 0.4, 0.3, 0.4, 0.4, 0.6, 0.4, 0.5, 0.6, 0.6, 0.5, 0.4, 0.1 ], "showlegend": true, "subplot": "polar", "theta": [ "N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW" ], "type": "barpolar" }, { "hovertemplate": "strength=1-2
frequency=%{r}
direction=%{theta}", "legendgroup": "1-2", "marker": { "color": "#EF553B" }, "name": "1-2", "r": [ 1.6, 1.8, 1.5, 1.6, 1.6, 1.2, 1.5, 1.7, 2.2, 2, 2.3, 2.4, 2.3, 2.6, 2.3, 0.8 ], "showlegend": true, "subplot": "polar", "theta": [ "N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW" ], "type": "barpolar" }, { "hovertemplate": "strength=2-3
frequency=%{r}
direction=%{theta}", "legendgroup": "2-3", "marker": { "color": "#00cc96" }, "name": "2-3", "r": [ 0.9, 1.3, 1.6, 0.9, 1, 0.6, 0.6, 0.9, 1.4, 1.7, 1.9, 2.2, 1.8, 1.7, 1.8, 0.8 ], "showlegend": true, "subplot": "polar", "theta": [ "N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW" ], "type": "barpolar" }, { "hovertemplate": "strength=3-4
frequency=%{r}
direction=%{theta}", "legendgroup": "3-4", "marker": { "color": "#ab63fa" }, "name": "3-4", "r": [ 0.9, 0.8, 1.2, 1, 0.8, 0.4, 0.5, 0.5, 0.8, 0.9, 1.3, 1.1, 1.2, 1.2, 1.3, 1 ], "showlegend": true, "subplot": "polar", "theta": [ "N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW" ], "type": "barpolar" }, { "hovertemplate": "strength=4-4
frequency=%{r}
direction=%{theta}", "legendgroup": "4-4", "marker": { "color": "#FFA15A" }, "name": "4-4", "r": [ 0.4, 0.5, 1.2, 0.5, 0.4, 0.2, 0.4, 0.4, 0.7, 0.6, 0.7, 0.8, 0.9, 1, 1, 0.7 ], "showlegend": true, "subplot": "polar", "theta": [ "N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW" ], "type": "barpolar" }, { "hovertemplate": "strength=4-5
frequency=%{r}
direction=%{theta}", "legendgroup": "4-5", "marker": { "color": "#19d3f3" }, "name": "4-5", "r": [ 0.3, 0.3, 0.6, 0.2, 0.1, 0.1, 0.05, 0.1, 0.1, 0.2, 0.3, 0.4, 0.9, 0.9, 0.9, 0.3 ], "showlegend": true, "subplot": "polar", "theta": [ "N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW" ], "type": "barpolar" }, { "hovertemplate": "strength=5-6
frequency=%{r}
direction=%{theta}", "legendgroup": "5-6", "marker": { "color": "#FF6692" }, "name": "5-6", "r": [ 0.2, 0.1, 0.1, 0.1, 0.1, 0.1, 0.05, 0.05, 0.1, 0.05, 0.2, 0.2, 0.4, 0.7, 0.7, 0.4 ], "showlegend": true, "subplot": "polar", "theta": [ "N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW" ], "type": "barpolar" }, { "hovertemplate": "strength=6+
frequency=%{r}
direction=%{theta}", "legendgroup": "6+", "marker": { "color": "#B6E880" }, "name": "6+", "r": [ 0.1, 0.1, 0.1, 0.1, 0.1, 0.05, 0.05, 0.05, 0.05, 0.1, 0.1, 0.1, 0.9, 2.2, 1.5, 0.2 ], "showlegend": true, "subplot": "polar", "theta": [ "N", "NNE", "NE", "ENE", "E", "ESE", "SE", "SSE", "S", "SSW", "SW", "WSW", "W", "WNW", "NW", "NNW" ], "type": "barpolar" } ], "layout": { "barmode": "relative", "legend": { "title": { "text": "strength" }, "tracegroupgap": 0 }, "margin": { "t": 60 }, "polar": { "angularaxis": { "direction": "clockwise", "rotation": 90 }, "domain": { "x": [ 0, 1 ], "y": [ 0, 1 ] } }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.bar_polar(\n", " wind,\n", " r=\"frequency\", # 値\n", " theta=\"direction\", # 角度\n", " color=\"strength\", # ❶ strengthで分割して積み上げ\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.17 階級区分図(choropleth 関数)" ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "coloraxis": "coloraxis", "geo": "geo", "hovertemplate": "%{hovertext}

iso_alpha=%{location}
lifeExp=%{z}", "hovertext": [ "Afghanistan", "Albania", "Algeria", "Angola", "Argentina", "Australia", "Austria", "Bahrain", "Bangladesh", "Belgium", "Benin", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo, Dem. Rep.", "Congo, Rep.", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Czech Republic", "Denmark", "Djibouti", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Ethiopia", "Finland", "France", "Gabon", "Gambia", "Germany", "Ghana", "Greece", "Guatemala", "Guinea", "Guinea-Bissau", "Haiti", "Honduras", "Hong Kong, China", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kenya", "Korea, Dem. Rep.", "Korea, Rep.", "Kuwait", "Lebanon", "Lesotho", "Liberia", "Libya", "Madagascar", "Malawi", "Malaysia", "Mali", "Mauritania", "Mauritius", "Mexico", "Mongolia", "Montenegro", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Panama", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Puerto Rico", "Reunion", "Romania", "Rwanda", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Sierra Leone", "Singapore", "Slovak Republic", "Slovenia", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tanzania", "Thailand", "Togo", "Trinidad and Tobago", "Tunisia", "Turkey", "Uganda", "United Kingdom", "United States", "Uruguay", "Venezuela", "Vietnam", "West Bank and Gaza", "Yemen, Rep.", "Zambia", "Zimbabwe" ], "locations": [ "AFG", "ALB", "DZA", "AGO", "ARG", "AUS", "AUT", "BHR", "BGD", "BEL", "BEN", "BOL", "BIH", "BWA", "BRA", "BGR", "BFA", "BDI", "KHM", "CMR", "CAN", "CAF", "TCD", "CHL", "CHN", "COL", "COM", "COD", "COG", "CRI", "CIV", "HRV", "CUB", "CZE", "DNK", "DJI", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "ETH", "FIN", "FRA", "GAB", "GMB", "DEU", "GHA", "GRC", "GTM", "GIN", "GNB", "HTI", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "ISR", "ITA", "JAM", "JPN", "JOR", "KEN", "KOR", "KOR", "KWT", "LBN", "LSO", "LBR", "LBY", "MDG", "MWI", "MYS", "MLI", "MRT", "MUS", "MEX", "MNG", "MNE", "MAR", "MOZ", "MMR", "NAM", "NPL", "NLD", "NZL", "NIC", "NER", "NGA", "NOR", "OMN", "PAK", "PAN", "PRY", "PER", "PHL", "POL", "PRT", "PRI", "REU", "ROU", "RWA", "STP", "SAU", "SEN", "SRB", "SLE", "SGP", "SVK", "SVN", "SOM", "ZAF", "ESP", "LKA", "SDN", "SWZ", "SWE", "CHE", "SYR", "TWN", "TZA", "THA", "TGO", "TTO", "TUN", "TUR", "UGA", "GBR", "USA", "URY", "VEN", "VNM", "PSE", "YEM", "ZMB", "ZWE" ], "name": "", "type": "choropleth", "z": [ 43.828, 76.423, 72.301, 42.731, 75.32, 81.235, 79.829, 75.635, 64.062, 79.441, 56.728, 65.554, 74.852, 50.728, 72.39, 73.005, 52.295, 49.58, 59.723, 50.43, 80.653, 44.74100000000001, 50.651, 78.553, 72.961, 72.889, 65.152, 46.461999999999996, 55.321999999999996, 78.782, 48.328, 75.748, 78.273, 76.486, 78.332, 54.791000000000004, 72.235, 74.994, 71.33800000000001, 71.878, 51.57899999999999, 58.04, 52.946999999999996, 79.313, 80.657, 56.735, 59.448, 79.406, 60.022, 79.483, 70.259, 56.007, 46.388000000000005, 60.916000000000004, 70.19800000000001, 82.208, 73.33800000000001, 81.757, 64.69800000000001, 70.65, 70.964, 59.545, 78.885, 80.745, 80.546, 72.567, 82.603, 72.535, 54.11, 67.297, 78.623, 77.58800000000001, 71.993, 42.592, 45.678000000000004, 73.952, 59.443000000000005, 48.303000000000004, 74.241, 54.467, 64.164, 72.801, 76.195, 66.803, 74.543, 71.164, 42.082, 62.068999999999996, 52.906000000000006, 63.785, 79.762, 80.204, 72.899, 56.867, 46.858999999999995, 80.196, 75.64, 65.483, 75.53699999999999, 71.752, 71.421, 71.688, 75.563, 78.098, 78.74600000000001, 76.442, 72.476, 46.242, 65.528, 72.777, 63.062, 74.002, 42.568000000000005, 79.972, 74.663, 77.926, 48.159, 49.339, 80.941, 72.396, 58.556000000000004, 39.613, 80.884, 81.70100000000001, 74.143, 78.4, 52.516999999999996, 70.616, 58.42, 69.819, 73.923, 71.777, 51.542, 79.425, 78.242, 76.384, 73.747, 74.249, 73.422, 62.698, 42.38399999999999, 43.486999999999995 ] } ], "layout": { "coloraxis": { "colorbar": { "title": { "text": "lifeExp" } }, "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" ] ] }, "geo": { "center": {}, "domain": { "x": [ 0, 1 ], "y": [ 0, 1 ] } }, "legend": { "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "gapmider_2007 = gapminder[gapminder[\"year\"] == 2007]\n", "px.choropleth(\n", " gapmider_2007,\n", " locations=\"iso_alpha\", # 位置をISO 3166-1 alpha-3形式で指定\n", " color=\"lifeExp\",\n", " hover_name=\"country\", # ❶ ホバーツールのタイトル\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.18 地図上の散布図(scattergeo 関数)" ] }, { "cell_type": "code", "execution_count": 27, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "geo": "geo", "hovertemplate": "%{hovertext}

year=2007
gdpPercap=%{marker.size}
iso_alpha=%{location}
lifeExp=%{marker.color}", "hovertext": [ "Afghanistan", "Albania", "Algeria", "Angola", "Argentina", "Australia", "Austria", "Bahrain", "Bangladesh", "Belgium", "Benin", "Bolivia", "Bosnia and Herzegovina", "Botswana", "Brazil", "Bulgaria", "Burkina Faso", "Burundi", "Cambodia", "Cameroon", "Canada", "Central African Republic", "Chad", "Chile", "China", "Colombia", "Comoros", "Congo, Dem. Rep.", "Congo, Rep.", "Costa Rica", "Cote d'Ivoire", "Croatia", "Cuba", "Czech Republic", "Denmark", "Djibouti", "Dominican Republic", "Ecuador", "Egypt", "El Salvador", "Equatorial Guinea", "Eritrea", "Ethiopia", "Finland", "France", "Gabon", "Gambia", "Germany", "Ghana", "Greece", "Guatemala", "Guinea", "Guinea-Bissau", "Haiti", "Honduras", "Hong Kong, China", "Hungary", "Iceland", "India", "Indonesia", "Iran", "Iraq", "Ireland", "Israel", "Italy", "Jamaica", "Japan", "Jordan", "Kenya", "Korea, Dem. Rep.", "Korea, Rep.", "Kuwait", "Lebanon", "Lesotho", "Liberia", "Libya", "Madagascar", "Malawi", "Malaysia", "Mali", "Mauritania", "Mauritius", "Mexico", "Mongolia", "Montenegro", "Morocco", "Mozambique", "Myanmar", "Namibia", "Nepal", "Netherlands", "New Zealand", "Nicaragua", "Niger", "Nigeria", "Norway", "Oman", "Pakistan", "Panama", "Paraguay", "Peru", "Philippines", "Poland", "Portugal", "Puerto Rico", "Reunion", "Romania", "Rwanda", "Sao Tome and Principe", "Saudi Arabia", "Senegal", "Serbia", "Sierra Leone", "Singapore", "Slovak Republic", "Slovenia", "Somalia", "South Africa", "Spain", "Sri Lanka", "Sudan", "Swaziland", "Sweden", "Switzerland", "Syria", "Taiwan", "Tanzania", "Thailand", "Togo", "Trinidad and Tobago", "Tunisia", "Turkey", "Uganda", "United Kingdom", "United States", "Uruguay", "Venezuela", "Vietnam", "West Bank and Gaza", "Yemen, Rep.", "Zambia", "Zimbabwe" ], "legendgroup": "", "locations": [ "AFG", "ALB", "DZA", "AGO", "ARG", "AUS", "AUT", "BHR", "BGD", "BEL", "BEN", "BOL", "BIH", "BWA", "BRA", "BGR", "BFA", "BDI", "KHM", "CMR", "CAN", "CAF", "TCD", "CHL", "CHN", "COL", "COM", "COD", "COG", "CRI", "CIV", "HRV", "CUB", "CZE", "DNK", "DJI", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "ETH", "FIN", "FRA", "GAB", "GMB", "DEU", "GHA", "GRC", "GTM", "GIN", "GNB", "HTI", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "ISR", "ITA", "JAM", "JPN", "JOR", "KEN", "KOR", "KOR", "KWT", "LBN", "LSO", "LBR", "LBY", "MDG", "MWI", "MYS", "MLI", "MRT", "MUS", "MEX", "MNG", "MNE", "MAR", "MOZ", "MMR", "NAM", "NPL", "NLD", "NZL", "NIC", "NER", "NGA", "NOR", "OMN", "PAK", "PAN", "PRY", "PER", "PHL", "POL", "PRT", "PRI", "REU", "ROU", "RWA", "STP", "SAU", "SEN", "SRB", "SLE", "SGP", "SVK", "SVN", "SOM", "ZAF", "ESP", "LKA", "SDN", "SWZ", "SWE", "CHE", "SYR", "TWN", "TZA", "THA", "TGO", "TTO", "TUN", "TUR", "UGA", "GBR", "USA", "URY", "VEN", "VNM", "PSE", "YEM", "ZMB", "ZWE" ], "marker": { "color": [ 43.828, 76.423, 72.301, 42.731, 75.32, 81.235, 79.829, 75.635, 64.062, 79.441, 56.728, 65.554, 74.852, 50.728, 72.39, 73.005, 52.295, 49.58, 59.723, 50.43, 80.653, 44.74100000000001, 50.651, 78.553, 72.961, 72.889, 65.152, 46.461999999999996, 55.321999999999996, 78.782, 48.328, 75.748, 78.273, 76.486, 78.332, 54.791000000000004, 72.235, 74.994, 71.33800000000001, 71.878, 51.57899999999999, 58.04, 52.946999999999996, 79.313, 80.657, 56.735, 59.448, 79.406, 60.022, 79.483, 70.259, 56.007, 46.388000000000005, 60.916000000000004, 70.19800000000001, 82.208, 73.33800000000001, 81.757, 64.69800000000001, 70.65, 70.964, 59.545, 78.885, 80.745, 80.546, 72.567, 82.603, 72.535, 54.11, 67.297, 78.623, 77.58800000000001, 71.993, 42.592, 45.678000000000004, 73.952, 59.443000000000005, 48.303000000000004, 74.241, 54.467, 64.164, 72.801, 76.195, 66.803, 74.543, 71.164, 42.082, 62.068999999999996, 52.906000000000006, 63.785, 79.762, 80.204, 72.899, 56.867, 46.858999999999995, 80.196, 75.64, 65.483, 75.53699999999999, 71.752, 71.421, 71.688, 75.563, 78.098, 78.74600000000001, 76.442, 72.476, 46.242, 65.528, 72.777, 63.062, 74.002, 42.568000000000005, 79.972, 74.663, 77.926, 48.159, 49.339, 80.941, 72.396, 58.556000000000004, 39.613, 80.884, 81.70100000000001, 74.143, 78.4, 52.516999999999996, 70.616, 58.42, 69.819, 73.923, 71.777, 51.542, 79.425, 78.242, 76.384, 73.747, 74.249, 73.422, 62.698, 42.38399999999999, 43.486999999999995 ], "coloraxis": "coloraxis", "size": [ 974.5803384, 5937.029525999999, 6223.367465, 4797.231267, 12779.379640000001, 34435.367439999995, 36126.4927, 29796.048339999998, 1391.253792, 33692.60508, 1441.284873, 3822.1370840000004, 7446.298803, 12569.851770000001, 9065.800825, 10680.79282, 1217.032994, 430.07069160000003, 1713.7786859999999, 2042.0952399999999, 36319.235010000004, 706.016537, 1704.0637239999999, 13171.63885, 4959.1148539999995, 7006.580419, 986.1478792000001, 277.55185869999997, 3632.557798, 9645.06142, 1544.750112, 14619.222719999998, 8948.102923, 22833.30851, 35278.41874, 2082.4815670000003, 6025.374752000001, 6873.262326000001, 5581.180998, 5728.353514, 12154.08975, 641.3695236000001, 690.8055759, 33207.0844, 30470.0167, 13206.48452, 752.7497265, 32170.37442, 1327.60891, 27538.41188, 5186.050003, 942.6542111, 579.2317429999999, 1201.637154, 3548.3308460000003, 39724.97867, 18008.94444, 36180.789189999996, 2452.210407, 3540.6515640000002, 11605.71449, 4471.061906, 40675.99635, 25523.2771, 28569.7197, 7320.880262000001, 31656.06806, 4519.461171, 1463.249282, 1593.06548, 23348.139730000003, 47306.98978, 10461.05868, 1569.331442, 414.5073415, 12057.49928, 1044.770126, 759.3499101, 12451.6558, 1042.581557, 1803.1514960000002, 10956.99112, 11977.57496, 3095.7722710000003, 9253.896111, 3820.17523, 823.6856205, 944, 4811.060429, 1091.359778, 36797.93332, 25185.00911, 2749.320965, 619.6768923999999, 2013.9773050000001, 49357.19017, 22316.19287, 2605.94758, 9809.185636, 4172.838464, 7408.905561, 3190.481016, 15389.924680000002, 20509.64777, 19328.70901, 7670.122558, 10808.47561, 863.0884639000001, 1598.435089, 21654.83194, 1712.4721359999999, 9786.534714, 862.5407561000001, 47143.179639999995, 18678.31435, 25768.25759, 926.1410683, 9269.657808, 28821.0637, 3970.0954070000003, 2602.394995, 4513.480643, 33859.74835, 37506.419069999996, 4184.548089, 28718.27684, 1107.482182, 7458.3963269999995, 882.9699437999999, 18008.50924, 7092.923025, 8458.276384, 1056.3801210000001, 33203.26128, 42951.65309, 10611.46299, 11415.805690000001, 2441.576404, 3025.349798, 2280.769906, 1271.211593, 469.70929810000007 ], "sizemode": "area", "sizeref": 123.392975425 }, "name": "", "showlegend": false, "type": "scattergeo" } ], "layout": { "coloraxis": { "colorbar": { "title": { "text": "lifeExp" } }, "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" ] ] }, "geo": { "center": {}, "domain": { "x": [ 0, 1 ], "y": [ 0, 1 ] } }, "legend": { "itemsizing": "constant", "tracegroupgap": 0 }, "margin": { "t": 60 }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "px.scatter_geo(\n", " gapmider_2007,\n", " locations=\"iso_alpha\",\n", " size=\"gdpPercap\", # ❶ 要素のサイズ\n", " color=\"lifeExp\", # ❷ 要素の色\n", " hover_name=\"country\",\n", " animation_frame=\"year\", # ❸ アニメーション\n", ").show()" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### 1.4.19 3D 散布図(scatter 3d 関数・ line 3d 関数)" ] }, { "cell_type": "code", "execution_count": 28, "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "customdata": [ [ "Afghanistan" ], [ "Afghanistan" ], [ "Afghanistan" ], [ "Afghanistan" ], [ "Afghanistan" ], [ "Afghanistan" ], [ "Afghanistan" ], [ "Afghanistan" ], [ "Afghanistan" ], [ "Afghanistan" ], [ "Afghanistan" ], [ "Afghanistan" ], [ "Albania" ], [ "Albania" ], [ "Albania" ], [ "Albania" ], [ "Albania" ], [ "Albania" ], [ "Albania" ], [ "Albania" ], [ "Albania" ], [ "Albania" ], [ "Albania" ], [ "Albania" ], [ "Algeria" ], [ "Algeria" ], [ "Algeria" ], [ "Algeria" ], [ "Algeria" ], [ "Algeria" ], [ "Algeria" ], [ "Algeria" ], [ "Algeria" ], [ "Algeria" ], [ "Algeria" ], [ "Algeria" ], [ "Angola" ], [ "Angola" ], [ "Angola" ], [ "Angola" ], [ "Angola" ], [ "Angola" ], [ "Angola" ], [ "Angola" ], [ "Angola" ], [ "Angola" ], [ "Angola" ], [ "Angola" ], [ "Argentina" ], [ "Argentina" ], [ "Argentina" ], [ "Argentina" ], [ "Argentina" ], [ "Argentina" ], [ "Argentina" ], [ "Argentina" ], [ "Argentina" ], [ "Argentina" ], [ "Argentina" ], [ "Argentina" ], [ "Australia" ], [ "Australia" ], [ "Australia" ], [ "Australia" ], [ "Australia" ], [ "Australia" ], [ "Australia" ], [ "Australia" ], [ "Australia" ], [ "Australia" ], [ "Australia" ], [ "Australia" ], [ "Austria" ], [ "Austria" ], [ "Austria" ], [ "Austria" ], [ "Austria" ], [ "Austria" ], [ "Austria" ], [ "Austria" ], [ "Austria" ], [ "Austria" ], [ "Austria" ], [ "Austria" ], [ "Bahrain" ], [ "Bahrain" ], [ "Bahrain" ], [ "Bahrain" ], [ "Bahrain" ], [ "Bahrain" ], [ "Bahrain" ], [ "Bahrain" ], [ "Bahrain" ], [ "Bahrain" ], [ "Bahrain" ], [ "Bahrain" ], [ "Bangladesh" ], [ "Bangladesh" ], [ "Bangladesh" ], [ "Bangladesh" ], [ "Bangladesh" ], [ "Bangladesh" ], [ "Bangladesh" ], [ "Bangladesh" ], [ "Bangladesh" ], [ "Bangladesh" ], [ "Bangladesh" ], [ "Bangladesh" ], [ "Belgium" ], [ "Belgium" ], [ "Belgium" ], [ "Belgium" ], [ "Belgium" ], [ "Belgium" ], [ "Belgium" ], [ "Belgium" ], [ "Belgium" ], [ "Belgium" ], [ "Belgium" ], [ "Belgium" ], [ "Benin" ], [ "Benin" ], [ "Benin" ], [ "Benin" ], [ "Benin" ], [ "Benin" ], [ "Benin" ], [ "Benin" ], [ "Benin" ], [ "Benin" ], [ "Benin" ], [ "Benin" ], [ "Bolivia" ], [ "Bolivia" ], [ "Bolivia" ], [ "Bolivia" ], [ "Bolivia" ], [ "Bolivia" ], [ "Bolivia" ], [ "Bolivia" ], [ "Bolivia" ], [ "Bolivia" ], [ "Bolivia" ], [ "Bolivia" ], [ "Bosnia and Herzegovina" ], [ "Bosnia and Herzegovina" ], [ "Bosnia and Herzegovina" ], [ "Bosnia and Herzegovina" ], [ "Bosnia and Herzegovina" ], [ "Bosnia and Herzegovina" ], [ "Bosnia and Herzegovina" ], [ "Bosnia and Herzegovina" ], [ "Bosnia and Herzegovina" ], [ "Bosnia and Herzegovina" ], [ "Bosnia and Herzegovina" ], [ "Bosnia and Herzegovina" ], [ "Botswana" ], [ "Botswana" ], [ "Botswana" ], [ "Botswana" ], [ "Botswana" ], [ "Botswana" ], [ "Botswana" ], [ "Botswana" ], [ "Botswana" ], [ "Botswana" ], [ "Botswana" ], [ "Botswana" ], [ "Brazil" ], [ "Brazil" ], [ "Brazil" ], [ "Brazil" ], [ "Brazil" ], [ "Brazil" ], [ "Brazil" ], [ "Brazil" ], [ "Brazil" ], [ "Brazil" ], [ "Brazil" ], [ "Brazil" ], [ "Bulgaria" ], [ "Bulgaria" ], [ "Bulgaria" ], [ "Bulgaria" ], [ "Bulgaria" ], [ "Bulgaria" ], [ "Bulgaria" ], [ "Bulgaria" ], [ "Bulgaria" ], [ "Bulgaria" ], [ "Bulgaria" ], [ "Bulgaria" ], [ "Burkina Faso" ], [ "Burkina Faso" ], [ "Burkina Faso" ], [ "Burkina Faso" ], [ "Burkina Faso" ], [ "Burkina Faso" ], [ "Burkina Faso" ], [ "Burkina Faso" ], [ "Burkina Faso" ], [ "Burkina Faso" ], [ "Burkina Faso" ], [ "Burkina Faso" ], [ "Burundi" ], [ "Burundi" ], [ "Burundi" ], [ "Burundi" ], [ "Burundi" ], [ "Burundi" ], [ "Burundi" ], [ "Burundi" ], [ "Burundi" ], [ "Burundi" ], [ "Burundi" ], [ "Burundi" ], [ "Cambodia" ], [ "Cambodia" ], [ "Cambodia" ], [ "Cambodia" ], [ "Cambodia" ], [ "Cambodia" ], [ "Cambodia" ], [ "Cambodia" ], [ "Cambodia" ], [ "Cambodia" ], [ "Cambodia" ], [ "Cambodia" ], [ "Cameroon" ], [ "Cameroon" ], [ "Cameroon" ], [ "Cameroon" ], [ "Cameroon" ], [ "Cameroon" ], [ "Cameroon" ], [ "Cameroon" ], [ "Cameroon" ], [ "Cameroon" ], [ "Cameroon" ], [ "Cameroon" ], [ "Canada" ], [ "Canada" ], [ "Canada" ], [ "Canada" ], [ "Canada" ], [ "Canada" ], [ "Canada" ], [ "Canada" ], [ "Canada" ], [ "Canada" ], [ "Canada" ], [ "Canada" ], [ "Central African Republic" ], [ "Central African Republic" ], [ "Central African Republic" ], [ "Central African Republic" ], [ "Central African Republic" ], [ "Central African Republic" ], [ "Central African Republic" ], [ "Central African Republic" ], [ "Central African Republic" ], [ "Central African Republic" ], [ "Central African Republic" ], [ "Central African Republic" ], [ "Chad" ], [ "Chad" ], [ "Chad" ], [ "Chad" ], [ "Chad" ], [ "Chad" ], [ "Chad" ], [ "Chad" ], [ "Chad" ], [ "Chad" ], [ "Chad" ], [ "Chad" ], [ "Chile" ], [ "Chile" ], [ "Chile" ], [ "Chile" ], [ "Chile" ], [ "Chile" ], [ "Chile" ], [ "Chile" ], [ "Chile" ], [ "Chile" ], [ "Chile" ], [ "Chile" ], [ "China" ], [ "China" ], [ "China" ], [ "China" ], [ "China" ], [ "China" ], [ "China" ], [ "China" ], [ "China" ], [ "China" ], [ "China" ], [ "China" ], [ "Colombia" ], [ "Colombia" ], [ "Colombia" ], [ "Colombia" ], [ "Colombia" ], [ "Colombia" ], [ "Colombia" ], [ "Colombia" ], [ "Colombia" ], [ "Colombia" ], [ "Colombia" ], [ "Colombia" ], [ "Comoros" ], [ "Comoros" ], [ "Comoros" ], [ "Comoros" ], [ "Comoros" ], [ "Comoros" ], [ "Comoros" ], [ "Comoros" ], [ "Comoros" ], [ "Comoros" ], [ "Comoros" ], [ "Comoros" ], [ "Congo, Dem. Rep." ], [ "Congo, Dem. Rep." ], [ "Congo, Dem. Rep." ], [ "Congo, Dem. Rep." ], [ "Congo, Dem. Rep." ], [ "Congo, Dem. Rep." ], [ "Congo, Dem. Rep." ], [ "Congo, Dem. Rep." ], [ "Congo, Dem. Rep." ], [ "Congo, Dem. Rep." ], [ "Congo, Dem. Rep." ], [ "Congo, Dem. Rep." ], [ "Congo, Rep." ], [ "Congo, Rep." ], [ "Congo, Rep." ], [ "Congo, Rep." ], [ "Congo, Rep." ], [ "Congo, Rep." ], [ "Congo, Rep." ], [ "Congo, Rep." ], [ "Congo, Rep." ], [ "Congo, Rep." ], [ "Congo, Rep." ], [ "Congo, Rep." ], [ "Costa Rica" ], [ "Costa Rica" ], [ "Costa Rica" ], [ "Costa Rica" ], [ "Costa Rica" ], [ "Costa Rica" ], [ "Costa Rica" ], [ "Costa Rica" ], [ "Costa Rica" ], [ "Costa Rica" ], [ "Costa Rica" ], [ "Costa Rica" ], [ "Cote d'Ivoire" ], [ "Cote d'Ivoire" ], [ "Cote d'Ivoire" ], [ "Cote d'Ivoire" ], [ "Cote d'Ivoire" ], [ "Cote d'Ivoire" ], [ "Cote d'Ivoire" ], [ "Cote d'Ivoire" ], [ "Cote d'Ivoire" ], [ "Cote d'Ivoire" ], [ "Cote d'Ivoire" ], [ "Cote d'Ivoire" ], [ "Croatia" ], [ "Croatia" ], [ "Croatia" ], [ "Croatia" ], [ "Croatia" ], [ "Croatia" ], [ "Croatia" ], [ "Croatia" ], [ "Croatia" ], [ "Croatia" ], [ "Croatia" ], [ "Croatia" ], [ "Cuba" ], [ "Cuba" ], [ "Cuba" ], [ "Cuba" ], [ "Cuba" ], [ "Cuba" ], [ "Cuba" ], [ "Cuba" ], [ "Cuba" ], [ "Cuba" ], [ "Cuba" ], [ "Cuba" ], [ "Czech Republic" ], [ "Czech Republic" ], [ "Czech Republic" ], [ "Czech Republic" ], [ "Czech Republic" ], [ "Czech Republic" ], [ "Czech Republic" ], [ "Czech Republic" ], [ "Czech Republic" ], [ "Czech Republic" ], [ "Czech Republic" ], [ "Czech Republic" ], [ "Denmark" ], [ "Denmark" ], [ "Denmark" ], [ "Denmark" ], [ "Denmark" ], [ "Denmark" ], [ "Denmark" ], [ "Denmark" ], [ "Denmark" ], [ "Denmark" ], [ "Denmark" ], [ "Denmark" ], [ "Djibouti" ], [ "Djibouti" ], [ "Djibouti" ], [ "Djibouti" ], [ "Djibouti" ], [ "Djibouti" ], [ "Djibouti" ], [ "Djibouti" ], [ "Djibouti" ], [ "Djibouti" ], [ "Djibouti" ], [ "Djibouti" ], [ "Dominican Republic" ], [ "Dominican Republic" ], [ "Dominican Republic" ], [ "Dominican Republic" ], [ "Dominican Republic" ], [ "Dominican Republic" ], [ "Dominican Republic" ], [ "Dominican Republic" ], [ "Dominican Republic" ], [ "Dominican Republic" ], [ "Dominican Republic" ], [ "Dominican Republic" ], [ "Ecuador" ], [ "Ecuador" ], [ "Ecuador" ], [ "Ecuador" ], [ "Ecuador" ], [ "Ecuador" ], [ "Ecuador" ], [ "Ecuador" ], [ "Ecuador" ], [ "Ecuador" ], [ "Ecuador" ], [ "Ecuador" ], [ "Egypt" ], [ "Egypt" ], [ "Egypt" ], [ "Egypt" ], [ "Egypt" ], [ "Egypt" ], [ "Egypt" ], [ "Egypt" ], [ "Egypt" ], [ "Egypt" ], [ "Egypt" ], [ "Egypt" ], [ "El Salvador" ], [ "El Salvador" ], [ "El Salvador" ], [ "El Salvador" ], [ "El Salvador" ], [ "El Salvador" ], [ "El Salvador" ], [ "El Salvador" ], [ "El Salvador" ], [ "El Salvador" ], [ "El Salvador" ], [ "El Salvador" ], [ "Equatorial Guinea" ], [ "Equatorial Guinea" ], [ "Equatorial Guinea" ], [ "Equatorial Guinea" ], [ "Equatorial Guinea" ], [ "Equatorial Guinea" ], [ "Equatorial Guinea" ], [ "Equatorial Guinea" ], [ "Equatorial Guinea" ], [ "Equatorial Guinea" ], [ "Equatorial Guinea" ], [ "Equatorial Guinea" ], [ "Eritrea" ], [ "Eritrea" ], [ "Eritrea" ], [ "Eritrea" ], [ "Eritrea" ], [ "Eritrea" ], [ "Eritrea" ], [ "Eritrea" ], [ "Eritrea" ], [ "Eritrea" ], [ "Eritrea" ], [ "Eritrea" ], [ "Ethiopia" ], [ "Ethiopia" ], [ "Ethiopia" ], [ "Ethiopia" ], [ "Ethiopia" ], [ "Ethiopia" ], [ "Ethiopia" ], [ "Ethiopia" ], [ "Ethiopia" ], [ "Ethiopia" ], [ "Ethiopia" ], [ "Ethiopia" ], [ "Finland" ], [ "Finland" ], [ "Finland" ], [ "Finland" ], [ "Finland" ], [ "Finland" ], [ "Finland" ], [ "Finland" ], [ "Finland" ], [ "Finland" ], [ "Finland" ], [ "Finland" ], [ "France" ], [ "France" ], [ "France" ], [ "France" ], [ "France" ], [ "France" ], [ "France" ], [ "France" ], [ "France" ], [ "France" ], [ "France" ], [ "France" ], [ "Gabon" ], [ "Gabon" ], [ "Gabon" ], [ "Gabon" ], [ "Gabon" ], [ "Gabon" ], [ "Gabon" ], [ "Gabon" ], [ "Gabon" ], [ "Gabon" ], [ "Gabon" ], [ "Gabon" ], [ "Gambia" ], [ "Gambia" ], [ "Gambia" ], [ "Gambia" ], [ "Gambia" ], [ "Gambia" ], [ "Gambia" ], [ "Gambia" ], [ "Gambia" ], [ "Gambia" ], [ "Gambia" ], [ "Gambia" ], [ "Germany" ], [ "Germany" ], [ "Germany" ], [ "Germany" ], [ "Germany" ], [ "Germany" ], [ "Germany" ], [ "Germany" ], [ "Germany" ], [ "Germany" ], [ "Germany" ], [ "Germany" ], [ "Ghana" ], [ "Ghana" ], [ "Ghana" ], [ "Ghana" ], [ "Ghana" ], [ "Ghana" ], [ "Ghana" ], [ "Ghana" ], [ "Ghana" ], [ "Ghana" ], [ "Ghana" ], [ "Ghana" ], [ "Greece" ], [ "Greece" ], [ "Greece" ], [ "Greece" ], [ "Greece" ], [ "Greece" ], [ "Greece" ], [ "Greece" ], [ "Greece" ], [ "Greece" ], [ "Greece" ], [ "Greece" ], [ "Guatemala" ], [ "Guatemala" ], [ "Guatemala" ], [ "Guatemala" ], [ "Guatemala" ], [ "Guatemala" ], [ "Guatemala" ], [ "Guatemala" ], [ "Guatemala" ], [ "Guatemala" ], [ "Guatemala" ], [ "Guatemala" ], [ "Guinea" ], [ "Guinea" ], [ "Guinea" ], [ "Guinea" ], [ "Guinea" ], [ "Guinea" ], [ "Guinea" ], [ "Guinea" ], [ "Guinea" ], [ "Guinea" ], [ "Guinea" ], [ "Guinea" ], [ "Guinea-Bissau" ], [ "Guinea-Bissau" ], [ "Guinea-Bissau" ], [ "Guinea-Bissau" ], [ "Guinea-Bissau" ], [ "Guinea-Bissau" ], [ "Guinea-Bissau" ], [ "Guinea-Bissau" ], [ "Guinea-Bissau" ], [ "Guinea-Bissau" ], [ "Guinea-Bissau" ], [ "Guinea-Bissau" ], [ "Haiti" ], [ "Haiti" ], [ "Haiti" ], [ "Haiti" ], [ "Haiti" ], [ "Haiti" ], [ "Haiti" ], [ "Haiti" ], [ "Haiti" ], [ "Haiti" ], [ "Haiti" ], [ "Haiti" ], [ "Honduras" ], [ "Honduras" ], [ "Honduras" ], [ "Honduras" ], [ "Honduras" ], [ "Honduras" ], [ "Honduras" ], [ "Honduras" ], [ "Honduras" ], [ "Honduras" ], [ "Honduras" ], [ "Honduras" ], [ "Hong Kong, China" ], [ "Hong Kong, China" ], [ "Hong Kong, China" ], [ "Hong Kong, China" ], [ "Hong Kong, China" ], [ "Hong Kong, China" ], [ "Hong Kong, China" ], [ "Hong Kong, China" ], [ "Hong Kong, China" ], [ "Hong Kong, China" ], [ "Hong Kong, China" ], [ "Hong Kong, China" ], [ "Hungary" ], [ "Hungary" ], [ "Hungary" ], [ "Hungary" ], [ "Hungary" ], [ "Hungary" ], [ "Hungary" ], [ "Hungary" ], [ "Hungary" ], [ "Hungary" ], [ "Hungary" ], [ "Hungary" ], [ "Iceland" ], [ "Iceland" ], [ "Iceland" ], [ "Iceland" ], [ "Iceland" ], [ "Iceland" ], [ "Iceland" ], [ "Iceland" ], [ "Iceland" ], [ "Iceland" ], [ "Iceland" ], [ "Iceland" ], [ "India" ], [ "India" ], [ "India" ], [ "India" ], [ "India" ], [ "India" ], [ "India" ], [ "India" ], [ "India" ], [ "India" ], [ "India" ], [ "India" ], [ "Indonesia" ], [ "Indonesia" ], [ "Indonesia" ], [ "Indonesia" ], [ "Indonesia" ], [ "Indonesia" ], [ "Indonesia" ], [ "Indonesia" ], [ "Indonesia" ], [ "Indonesia" ], [ "Indonesia" ], [ "Indonesia" ], [ "Iran" ], [ "Iran" ], [ "Iran" ], [ "Iran" ], [ "Iran" ], [ "Iran" ], [ "Iran" ], [ "Iran" ], [ "Iran" ], [ "Iran" ], [ "Iran" ], [ "Iran" ], [ "Iraq" ], [ "Iraq" ], [ "Iraq" ], [ "Iraq" ], [ "Iraq" ], [ "Iraq" ], [ "Iraq" ], [ "Iraq" ], [ "Iraq" ], [ "Iraq" ], [ "Iraq" ], [ "Iraq" ], [ "Ireland" ], [ "Ireland" ], [ "Ireland" ], [ "Ireland" ], [ "Ireland" ], [ "Ireland" ], [ "Ireland" ], [ "Ireland" ], [ "Ireland" ], [ "Ireland" ], [ "Ireland" ], [ "Ireland" ], [ "Israel" ], [ "Israel" ], [ "Israel" ], [ "Israel" ], [ "Israel" ], [ "Israel" ], [ "Israel" ], [ "Israel" ], [ "Israel" ], [ "Israel" ], [ "Israel" ], [ "Israel" ], [ "Italy" ], [ "Italy" ], [ "Italy" ], [ "Italy" ], [ "Italy" ], [ "Italy" ], [ "Italy" ], [ "Italy" ], [ "Italy" ], [ "Italy" ], [ "Italy" ], [ "Italy" ], [ "Jamaica" ], [ "Jamaica" ], [ "Jamaica" ], [ "Jamaica" ], [ "Jamaica" ], [ "Jamaica" ], [ "Jamaica" ], [ "Jamaica" ], [ "Jamaica" ], [ "Jamaica" ], [ "Jamaica" ], [ "Jamaica" ], [ "Japan" ], [ "Japan" ], [ "Japan" ], [ "Japan" ], [ "Japan" ], [ "Japan" ], [ "Japan" ], [ "Japan" ], [ "Japan" ], [ "Japan" ], [ "Japan" ], [ "Japan" ], [ "Jordan" ], [ "Jordan" ], [ "Jordan" ], [ "Jordan" ], [ "Jordan" ], [ "Jordan" ], [ "Jordan" ], [ "Jordan" ], [ "Jordan" ], [ "Jordan" ], [ "Jordan" ], [ "Jordan" ], [ "Kenya" ], [ "Kenya" ], [ "Kenya" ], [ "Kenya" ], [ "Kenya" ], [ "Kenya" ], [ "Kenya" ], [ "Kenya" ], [ "Kenya" ], [ "Kenya" ], [ "Kenya" ], [ "Kenya" ], [ "Korea, Dem. Rep." ], [ "Korea, Dem. Rep." ], [ "Korea, Dem. Rep." ], [ "Korea, Dem. Rep." ], [ "Korea, Dem. Rep." ], [ "Korea, Dem. Rep." ], [ "Korea, Dem. Rep." ], [ "Korea, Dem. Rep." ], [ "Korea, Dem. Rep." ], [ "Korea, Dem. Rep." ], [ "Korea, Dem. Rep." ], [ "Korea, Dem. Rep." ], [ "Korea, Rep." ], [ "Korea, Rep." ], [ "Korea, Rep." ], [ "Korea, Rep." ], [ "Korea, Rep." ], [ "Korea, Rep." ], [ "Korea, Rep." ], [ "Korea, Rep." ], [ "Korea, Rep." ], [ "Korea, Rep." ], [ "Korea, Rep." ], [ "Korea, Rep." ], [ "Kuwait" ], [ "Kuwait" ], [ "Kuwait" ], [ "Kuwait" ], [ "Kuwait" ], [ "Kuwait" ], [ "Kuwait" ], [ "Kuwait" ], [ "Kuwait" ], [ "Kuwait" ], [ "Kuwait" ], [ "Kuwait" ], [ "Lebanon" ], [ "Lebanon" ], [ "Lebanon" ], [ "Lebanon" ], [ "Lebanon" ], [ "Lebanon" ], [ "Lebanon" ], [ "Lebanon" ], [ "Lebanon" ], [ "Lebanon" ], [ "Lebanon" ], [ "Lebanon" ], [ "Lesotho" ], [ "Lesotho" ], [ "Lesotho" ], [ "Lesotho" ], [ "Lesotho" ], [ "Lesotho" ], [ "Lesotho" ], [ "Lesotho" ], [ "Lesotho" ], [ "Lesotho" ], [ "Lesotho" ], [ "Lesotho" ], [ "Liberia" ], [ "Liberia" ], [ "Liberia" ], [ "Liberia" ], [ "Liberia" ], [ "Liberia" ], [ "Liberia" ], [ "Liberia" ], [ "Liberia" ], [ "Liberia" ], [ "Liberia" ], [ "Liberia" ], [ "Libya" ], [ "Libya" ], [ "Libya" ], [ "Libya" ], [ "Libya" ], [ "Libya" ], [ "Libya" ], [ "Libya" ], [ "Libya" ], [ "Libya" ], [ "Libya" ], [ "Libya" ], [ "Madagascar" ], [ "Madagascar" ], [ "Madagascar" ], [ "Madagascar" ], [ "Madagascar" ], [ "Madagascar" ], [ "Madagascar" ], [ "Madagascar" ], [ "Madagascar" ], [ "Madagascar" ], [ "Madagascar" ], [ "Madagascar" ], [ "Malawi" ], [ "Malawi" ], [ "Malawi" ], [ "Malawi" ], [ "Malawi" ], [ "Malawi" ], [ "Malawi" ], [ "Malawi" ], [ "Malawi" ], [ "Malawi" ], [ "Malawi" ], [ "Malawi" ], [ "Malaysia" ], [ "Malaysia" ], [ "Malaysia" ], [ "Malaysia" ], [ "Malaysia" ], [ "Malaysia" ], [ "Malaysia" ], [ "Malaysia" ], [ "Malaysia" ], [ "Malaysia" ], [ "Malaysia" ], [ "Malaysia" ], [ "Mali" ], [ "Mali" ], [ "Mali" ], [ "Mali" ], [ "Mali" ], [ "Mali" ], [ "Mali" ], [ "Mali" ], [ "Mali" ], [ "Mali" ], [ "Mali" ], [ "Mali" ], [ "Mauritania" ], [ "Mauritania" ], [ "Mauritania" ], [ "Mauritania" ], [ "Mauritania" ], [ "Mauritania" ], [ "Mauritania" ], [ "Mauritania" ], [ "Mauritania" ], [ "Mauritania" ], [ "Mauritania" ], [ "Mauritania" ], [ "Mauritius" ], [ "Mauritius" ], [ "Mauritius" ], [ "Mauritius" ], [ "Mauritius" ], [ "Mauritius" ], [ "Mauritius" ], [ "Mauritius" ], [ "Mauritius" ], [ "Mauritius" ], [ "Mauritius" ], [ "Mauritius" ], [ "Mexico" ], [ "Mexico" ], [ "Mexico" ], [ "Mexico" ], [ "Mexico" ], [ "Mexico" ], [ "Mexico" ], [ "Mexico" ], [ "Mexico" ], [ "Mexico" ], [ "Mexico" ], [ "Mexico" ], [ "Mongolia" ], [ "Mongolia" ], [ "Mongolia" ], [ "Mongolia" ], [ "Mongolia" ], [ "Mongolia" ], [ "Mongolia" ], [ "Mongolia" ], [ "Mongolia" ], [ "Mongolia" ], [ "Mongolia" ], [ "Mongolia" ], [ "Montenegro" ], [ "Montenegro" ], [ "Montenegro" ], [ "Montenegro" ], [ "Montenegro" ], [ "Montenegro" ], [ "Montenegro" ], [ "Montenegro" ], [ "Montenegro" ], [ "Montenegro" ], [ "Montenegro" ], [ "Montenegro" ], [ "Morocco" ], [ "Morocco" ], [ "Morocco" ], [ "Morocco" ], [ "Morocco" ], [ "Morocco" ], [ "Morocco" ], [ "Morocco" ], [ "Morocco" ], [ "Morocco" ], [ "Morocco" ], [ "Morocco" ], [ "Mozambique" ], [ "Mozambique" ], [ "Mozambique" ], [ "Mozambique" ], [ "Mozambique" ], [ "Mozambique" ], [ "Mozambique" ], [ "Mozambique" ], [ "Mozambique" ], [ "Mozambique" ], [ "Mozambique" ], [ "Mozambique" ], [ "Myanmar" ], [ "Myanmar" ], [ "Myanmar" ], [ "Myanmar" ], [ "Myanmar" ], [ "Myanmar" ], [ "Myanmar" ], [ "Myanmar" ], [ "Myanmar" ], [ "Myanmar" ], [ "Myanmar" ], [ "Myanmar" ], [ "Namibia" ], [ "Namibia" ], [ "Namibia" ], [ "Namibia" ], [ "Namibia" ], [ "Namibia" ], [ "Namibia" ], [ "Namibia" ], [ "Namibia" ], [ "Namibia" ], [ "Namibia" ], [ "Namibia" ], [ "Nepal" ], [ "Nepal" ], [ "Nepal" ], [ "Nepal" ], [ "Nepal" ], [ "Nepal" ], [ "Nepal" ], [ "Nepal" ], [ "Nepal" ], [ "Nepal" ], [ "Nepal" ], [ "Nepal" ], [ "Netherlands" ], [ "Netherlands" ], [ "Netherlands" ], [ "Netherlands" ], [ "Netherlands" ], [ "Netherlands" ], [ "Netherlands" ], [ "Netherlands" ], [ "Netherlands" ], [ "Netherlands" ], [ "Netherlands" ], [ "Netherlands" ], [ "New Zealand" ], [ "New Zealand" ], [ "New Zealand" ], [ "New Zealand" ], [ "New Zealand" ], [ "New Zealand" ], [ "New Zealand" ], [ "New Zealand" ], [ "New Zealand" ], [ "New Zealand" ], [ "New Zealand" ], [ "New Zealand" ], [ "Nicaragua" ], [ "Nicaragua" ], [ "Nicaragua" ], [ "Nicaragua" ], [ "Nicaragua" ], [ "Nicaragua" ], [ "Nicaragua" ], [ "Nicaragua" ], [ "Nicaragua" ], [ "Nicaragua" ], [ "Nicaragua" ], [ "Nicaragua" ], [ "Niger" ], [ "Niger" ], [ "Niger" ], [ "Niger" ], [ "Niger" ], [ "Niger" ], [ "Niger" ], [ "Niger" ], [ "Niger" ], [ "Niger" ], [ "Niger" ], [ "Niger" ], [ "Nigeria" ], [ "Nigeria" ], [ "Nigeria" ], [ "Nigeria" ], [ "Nigeria" ], [ "Nigeria" ], [ "Nigeria" ], [ "Nigeria" ], [ "Nigeria" ], [ "Nigeria" ], [ "Nigeria" ], [ "Nigeria" ], [ "Norway" ], [ "Norway" ], [ "Norway" ], [ "Norway" ], [ "Norway" ], [ "Norway" ], [ "Norway" ], [ "Norway" ], [ "Norway" ], [ "Norway" ], [ "Norway" ], [ "Norway" ], [ "Oman" ], [ "Oman" ], [ "Oman" ], [ "Oman" ], [ "Oman" ], [ "Oman" ], [ "Oman" ], [ "Oman" ], [ "Oman" ], [ "Oman" ], [ "Oman" ], [ "Oman" ], [ "Pakistan" ], [ "Pakistan" ], [ "Pakistan" ], [ "Pakistan" ], [ "Pakistan" ], [ "Pakistan" ], [ "Pakistan" ], [ "Pakistan" ], [ "Pakistan" ], [ "Pakistan" ], [ "Pakistan" ], [ "Pakistan" ], [ "Panama" ], [ "Panama" ], [ "Panama" ], [ "Panama" ], [ "Panama" ], [ "Panama" ], [ "Panama" ], [ "Panama" ], [ "Panama" ], [ "Panama" ], [ "Panama" ], [ "Panama" ], [ "Paraguay" ], [ "Paraguay" ], [ "Paraguay" ], [ "Paraguay" ], [ "Paraguay" ], [ "Paraguay" ], [ "Paraguay" ], [ "Paraguay" ], [ "Paraguay" ], [ "Paraguay" ], [ "Paraguay" ], [ "Paraguay" ], [ "Peru" ], [ "Peru" ], [ "Peru" ], [ "Peru" ], [ "Peru" ], [ "Peru" ], [ "Peru" ], [ "Peru" ], [ "Peru" ], [ "Peru" ], [ "Peru" ], [ "Peru" ], [ "Philippines" ], [ "Philippines" ], [ "Philippines" ], [ "Philippines" ], [ "Philippines" ], [ "Philippines" ], [ "Philippines" ], [ "Philippines" ], [ "Philippines" ], [ "Philippines" ], [ "Philippines" ], [ "Philippines" ], [ "Poland" ], [ "Poland" ], [ "Poland" ], [ "Poland" ], [ "Poland" ], [ "Poland" ], [ "Poland" ], [ "Poland" ], [ "Poland" ], [ "Poland" ], [ "Poland" ], [ "Poland" ], [ "Portugal" ], [ "Portugal" ], [ "Portugal" ], [ "Portugal" ], [ "Portugal" ], [ "Portugal" ], [ "Portugal" ], [ "Portugal" ], [ "Portugal" ], [ "Portugal" ], [ "Portugal" ], [ "Portugal" ], [ "Puerto Rico" ], [ "Puerto Rico" ], [ "Puerto Rico" ], [ "Puerto Rico" ], [ "Puerto Rico" ], [ "Puerto Rico" ], [ "Puerto Rico" ], [ "Puerto Rico" ], [ "Puerto Rico" ], [ "Puerto Rico" ], [ "Puerto Rico" ], [ "Puerto Rico" ], [ "Reunion" ], [ "Reunion" ], [ "Reunion" ], [ "Reunion" ], [ "Reunion" ], [ "Reunion" ], [ "Reunion" ], [ "Reunion" ], [ "Reunion" ], [ "Reunion" ], [ "Reunion" ], [ "Reunion" ], [ "Romania" ], [ "Romania" ], [ "Romania" ], [ "Romania" ], [ "Romania" ], [ "Romania" ], [ "Romania" ], [ "Romania" ], [ "Romania" ], [ "Romania" ], [ "Romania" ], [ "Romania" ], [ "Rwanda" ], [ "Rwanda" ], [ "Rwanda" ], [ "Rwanda" ], [ "Rwanda" ], [ "Rwanda" ], [ "Rwanda" ], [ "Rwanda" ], [ "Rwanda" ], [ "Rwanda" ], [ "Rwanda" ], [ "Rwanda" ], [ "Sao Tome and Principe" ], [ "Sao Tome and Principe" ], [ "Sao Tome and Principe" ], [ "Sao Tome and Principe" ], [ "Sao Tome and Principe" ], [ "Sao Tome and Principe" ], [ "Sao Tome and Principe" ], [ "Sao Tome and Principe" ], [ "Sao Tome and Principe" ], [ "Sao Tome and Principe" ], [ "Sao Tome and Principe" ], [ "Sao Tome and Principe" ], [ "Saudi Arabia" ], [ "Saudi Arabia" ], [ "Saudi Arabia" ], [ "Saudi Arabia" ], [ "Saudi Arabia" ], [ "Saudi Arabia" ], [ "Saudi Arabia" ], [ "Saudi Arabia" ], [ "Saudi Arabia" ], [ "Saudi Arabia" ], [ "Saudi Arabia" ], [ "Saudi Arabia" ], [ "Senegal" ], [ "Senegal" ], [ "Senegal" ], [ "Senegal" ], [ "Senegal" ], [ "Senegal" ], [ "Senegal" ], [ "Senegal" ], [ "Senegal" ], [ "Senegal" ], [ "Senegal" ], [ "Senegal" ], [ "Serbia" ], [ "Serbia" ], [ "Serbia" ], [ "Serbia" ], [ "Serbia" ], [ "Serbia" ], [ "Serbia" ], [ "Serbia" ], [ "Serbia" ], [ "Serbia" ], [ "Serbia" ], [ "Serbia" ], [ "Sierra Leone" ], [ "Sierra Leone" ], [ "Sierra Leone" ], [ "Sierra Leone" ], [ "Sierra Leone" ], [ "Sierra Leone" ], [ "Sierra Leone" ], [ "Sierra Leone" ], [ "Sierra Leone" ], [ "Sierra Leone" ], [ "Sierra Leone" ], [ "Sierra Leone" ], [ "Singapore" ], [ "Singapore" ], [ "Singapore" ], [ "Singapore" ], [ "Singapore" ], [ "Singapore" ], [ "Singapore" ], [ "Singapore" ], [ "Singapore" ], [ "Singapore" ], [ "Singapore" ], [ "Singapore" ], [ "Slovak Republic" ], [ "Slovak Republic" ], [ "Slovak Republic" ], [ "Slovak Republic" ], [ "Slovak Republic" ], [ "Slovak Republic" ], [ "Slovak Republic" ], [ "Slovak Republic" ], [ "Slovak Republic" ], [ "Slovak Republic" ], [ "Slovak Republic" ], [ "Slovak Republic" ], [ "Slovenia" ], [ "Slovenia" ], [ "Slovenia" ], [ "Slovenia" ], [ "Slovenia" ], [ "Slovenia" ], [ "Slovenia" ], [ "Slovenia" ], [ "Slovenia" ], [ "Slovenia" ], [ "Slovenia" ], [ "Slovenia" ], [ "Somalia" ], [ "Somalia" ], [ "Somalia" ], [ "Somalia" ], [ "Somalia" ], [ "Somalia" ], [ "Somalia" ], [ "Somalia" ], [ "Somalia" ], [ "Somalia" ], [ "Somalia" ], [ "Somalia" ], [ "South Africa" ], [ "South Africa" ], [ "South Africa" ], [ "South Africa" ], [ "South Africa" ], [ "South Africa" ], [ "South Africa" ], [ "South Africa" ], [ "South Africa" ], [ "South Africa" ], [ "South Africa" ], [ "South Africa" ], [ "Spain" ], [ "Spain" ], [ "Spain" ], [ "Spain" ], [ "Spain" ], [ "Spain" ], [ "Spain" ], [ "Spain" ], [ "Spain" ], [ "Spain" ], [ "Spain" ], [ "Spain" ], [ "Sri Lanka" ], [ "Sri Lanka" ], [ "Sri Lanka" ], [ "Sri Lanka" ], [ "Sri Lanka" ], [ "Sri Lanka" ], [ "Sri Lanka" ], [ "Sri Lanka" ], [ "Sri Lanka" ], [ "Sri Lanka" ], [ "Sri Lanka" ], [ "Sri Lanka" ], [ "Sudan" ], [ "Sudan" ], [ "Sudan" ], [ "Sudan" ], [ "Sudan" ], [ "Sudan" ], [ "Sudan" ], [ "Sudan" ], [ "Sudan" ], [ "Sudan" ], [ "Sudan" ], [ "Sudan" ], [ "Swaziland" ], [ "Swaziland" ], [ "Swaziland" ], [ "Swaziland" ], [ "Swaziland" ], [ "Swaziland" ], [ "Swaziland" ], [ "Swaziland" ], [ "Swaziland" ], [ "Swaziland" ], [ "Swaziland" ], [ "Swaziland" ], [ "Sweden" ], [ "Sweden" ], [ "Sweden" ], [ "Sweden" ], [ "Sweden" ], [ "Sweden" ], [ "Sweden" ], [ "Sweden" ], [ "Sweden" ], [ "Sweden" ], [ "Sweden" ], [ "Sweden" ], [ "Switzerland" ], [ "Switzerland" ], [ "Switzerland" ], [ "Switzerland" ], [ "Switzerland" ], [ "Switzerland" ], [ "Switzerland" ], [ "Switzerland" ], [ "Switzerland" ], [ "Switzerland" ], [ "Switzerland" ], [ "Switzerland" ], [ "Syria" ], [ "Syria" ], [ "Syria" ], [ "Syria" ], [ "Syria" ], [ "Syria" ], [ "Syria" ], [ "Syria" ], [ "Syria" ], [ "Syria" ], [ "Syria" ], [ "Syria" ], [ "Taiwan" ], [ "Taiwan" ], [ "Taiwan" ], [ "Taiwan" ], [ "Taiwan" ], [ "Taiwan" ], [ "Taiwan" ], [ "Taiwan" ], [ "Taiwan" ], [ "Taiwan" ], [ "Taiwan" ], [ "Taiwan" ], [ "Tanzania" ], [ "Tanzania" ], [ "Tanzania" ], [ "Tanzania" ], [ "Tanzania" ], [ "Tanzania" ], [ "Tanzania" ], [ "Tanzania" ], [ "Tanzania" ], [ "Tanzania" ], [ "Tanzania" ], [ "Tanzania" ], [ "Thailand" ], [ "Thailand" ], [ "Thailand" ], [ "Thailand" ], [ "Thailand" ], [ "Thailand" ], [ "Thailand" ], [ "Thailand" ], [ "Thailand" ], [ "Thailand" ], [ "Thailand" ], [ "Thailand" ], [ "Togo" ], [ "Togo" ], [ "Togo" ], [ "Togo" ], [ "Togo" ], [ "Togo" ], [ "Togo" ], [ "Togo" ], [ "Togo" ], [ "Togo" ], [ "Togo" ], [ "Togo" ], [ "Trinidad and Tobago" ], [ "Trinidad and Tobago" ], [ "Trinidad and Tobago" ], [ "Trinidad and Tobago" ], [ "Trinidad and Tobago" ], [ "Trinidad and Tobago" ], [ "Trinidad and Tobago" ], [ "Trinidad and Tobago" ], [ "Trinidad and Tobago" ], [ "Trinidad and Tobago" ], [ "Trinidad and Tobago" ], [ "Trinidad and Tobago" ], [ "Tunisia" ], [ "Tunisia" ], [ "Tunisia" ], [ "Tunisia" ], [ "Tunisia" ], [ "Tunisia" ], [ "Tunisia" ], [ "Tunisia" ], [ "Tunisia" ], [ "Tunisia" ], [ "Tunisia" ], [ "Tunisia" ], [ "Turkey" ], [ "Turkey" ], [ "Turkey" ], [ "Turkey" ], [ "Turkey" ], [ "Turkey" ], [ "Turkey" ], [ "Turkey" ], [ "Turkey" ], [ "Turkey" ], [ "Turkey" ], [ "Turkey" ], [ "Uganda" ], [ "Uganda" ], [ "Uganda" ], [ "Uganda" ], [ "Uganda" ], [ "Uganda" ], [ "Uganda" ], [ "Uganda" ], [ "Uganda" ], [ "Uganda" ], [ "Uganda" ], [ "Uganda" ], [ "United Kingdom" ], [ "United Kingdom" ], [ "United Kingdom" ], [ "United Kingdom" ], [ "United Kingdom" ], [ "United Kingdom" ], [ "United Kingdom" ], [ "United Kingdom" ], [ "United Kingdom" ], [ "United Kingdom" ], [ "United Kingdom" ], [ "United Kingdom" ], [ "United States" ], [ "United States" ], [ "United States" ], [ "United States" ], [ "United States" ], [ "United States" ], [ "United States" ], [ "United States" ], [ "United States" ], [ "United States" ], [ "United States" ], [ "United States" ], [ "Uruguay" ], [ "Uruguay" ], [ "Uruguay" ], [ "Uruguay" ], [ "Uruguay" ], [ "Uruguay" ], [ "Uruguay" ], [ "Uruguay" ], [ "Uruguay" ], [ "Uruguay" ], [ "Uruguay" ], [ "Uruguay" ], [ "Venezuela" ], [ "Venezuela" ], [ "Venezuela" ], [ "Venezuela" ], [ "Venezuela" ], [ "Venezuela" ], [ "Venezuela" ], [ "Venezuela" ], [ "Venezuela" ], [ "Venezuela" ], [ "Venezuela" ], [ "Venezuela" ], [ "Vietnam" ], [ "Vietnam" ], [ "Vietnam" ], [ "Vietnam" ], [ "Vietnam" ], [ "Vietnam" ], [ "Vietnam" ], [ "Vietnam" ], [ "Vietnam" ], [ "Vietnam" ], [ "Vietnam" ], [ "Vietnam" ], [ "West Bank and Gaza" ], [ "West Bank and Gaza" ], [ "West Bank and Gaza" ], [ "West Bank and Gaza" ], [ "West Bank and Gaza" ], [ "West Bank and Gaza" ], [ "West Bank and Gaza" ], [ "West Bank and Gaza" ], [ "West Bank and Gaza" ], [ "West Bank and Gaza" ], [ "West Bank and Gaza" ], [ "West Bank and Gaza" ], [ "Yemen, Rep." ], [ "Yemen, Rep." ], [ "Yemen, Rep." ], [ "Yemen, Rep." ], [ "Yemen, Rep." ], [ "Yemen, Rep." ], [ "Yemen, Rep." ], [ "Yemen, Rep." ], [ "Yemen, Rep." ], [ "Yemen, Rep." ], [ "Yemen, Rep." ], [ "Yemen, Rep." ], [ "Zambia" ], [ "Zambia" ], [ "Zambia" ], [ "Zambia" ], [ "Zambia" ], [ "Zambia" ], [ "Zambia" ], [ "Zambia" ], [ "Zambia" ], [ "Zambia" ], [ "Zambia" ], [ "Zambia" ], [ "Zimbabwe" ], [ "Zimbabwe" ], [ "Zimbabwe" ], [ "Zimbabwe" ], [ "Zimbabwe" ], [ "Zimbabwe" ], [ "Zimbabwe" ], [ "Zimbabwe" ], [ "Zimbabwe" ], [ "Zimbabwe" ], [ "Zimbabwe" ], [ "Zimbabwe" ] ], "hovertemplate": "year=%{x}
continent=%{y}
pop=%{z}
gdpPercap=%{marker.size}
country=%{customdata[0]}
lifeExp=%{marker.color}", "legendgroup": "", "marker": { "color": [ 28.801, 30.331999999999997, 31.997, 34.02, 36.088, 38.438, 39.854, 40.821999999999996, 41.674, 41.763000000000005, 42.129, 43.828, 55.23, 59.28, 64.82, 66.22, 67.69, 68.93, 70.42, 72, 71.581, 72.95, 75.65100000000001, 76.423, 43.077, 45.685, 48.303000000000004, 51.407, 54.518, 58.013999999999996, 61.368, 65.79899999999999, 67.744, 69.152, 70.994, 72.301, 30.015, 31.999000000000002, 34, 35.985, 37.928000000000004, 39.483000000000004, 39.942, 39.906, 40.647, 40.963, 41.003, 42.731, 62.485, 64.399, 65.142, 65.634, 67.065, 68.48100000000001, 69.942, 70.774, 71.868, 73.275, 74.34, 75.32, 69.12, 70.33, 70.93, 71.1, 71.93, 73.49, 74.74, 76.32, 77.56, 78.83, 80.37, 81.235, 66.8, 67.48, 69.54, 70.14, 70.63, 72.17, 73.18, 74.94, 76.04, 77.51, 78.98, 79.829, 50.93899999999999, 53.832, 56.923, 59.923, 63.3, 65.593, 69.05199999999999, 70.75, 72.601, 73.925, 74.795, 75.635, 37.484, 39.348, 41.216, 43.453, 45.251999999999995, 46.923, 50.00899999999999, 52.818999999999996, 56.018, 59.412, 62.013000000000005, 64.062, 68, 69.24, 70.25, 70.94, 71.44, 72.8, 73.93, 75.35, 76.46, 77.53, 78.32, 79.441, 38.223, 40.358000000000004, 42.618, 44.885, 47.013999999999996, 49.19, 50.903999999999996, 52.336999999999996, 53.919, 54.777, 54.406000000000006, 56.728, 40.414, 41.89, 43.428000000000004, 45.032, 46.714, 50.023, 53.858999999999995, 57.251000000000005, 59.957, 62.05, 63.883, 65.554, 53.82, 58.45, 61.93, 64.79, 67.45, 69.86, 70.69, 71.14, 72.178, 73.244, 74.09, 74.852, 47.622, 49.618, 51.52, 53.298, 56.023999999999994, 59.318999999999996, 61.483999999999995, 63.622, 62.745, 52.556000000000004, 46.63399999999999, 50.728, 50.917, 53.285, 55.665, 57.632, 59.504, 61.489, 63.336000000000006, 65.205, 67.057, 69.388, 71.006, 72.39, 59.6, 66.61, 69.51, 70.42, 70.9, 70.81, 71.08, 71.34, 71.19, 70.32, 72.14, 73.005, 31.975, 34.906, 37.814, 40.696999999999996, 43.591, 46.137, 48.122, 49.556999999999995, 50.26, 50.324, 50.65, 52.295, 39.031, 40.533, 42.045, 43.548, 44.056999999999995, 45.91, 47.471000000000004, 48.211000000000006, 44.736000000000004, 45.326, 47.36, 49.58, 39.417, 41.36600000000001, 43.415, 45.415, 40.317, 31.22, 50.957, 53.913999999999994, 55.803000000000004, 56.534, 56.751999999999995, 59.723, 38.523, 40.428000000000004, 42.643, 44.799, 47.049, 49.355, 52.961000000000006, 54.985, 54.31399999999999, 52.199, 49.856, 50.43, 68.75, 69.96, 71.3, 72.13, 72.88, 74.21, 75.76, 76.86, 77.95, 78.61, 79.77, 80.653, 35.463, 37.464, 39.475, 41.478, 43.457, 46.775, 48.295, 50.485, 49.396, 46.066, 43.308, 44.74100000000001, 38.092, 39.881, 41.716, 43.601000000000006, 45.568999999999996, 47.383, 49.516999999999996, 51.051, 51.724, 51.573, 50.525, 50.651, 54.745, 56.074, 57.924, 60.523, 63.441, 67.05199999999999, 70.565, 72.492, 74.126, 75.816, 77.86, 78.553, 44, 50.54896, 44.50136, 58.381119999999996, 63.118880000000004, 63.96736, 65.525, 67.274, 68.69, 70.426, 72.028, 72.961, 50.643, 55.118, 57.863, 59.963, 61.623000000000005, 63.836999999999996, 66.653, 67.768, 68.421, 70.313, 71.682, 72.889, 40.715, 42.46, 44.467, 46.472, 48.943999999999996, 50.93899999999999, 52.933, 54.926, 57.93899999999999, 60.66, 62.974, 65.152, 39.143, 40.652, 42.122, 44.056000000000004, 45.989, 47.803999999999995, 47.784, 47.412, 45.548, 42.586999999999996, 44.966, 46.461999999999996, 42.111000000000004, 45.053000000000004, 48.435, 52.04, 54.907, 55.625, 56.695, 57.47, 56.433, 52.961999999999996, 52.97, 55.321999999999996, 57.206, 60.026, 62.842, 65.42399999999999, 67.84899999999999, 70.75, 73.45, 74.752, 75.71300000000001, 77.26, 78.123, 78.782, 40.477, 42.468999999999994, 44.93, 47.35, 49.801, 52.373999999999995, 53.983000000000004, 54.655, 52.044, 47.99100000000001, 46.832, 48.328, 61.21, 64.77, 67.13, 68.5, 69.61, 70.64, 70.46, 71.52, 72.527, 73.68, 74.876, 75.748, 59.42100000000001, 62.325, 65.24600000000001, 68.29, 70.723, 72.649, 73.717, 74.17399999999999, 74.414, 76.15100000000001, 77.158, 78.273, 66.87, 69.03, 69.9, 70.38, 70.29, 70.71, 70.96, 71.58, 72.4, 74.01, 75.51, 76.486, 70.78, 71.81, 72.35, 72.96, 73.47, 74.69, 74.63, 74.8, 75.33, 76.11, 77.18, 78.332, 34.812, 37.328, 39.693000000000005, 42.074, 44.36600000000001, 46.519, 48.812, 50.04, 51.604, 53.157, 53.373000000000005, 54.791000000000004, 45.928000000000004, 49.828, 53.458999999999996, 56.751000000000005, 59.631, 61.788000000000004, 63.727, 66.046, 68.457, 69.957, 70.847, 72.235, 48.357, 51.356, 54.64, 56.678000000000004, 58.79600000000001, 61.31, 64.342, 67.23100000000001, 69.613, 72.312, 74.173, 74.994, 41.893, 44.443999999999996, 46.992, 49.293, 51.137, 53.318999999999996, 56.006, 59.797, 63.674, 67.217, 69.806, 71.33800000000001, 45.262, 48.57, 52.306999999999995, 55.855, 58.207, 56.696000000000005, 56.604, 63.153999999999996, 66.798, 69.535, 70.734, 71.878, 34.482, 35.983000000000004, 37.485, 38.986999999999995, 40.516, 42.023999999999994, 43.662, 45.663999999999994, 47.545, 48.245, 49.348, 51.57899999999999, 35.928000000000004, 38.047, 40.158, 42.18899999999999, 44.141999999999996, 44.535, 43.89, 46.453, 49.99100000000001, 53.378, 55.24, 58.04, 34.078, 36.667, 40.059, 42.115, 43.515, 44.51, 44.916000000000004, 46.684, 48.091, 49.402, 50.725, 52.946999999999996, 66.55, 67.49, 68.75, 69.83, 70.87, 72.52, 74.55, 74.83, 75.7, 77.13, 78.37, 79.313, 67.41, 68.93, 70.51, 71.55, 72.38, 73.83, 74.89, 76.34, 77.46, 78.64, 79.59, 80.657, 37.003, 38.999, 40.489000000000004, 44.598, 48.69, 52.79, 56.56399999999999, 60.19, 61.36600000000001, 60.461000000000006, 56.761, 56.735, 30, 32.065, 33.896, 35.857, 38.308, 41.842, 45.58, 49.265, 52.644, 55.861000000000004, 58.041000000000004, 59.448, 67.5, 69.1, 70.3, 70.8, 71, 72.5, 73.8, 74.847, 76.07, 77.34, 78.67, 79.406, 43.148999999999994, 44.778999999999996, 46.452, 48.071999999999996, 49.875, 51.756, 53.744, 55.729, 57.501000000000005, 58.556000000000004, 58.453, 60.022, 65.86, 67.86, 69.51, 71, 72.34, 73.68, 75.24, 76.67, 77.03, 77.869, 78.256, 79.483, 42.023, 44.141999999999996, 46.95399999999999, 50.016000000000005, 53.738, 56.028999999999996, 58.137, 60.782, 63.373000000000005, 66.322, 68.97800000000001, 70.259, 33.609, 34.558, 35.753, 37.196999999999996, 38.842, 40.762, 42.891000000000005, 45.552, 48.576, 51.455, 53.676, 56.007, 32.5, 33.489000000000004, 34.488, 35.492, 36.486, 37.465, 39.327, 41.245, 43.266000000000005, 44.873000000000005, 45.504, 46.388000000000005, 37.579, 40.696, 43.59, 46.243, 48.042, 49.923, 51.461000000000006, 53.636, 55.089, 56.67100000000001, 58.137, 60.916000000000004, 41.912, 44.665, 48.041000000000004, 50.924, 53.88399999999999, 57.402, 60.909, 64.492, 66.399, 67.65899999999999, 68.565, 70.19800000000001, 60.96, 64.75, 67.65, 70, 72, 73.6, 75.45, 76.2, 77.601, 80, 81.495, 82.208, 64.03, 66.41, 67.96, 69.5, 69.76, 69.95, 69.39, 69.58, 69.17, 71.04, 72.59, 73.33800000000001, 72.49, 73.47, 73.68, 73.73, 74.46, 76.11, 76.99, 77.23, 78.77, 78.95, 80.5, 81.757, 37.373000000000005, 40.249, 43.605, 47.193000000000005, 50.651, 54.208, 56.596000000000004, 58.553000000000004, 60.223, 61.765, 62.879, 64.69800000000001, 37.468, 39.918, 42.518, 45.964, 49.203, 52.702, 56.159, 60.137, 62.681000000000004, 66.041, 68.58800000000001, 70.65, 44.869, 47.181000000000004, 49.325, 52.468999999999994, 55.233999999999995, 57.702, 59.62, 63.04, 65.742, 68.042, 69.45100000000001, 70.964, 45.32, 48.437, 51.457, 54.458999999999996, 56.95, 60.413000000000004, 62.038000000000004, 65.044, 59.461000000000006, 58.81100000000001, 57.04600000000001, 59.545, 66.91, 68.9, 70.29, 71.08, 71.28, 72.03, 73.1, 74.36, 75.467, 76.122, 77.783, 78.885, 65.39, 67.84, 69.39, 70.75, 71.63, 73.06, 74.45, 75.6, 76.93, 78.26899999999999, 79.696, 80.745, 65.94, 67.81, 69.24, 71.06, 72.19, 73.48, 74.98, 76.42, 77.44, 78.82, 80.24, 80.546, 58.53, 62.61, 65.61, 67.51, 69, 70.11, 71.21, 71.77, 71.766, 72.262, 72.047, 72.567, 63.03, 65.5, 68.73, 71.43, 73.42, 75.38, 77.11, 78.67, 79.36, 80.69, 82, 82.603, 43.158, 45.669, 48.126000000000005, 51.629, 56.528, 61.13399999999999, 63.739, 65.869, 68.015, 69.77199999999999, 71.263, 72.535, 42.27, 44.68600000000001, 47.949, 50.653999999999996, 53.559, 56.155, 58.766000000000005, 59.339, 59.285, 54.407, 50.992, 54.11, 50.056000000000004, 54.081, 56.656000000000006, 59.942, 63.983000000000004, 67.15899999999999, 69.1, 70.64699999999999, 69.97800000000001, 67.727, 66.66199999999999, 67.297, 47.453, 52.681000000000004, 55.292, 57.716, 62.611999999999995, 64.766, 67.123, 69.81, 72.244, 74.64699999999999, 77.045, 78.623, 55.565, 58.033, 60.47, 64.624, 67.712, 69.343, 71.309, 74.17399999999999, 75.19, 76.156, 76.904, 77.58800000000001, 55.928000000000004, 59.489, 62.093999999999994, 63.87, 65.421, 66.09899999999999, 66.983, 67.926, 69.292, 70.265, 71.028, 71.993, 42.138000000000005, 45.047, 47.747, 48.492, 49.766999999999996, 52.208, 55.078, 57.18, 59.685, 55.558, 44.593, 42.592, 38.48, 39.486, 40.501999999999995, 41.536, 42.614, 43.763999999999996, 44.852, 46.027, 40.802, 42.221000000000004, 43.753, 45.678000000000004, 42.723, 45.288999999999994, 47.808, 50.227, 52.773, 57.442, 62.155, 66.234, 68.755, 71.555, 72.737, 73.952, 36.681, 38.865, 40.848, 42.881, 44.851000000000006, 46.881, 48.968999999999994, 49.35, 52.214, 54.978, 57.286, 59.443000000000005, 36.256, 37.207, 38.41, 39.486999999999995, 41.766000000000005, 43.766999999999996, 45.641999999999996, 47.457, 49.42, 47.495, 45.00899999999999, 48.303000000000004, 48.463, 52.102, 55.736999999999995, 59.371, 63.01, 65.256, 68, 69.5, 70.693, 71.938, 73.044, 74.241, 33.685, 35.306999999999995, 36.936, 38.486999999999995, 39.977, 41.714, 43.916000000000004, 46.364, 48.388000000000005, 49.903, 51.818000000000005, 54.467, 40.543, 42.338, 44.248000000000005, 46.288999999999994, 48.437, 50.852, 53.599, 56.145, 58.333, 60.43, 62.247, 64.164, 50.986000000000004, 58.089, 60.246, 61.556999999999995, 62.943999999999996, 64.93, 66.711, 68.74, 69.745, 70.736, 71.954, 72.801, 50.788999999999994, 55.19, 58.299, 60.11, 62.361000000000004, 65.032, 67.405, 69.498, 71.455, 73.67, 74.902, 76.195, 42.244, 45.248000000000005, 48.251000000000005, 51.253, 53.754, 55.49100000000001, 57.489, 60.222, 61.271, 63.625, 65.033, 66.803, 59.163999999999994, 61.448, 63.728, 67.178, 70.63600000000001, 73.066, 74.101, 74.865, 75.435, 75.445, 73.98100000000001, 74.543, 42.873000000000005, 45.423, 47.924, 50.335, 52.861999999999995, 55.73, 59.65, 62.677, 65.393, 67.66, 69.615, 71.164, 31.285999999999998, 33.779, 36.161, 38.113, 40.328, 42.495, 42.795, 42.861000000000004, 44.284, 46.343999999999994, 44.026, 42.082, 36.319, 41.905, 45.108000000000004, 49.379, 53.07, 56.059, 58.056000000000004, 58.339, 59.32, 60.328, 59.908, 62.068999999999996, 41.725, 45.226000000000006, 48.386, 51.159, 53.867, 56.437, 58.968, 60.835, 61.998999999999995, 58.909, 51.479, 52.906000000000006, 36.157, 37.686, 39.393, 41.472, 43.971000000000004, 46.748000000000005, 49.593999999999994, 52.537, 55.727, 59.426, 61.34, 63.785, 72.13, 72.99, 73.23, 73.82, 73.75, 75.24, 76.05, 76.83, 77.42, 78.03, 78.53, 79.762, 69.39, 70.26, 71.24, 71.52, 71.89, 72.22, 73.84, 74.32, 76.33, 77.55, 79.11, 80.204, 42.31399999999999, 45.431999999999995, 48.632, 51.88399999999999, 55.151, 57.47, 59.298, 62.008, 65.843, 68.426, 70.836, 72.899, 37.444, 38.598, 39.486999999999995, 40.118, 40.546, 41.291000000000004, 42.598, 44.555, 47.391000000000005, 51.313, 54.496, 56.867, 36.324, 37.802, 39.36, 41.04, 42.821000000000005, 44.513999999999996, 45.826, 46.886, 47.472, 47.464, 46.608000000000004, 46.858999999999995, 72.67, 73.44, 73.47, 74.08, 74.34, 75.37, 75.97, 75.89, 77.32, 78.32, 79.05, 80.196, 37.578, 40.08, 43.165, 46.988, 52.143, 57.367, 62.728, 67.734, 71.197, 72.499, 74.193, 75.64, 43.43600000000001, 45.556999999999995, 47.67, 49.8, 51.928999999999995, 54.043, 56.158, 58.245, 60.838, 61.818000000000005, 63.61, 65.483, 55.191, 59.201, 61.817, 64.071, 66.21600000000001, 68.681, 70.472, 71.523, 72.462, 73.738, 74.712, 75.53699999999999, 62.648999999999994, 63.196000000000005, 64.361, 64.95100000000001, 65.815, 66.35300000000001, 66.874, 67.378, 68.225, 69.4, 70.755, 71.752, 43.902, 46.263000000000005, 49.096000000000004, 51.445, 55.448, 58.446999999999996, 61.406000000000006, 64.134, 66.458, 68.38600000000001, 69.906, 71.421, 47.751999999999995, 51.333999999999996, 54.757, 56.393, 58.065, 60.06, 62.082, 64.15100000000001, 66.458, 68.564, 70.303, 71.688, 61.31, 65.77, 67.64, 69.61, 70.85, 70.67, 71.32, 70.98, 70.99, 72.75, 74.67, 75.563, 59.82, 61.51, 64.39, 66.6, 69.26, 70.41, 72.77, 74.06, 74.86, 75.97, 77.29, 78.098, 64.28, 68.54, 69.62, 71.1, 72.16, 73.44, 73.75, 74.63, 73.911, 74.917, 77.778, 78.74600000000001, 52.724, 55.09, 57.666000000000004, 60.542, 64.274, 67.064, 69.885, 71.913, 73.615, 74.77199999999999, 75.744, 76.442, 61.05, 64.1, 66.8, 66.8, 69.21, 69.46, 69.66, 69.53, 69.36, 69.72, 71.322, 72.476, 40, 41.5, 43, 44.1, 44.6, 45, 46.218, 44.02, 23.599, 36.086999999999996, 43.413000000000004, 46.242, 46.471000000000004, 48.945, 51.893, 54.425, 56.48, 58.55, 60.351000000000006, 61.728, 62.742, 63.306000000000004, 64.337, 65.528, 39.875, 42.868, 45.913999999999994, 49.901, 53.886, 58.69, 63.012, 66.295, 68.768, 70.533, 71.626, 72.777, 37.278, 39.329, 41.45399999999999, 43.563, 45.815, 48.879, 52.379, 55.769, 58.196000000000005, 60.187, 61.6, 63.062, 57.996, 61.685, 64.531, 66.914, 68.7, 70.3, 70.16199999999999, 71.218, 71.65899999999999, 72.232, 73.21300000000001, 74.002, 30.331, 31.57, 32.766999999999996, 34.113, 35.4, 36.788000000000004, 38.445, 40.006, 38.333, 39.897, 41.012, 42.568000000000005, 60.396, 63.178999999999995, 65.798, 67.946, 69.521, 70.795, 71.76, 73.56, 75.788, 77.158, 78.77, 79.972, 64.36, 67.45, 70.33, 70.98, 70.35, 70.45, 70.8, 71.08, 71.38, 72.71, 73.8, 74.663, 65.57, 67.85, 69.15, 69.18, 69.82, 70.97, 71.063, 72.25, 73.64, 75.13, 76.66, 77.926, 32.978, 34.977, 36.981, 38.977, 40.973, 41.974, 42.955, 44.501000000000005, 39.658, 43.795, 45.93600000000001, 48.159, 45.00899999999999, 47.985, 49.951, 51.927, 53.696000000000005, 55.527, 58.161, 60.833999999999996, 61.888000000000005, 60.236000000000004, 53.365, 49.339, 64.94, 66.66, 69.69, 71.44, 73.06, 74.39, 76.3, 76.9, 77.57, 78.77, 79.78, 80.941, 57.593, 61.456, 62.192, 64.266, 65.042, 65.949, 68.757, 69.01100000000001, 70.37899999999999, 70.457, 70.815, 72.396, 38.635, 39.624, 40.87, 42.858000000000004, 45.083, 47.8, 50.338, 51.744, 53.556000000000004, 55.373000000000005, 56.369, 58.556000000000004, 41.407, 43.424, 44.992, 46.633, 49.552, 52.537, 55.56100000000001, 57.678000000000004, 58.474, 54.288999999999994, 43.869, 39.613, 71.86, 72.49, 73.37, 74.16, 74.72, 75.44, 76.42, 77.19, 78.16, 79.39, 80.04, 80.884, 69.62, 70.56, 71.32, 72.77, 73.78, 75.39, 76.21, 77.41, 78.03, 79.37, 80.62, 81.70100000000001, 45.883, 48.284, 50.305, 53.655, 57.29600000000001, 61.195, 64.59, 66.97399999999999, 69.249, 71.527, 73.053, 74.143, 58.5, 62.4, 65.2, 67.5, 69.39, 70.59, 72.16, 73.4, 74.26, 75.25, 76.99, 78.4, 41.215, 42.974, 44.246, 45.757, 47.62, 49.919, 50.608000000000004, 51.535, 50.44, 48.466, 49.651, 52.516999999999996, 50.848, 53.63, 56.06100000000001, 58.285, 60.405, 62.494, 64.597, 66.084, 67.298, 67.521, 68.564, 70.616, 38.596, 41.208, 43.922, 46.769, 49.75899999999999, 52.887, 55.471000000000004, 56.941, 58.06100000000001, 58.39, 57.56100000000001, 58.42, 59.1, 61.8, 64.9, 65.4, 65.9, 68.3, 68.832, 69.582, 69.862, 69.465, 68.976, 69.819, 44.6, 47.1, 49.57899999999999, 52.053000000000004, 55.602, 59.836999999999996, 64.048, 66.89399999999999, 70.001, 71.973, 73.042, 73.923, 43.585, 48.07899999999999, 52.098, 54.336000000000006, 57.005, 59.507, 61.036, 63.108000000000004, 66.146, 68.835, 70.845, 71.777, 39.978, 42.571000000000005, 45.343999999999994, 48.051, 51.016000000000005, 50.35, 49.849, 51.50899999999999, 48.825, 44.578, 47.813, 51.542, 69.18, 70.42, 70.76, 71.36, 72.01, 72.76, 74.04, 75.007, 76.42, 77.218, 78.471, 79.425, 68.44, 69.49, 70.21, 70.76, 71.34, 73.38, 74.65, 75.02, 76.09, 76.81, 77.31, 78.242, 66.071, 67.044, 68.253, 68.468, 68.673, 69.48100000000001, 70.805, 71.918, 72.752, 74.223, 75.307, 76.384, 55.088, 57.907, 60.77, 63.479, 65.712, 67.456, 68.557, 70.19, 71.15, 72.146, 72.766, 73.747, 40.412, 42.887, 45.363, 47.838, 50.254, 55.763999999999996, 58.816, 62.82, 67.66199999999999, 70.672, 73.017, 74.249, 43.16, 45.67100000000001, 48.126999999999995, 51.631, 56.532, 60.765, 64.406, 67.046, 69.718, 71.096, 72.37, 73.422, 32.548, 33.97, 35.18, 36.984, 39.848, 44.175, 49.113, 52.922, 55.599, 58.02, 60.308, 62.698, 42.038000000000004, 44.077, 46.023, 47.768, 50.107, 51.386, 51.821000000000005, 50.821000000000005, 46.1, 40.238, 39.193000000000005, 42.38399999999999, 48.451, 50.468999999999994, 52.358000000000004, 53.995, 55.635, 57.674, 60.363, 62.351000000000006, 60.376999999999995, 46.809, 39.989000000000004, 43.486999999999995 ], "coloraxis": "coloraxis", "size": [ 779.4453145, 820.8530296, 853.1007099999999, 836.1971382, 739.9811057999999, 786.11336, 978.0114388000001, 852.3959447999999, 649.3413952000001, 635.341351, 726.7340548, 974.5803384, 1601.056136, 1942.2842440000002, 2312.888958, 2760.196931, 3313.422188, 3533.0039100000004, 3630.880722, 3738.9327350000003, 2497.4379010000002, 3193.054604, 4604.211737, 5937.029525999999, 2449.008185, 3013.976023, 2550.81688, 3246.991771, 4182.663766, 4910.4167560000005, 5745.160213, 5681.358539, 5023.216647, 4797.295051, 5288.040382, 6223.367465, 3520.610273, 3827.9404649999997, 4269.276742, 5522.776375, 5473.288004999999, 3008.647355, 2756.953672, 2430.208311, 2627.8456850000002, 2277.140884, 2773.287312, 4797.231267, 5911.315053, 6856.856212000001, 7133.166023000001, 8052.953020999999, 9443.038526, 10079.026740000001, 8997.897412, 9139.671389, 9308.41871, 10967.28195, 8797.640716, 12779.379640000001, 10039.595640000001, 10949.64959, 12217.226859999999, 14526.12465, 16788.62948, 18334.197509999998, 19477.009280000002, 21888.889030000002, 23424.76683, 26997.936569999998, 30687.75473, 34435.367439999995, 6137.076492, 8842.59803, 10750.721109999999, 12834.6024, 16661.6256, 19749.4223, 21597.083619999998, 23687.82607, 27042.01868, 29095.920660000003, 32417.607689999997, 36126.4927, 9867.084765000001, 11635.79945, 12753.27514, 14804.6727, 18268.65839, 19340.10196, 19211.14731, 18524.02406, 19035.579169999997, 20292.01679, 23403.559269999998, 29796.048339999998, 684.2441716, 661.6374577, 686.3415537999999, 721.1860862000001, 630.2336265, 659.8772322000001, 676.9818656, 751.9794035, 837.8101642999999, 972.7700352, 1136.3904300000002, 1391.253792, 8343.105126999999, 9714.960623, 10991.20676, 13149.04119, 16672.14356, 19117.97448, 20979.84589, 22525.56308, 25575.57069, 27561.196630000002, 30485.88375, 33692.60508, 1062.7522, 959.6010805, 949.4990641, 1035.831411, 1085.796879, 1029.161251, 1277.897616, 1225.85601, 1191.207681, 1232.975292, 1372.877931, 1441.284873, 2677.3263469999997, 2127.686326, 2180.972546, 2586.886053, 2980.331339, 3548.097832, 3156.510452, 2753.6914899999997, 2961.699694, 3326.143191, 3413.26269, 3822.1370840000004, 973.5331947999999, 1353.989176, 1709.683679, 2172.3524230000003, 2860.16975, 3528.481305, 4126.613157, 4314.114757, 2546.781445, 4766.355904, 6018.975239, 7446.298803, 851.2411407, 918.2325348999999, 983.6539764, 1214.709294, 2263.6111140000003, 3214.857818, 4551.14215, 6205.88385, 7954.111645, 8647.142313, 11003.60508, 12569.851770000001, 2108.944355, 2487.365989, 3336.585802, 3429.864357, 4985.711467, 6660.118654, 7030.835878, 7807.095818000001, 6950.283020999999, 7957.980823999999, 8131.212843000001, 9065.800825, 2444.2866480000002, 3008.670727, 4254.337839, 5577.0028, 6597.494398, 7612.240438, 8224.191647, 8239.854824, 6302.6234380000005, 5970.38876, 7696.777725, 10680.79282, 543.2552413, 617.1834647999999, 722.5120206, 794.8265597, 854.7359763000001, 743.3870368, 807.1985855, 912.0631417000001, 931.7527731, 946.2949617999999, 1037.645221, 1217.032994, 339.29645869999996, 379.56462810000005, 355.2032273, 412.97751360000007, 464.0995039, 556.1032651, 559.6032309999999, 621.8188188999999, 631.6998778, 463.1151478, 446.4035126, 430.07069160000003, 368.46928560000003, 434.0383364, 496.9136476, 523.4323142, 421.6240257, 524.9721831999999, 624.4754784, 683.8955732000001, 682.3031755, 734.28517, 896.2260152999999, 1713.7786859999999, 1172.667655, 1313.048099, 1399.607441, 1508.453148, 1684.1465280000002, 1783.432873, 2367.983282, 2602.664206, 1793.1632780000002, 1694.337469, 1934.0114489999999, 2042.0952399999999, 11367.16112, 12489.95006, 13462.48555, 16076.58803, 18970.57086, 22090.88306, 22898.79214, 26626.515030000002, 26342.88426, 28954.92589, 33328.96507, 36319.235010000004, 1071.310713, 1190.844328, 1193.068753, 1136.056615, 1070.013275, 1109.374338, 956.7529906999999, 844.8763504000001, 747.9055252, 740.5063317, 738.6906068, 706.016537, 1178.665927, 1308.495577, 1389.817618, 1196.810565, 1104.103987, 1133.98495, 797.9081006, 952.3861289999999, 1058.0643, 1004.9613529999999, 1156.18186, 1704.0637239999999, 3939.9787890000002, 4315.6227229999995, 4519.094331, 5106.654313, 5494.024437, 4756.763836, 5095.665738000001, 5547.063754, 7596.125964, 10118.053179999999, 10778.78385, 13171.63885, 400.44861099999997, 575.9870009, 487.6740183, 612.7056934, 676.9000921, 741.2374699, 962.4213804999999, 1378.904018, 1655.784158, 2289.234136, 3119.280896, 4959.1148539999995, 2144.115096, 2323.805581, 2492.351109, 2678.729839, 3264.660041, 3815.80787, 4397.575659, 4903.2191, 5444.648617, 6117.3617460000005, 5755.259962, 7006.580419, 1102.990936, 1211.1485480000001, 1406.648278, 1876.029643, 1937.577675, 1172.603047, 1267.100083, 1315.980812, 1246.90737, 1173.618235, 1075.811558, 986.1478792000001, 780.5423257, 905.8602302999999, 896.3146335000001, 861.5932424, 904.8960685000001, 795.757282, 673.7478181, 672.774812, 457.7191807, 312.188423, 241.16587650000002, 277.55185869999997, 2125.621418, 2315.056572, 2464.783157, 2677.9396420000003, 3213.152683, 3259.178978, 4879.507522, 4201.194936999999, 4016.239529, 3484.1643759999997, 3484.06197, 3632.557798, 2627.0094710000003, 2990.010802, 3460.937025, 4161.727834, 5118.146939, 5926.876967, 5262.734751, 5629.915318, 6160.416317, 6677.045314, 7723.447195000001, 9645.06142, 1388.594732, 1500.895925, 1728.8694280000002, 2052.0504730000002, 2378.201111, 2517.736547, 2602.710169, 2156.9560690000003, 1648.073791, 1786.265407, 1648.800823, 1544.750112, 3119.23652, 4338.231617, 5477.890018, 6960.297861, 9164.090127, 11305.38517, 13221.82184, 13822.58394, 8447.794873, 9875.604515, 11628.38895, 14619.222719999998, 5586.53878, 6092.174359000001, 5180.75591, 5690.268015, 5305.445256, 6380.494965999999, 7316.9181069999995, 7532.924762999999, 5592.843963, 5431.990415, 6340.646683, 8948.102923, 6876.14025, 8256.343918, 10136.86713, 11399.44489, 13108.4536, 14800.160619999999, 15377.22855, 16310.4434, 14297.021219999999, 16048.51424, 17596.210219999997, 22833.30851, 9692.385245, 11099.65935, 13583.31351, 15937.21123, 18866.20721, 20422.9015, 21688.04048, 25116.17581, 26406.73985, 29804.34567, 32166.500060000002, 35278.41874, 2669.529475, 2864.9690760000003, 3020.989263, 3020.0505129999997, 3694.2123520000005, 3081.7610219999997, 2879.4680670000002, 2880.102568, 2377.1561920000004, 1895.016984, 1908.2608670000002, 2082.4815670000003, 1397.7171369999999, 1544.402995, 1662.137359, 1653.7230029999998, 2189.874499, 2681.9889, 2861.092386, 2899.842175, 3044.214214, 3614.101285, 4563.808154, 6025.374752000001, 3522.110717, 3780.5466509999997, 4086.114078, 4579.074215, 5280.99471, 6679.62326, 7213.7912670000005, 6481.776993, 7103.702595000001, 7429.455876999999, 5773.0445119999995, 6873.262326000001, 1418.822445, 1458.915272, 1693.335853, 1814.880728, 2024.0081469999998, 2785.493582, 3503.729636, 3885.4607100000003, 3794.755195, 4173.181797, 4754.604414, 5581.180998, 3048.3029, 3421.523218, 3776.8036270000002, 4358.595393, 4520.246008, 5138.922374, 4098.344175, 4140.442097, 4444.2317, 5154.825496, 5351.568665999999, 5728.353514, 375.6431231, 426.0964081, 582.8419713999999, 915.5960025, 672.4122571, 958.5668124, 927.8253427000001, 966.8968149, 1132.055034, 2814.480755, 7703.4959, 12154.08975, 328.94055710000004, 344.16188589999996, 380.99584330000005, 468.7949699, 514.3242081999999, 505.7538077, 524.8758493, 521.1341333, 582.8585102000001, 913.4707900000001, 765.3500015, 641.3695236000001, 362.1462796, 378.90416319999997, 419.4564161, 516.1186438, 566.2439442000001, 556.8083834, 577.8607471, 573.7413142000001, 421.3534653, 515.8894013, 530.0535319, 690.8055759, 6424.519071, 7545.415386, 9371.842561, 10921.63626, 14358.8759, 15605.422830000001, 18533.15761, 21141.01223, 20647.16499, 23723.9502, 28204.59057, 33207.0844, 7029.809327, 8662.834898000001, 10560.48553, 12999.91766, 16107.19171, 18292.635140000002, 20293.89746, 22066.44214, 24703.79615, 25889.78487, 28926.032339999998, 30470.0167, 4293.476475, 4976.198099, 6631.4592219999995, 8358.761987, 11401.948409999999, 21745.57328, 15113.36194, 11864.408440000001, 13522.157519999999, 14722.841880000002, 12521.71392, 13206.48452, 485.2306591, 520.9267111, 599.650276, 734.7829124, 756.0868363, 884.7552507000001, 835.8096107999999, 611.6588611000001, 665.6244126, 653.7301704, 660.5855997, 752.7497265, 7144.114393000001, 10187.82665, 12902.46291, 14745.62561, 18016.180269999997, 20512.92123, 22031.532740000002, 24639.18566, 26505.30317, 27788.88416, 30035.80198, 32170.37442, 911.2989371, 1043.5615369999998, 1190.0411179999999, 1125.69716, 1178.223708, 993.2239571, 876.032569, 847.0061135, 925.0601539999999, 1005.2458119999999, 1111.9845779999998, 1327.60891, 3530.690067, 4916.299889, 6017.190732999999, 8513.097016, 12724.82957, 14195.524280000001, 15268.420890000001, 16120.528390000001, 17541.49634, 18747.69814, 22514.2548, 27538.41188, 2428.2377690000003, 2617.155967, 2750.364446, 3242.5311469999997, 4031.4082710000002, 4879.992748, 4820.49479, 4246.485974, 4439.4508399999995, 4684.313807, 4858.347495, 5186.050003, 510.19649230000005, 576.2670245, 686.3736739, 708.7595409, 741.6662307, 874.6858642999999, 857.2503577, 805.5724717999999, 794.3484384, 869.4497667999999, 945.5835837000001, 942.6542111, 299.850319, 431.7904566000001, 522.0343725, 715.5806402000001, 820.2245876000001, 764.7259627999999, 838.1239671, 736.4153921, 745.5398706, 796.6644681, 575.7047176, 579.2317429999999, 1840.366939, 1726.887882, 1796.589032, 1452.057666, 1654.456946, 1874.2989309999998, 2011.1595489999997, 1823.015995, 1456.309517, 1341.7269310000001, 1270.364932, 1201.637154, 2194.926204, 2220.487682, 2291.1568350000002, 2538.269358, 2529.842345, 3203.208066, 3121.7607940000003, 3023.0966989999997, 3081.694603, 3160.454906, 3099.72866, 3548.3308460000003, 3054.421209, 3629.076457, 4692.648271999999, 6197.962814, 8315.928145, 11186.14125, 14560.530509999999, 20038.472690000002, 24757.60301, 28377.632189999997, 30209.015160000003, 39724.97867, 5263.6738159999995, 6040.180011, 7550.359877, 9326.64467, 10168.65611, 11674.837370000001, 12545.99066, 12986.47998, 10535.62855, 11712.7768, 14843.93556, 18008.94444, 7267.688428, 9244.001412, 10350.15906, 13319.89568, 15798.063619999999, 19654.96247, 23269.6075, 26923.206280000002, 25144.39201, 28061.099660000003, 31163.201960000002, 36180.789189999996, 546.5657493, 590.061996, 658.3471509, 700.7706107000001, 724.032527, 813.3373230000001, 855.7235377000001, 976.5126756000001, 1164.406809, 1458.817442, 1746.769454, 2452.210407, 749.6816546, 858.9002707000001, 849.2897700999999, 762.4317721, 1111.107907, 1382.702056, 1516.872988, 1748.356961, 2383.140898, 3119.335603, 2873.91287, 3540.6515640000002, 3035.326002, 3290.257643, 4187.329802, 5906.731804999999, 9613.818607, 11888.59508, 7608.334602, 6642.881371, 7235.653187999999, 8263.590301, 9240.761975, 11605.71449, 4129.766056, 6229.333562, 8341.737815, 8931.459811, 9576.037596, 14688.235069999999, 14517.90711, 11643.57268, 3745.6406869999996, 3076.239795, 4390.717312, 4471.061906, 5210.280328, 5599.077872, 6631.597314, 7655.568963, 9530.772895999999, 11150.98113, 12618.321409999999, 13872.86652, 17558.81555, 24521.94713, 34077.04939, 40675.99635, 4086.522128, 5385.278451, 7105.630706, 8393.741404, 12786.93223, 13306.619209999999, 15367.0292, 17122.47986, 18051.52254, 20896.60924, 21905.59514, 25523.2771, 4931.404154999999, 6248.656232, 8243.58234, 10022.40131, 12269.27378, 14255.98475, 16537.4835, 19207.234819999998, 22013.64486, 24675.02446, 27968.098169999997, 28569.7197, 2898.5308809999997, 4756.525781, 5246.107524, 6124.703450999999, 7433.889293000001, 6650.195573, 6068.05135, 6351.237495, 7404.923685, 7121.924704000001, 6994.774861, 7320.880262000001, 3216.956347, 4317.694365, 6576.649461, 9847.788606999999, 14778.78636, 16610.37701, 19384.10571, 22375.941890000002, 26824.895109999998, 28816.58499, 28604.5919, 31656.06806, 1546.907807, 1886.080591, 2348.009158, 2741.796252, 2110.856309, 2852.351568, 4161.415959, 4448.679912, 3431.5936469999997, 3645.379572, 3844.9171939999997, 4519.461171, 853.5409189999999, 944.4383152, 896.9663732, 1056.736457, 1222.359968, 1267.613204, 1348.225791, 1361.936856, 1341.9217210000002, 1360.4850210000002, 1287.514732, 1463.249282, 1088.277758, 1571.134655, 1621.693598, 2143.540609, 3701.6215030000003, 4106.301249, 4106.525293, 4106.4923149999995, 3726.063507, 1690.756814, 1646.758151, 1593.06548, 1030.592226, 1487.593537, 1536.3443869999999, 2029.2281420000002, 3030.87665, 4657.22102, 5622.942464, 8533.088805, 12104.27872, 15993.52796, 19233.98818, 23348.139730000003, 108382.3529, 113523.1329, 95458.11176, 80894.88326, 109347.867, 59265.477139999995, 31354.03573, 28118.42998, 34932.91959, 40300.61996, 35110.10566, 47306.98978, 4834.804067, 6089.786934000001, 5714.560611, 6006.983042, 7486.384341, 8659.696836, 7640.519520999999, 5377.091329, 6890.806854, 8754.96385, 9313.93883, 10461.05868, 298.8462121, 335.99711510000003, 411.80062660000004, 498.63902649999994, 496.58159220000005, 745.3695408, 797.2631074, 773.9932140999999, 977.4862724999999, 1186.147994, 1275.184575, 1569.331442, 575.5729961000001, 620.9699901, 634.1951625, 713.6036482999999, 803.0054535, 640.3224382999999, 572.1995694, 506.1138573, 636.6229191000001, 609.1739508, 531.4823679, 414.5073415, 2387.54806, 3448.284395, 6757.0308159999995, 18772.75169, 21011.497209999998, 21951.21176, 17364.275380000003, 11770.5898, 9640.138501000001, 9467.446056, 9534.677467, 12057.49928, 1443.011715, 1589.20275, 1643.38711, 1634.047282, 1748.562982, 1544.228586, 1302.878658, 1155.4419480000001, 1040.6761900000001, 986.2958956, 894.6370822, 1044.770126, 369.1650802, 416.36980639999996, 427.90108560000004, 495.5147806, 584.6219709, 663.2236766, 632.8039209, 635.5173633999999, 563.2000145, 692.2758102999999, 665.4231186000001, 759.3499101, 1831.132894, 1810.0669920000003, 2036.8849440000001, 2277.742396, 2849.09478, 3827.9215710000003, 4920.355951, 5249.802653, 7277.912802, 10132.90964, 10206.97794, 12451.6558, 452.3369807, 490.3821867, 496.17434280000003, 545.0098873, 581.3688761, 686.3952693, 618.0140640999999, 684.1715576, 739.014375, 790.2579846, 951.4097517999999, 1042.581557, 743.1159097, 846.1202613, 1055.8960359999999, 1421.145193, 1586.851781, 1497.492223, 1481.150189, 1421.603576, 1361.369784, 1483.1361359999999, 1579.0195429999999, 1803.1514960000002, 1967.955707, 2034.037981, 2529.0674870000003, 2475.387562, 2575.4841579999998, 3710.9829630000004, 3688.037739, 4783.586903, 6058.2538460000005, 7425.705295000001, 9021.815894, 10956.99112, 3478.125529, 4131.546641, 4581.609385, 5754.733883, 6809.406690000001, 7674.929108, 9611.147541, 8688.156003, 9472.384295, 9767.29753, 10742.44053, 11977.57496, 786.5668575, 912.6626085, 1056.353958, 1226.04113, 1421.741975, 1647.511665, 2000.603139, 2338.008304, 1785.402016, 1902.2521, 2140.7393230000002, 3095.7722710000003, 2647.585601, 3682.259903, 4649.593785, 5907.850937, 7778.414017, 9595.929904999999, 11222.58762, 11732.51017, 7003.339037000001, 6465.613349, 6557.194282, 9253.896111, 1688.20357, 1642.002314, 1566.353493, 1711.04477, 1930.194975, 2370.619976, 2702.620356, 2755.046991, 2948.047252, 2982.101858, 3258.495584, 3820.17523, 468.5260381, 495.5868333000001, 556.6863539, 566.6691539, 724.9178037, 502.31973339999996, 462.2114149, 389.87618460000004, 410.89682389999996, 472.34607710000006, 633.6179466, 823.6856205, 331, 350, 388, 349, 357, 371, 424, 385, 347, 415, 611, 944, 2423.780443, 2621.448058, 3173.215595, 3793.694753, 3746.080948, 3876.4859579999998, 4191.100511, 3693.7313369999997, 3804.537999, 3899.52426, 4072.3247509999997, 4811.060429, 545.8657228999999, 597.9363557999999, 652.3968593, 676.4422254, 674.7881296, 694.1124398, 718.3730947, 775.6324501, 897.7403604, 1010.892138, 1057.206311, 1091.359778, 8941.571858, 11276.193440000001, 12790.849559999999, 15363.25136, 18794.74567, 21209.0592, 21399.46046, 23651.32361, 26790.94961, 30246.13063, 33724.75778, 36797.93332, 10556.575659999999, 12247.39532, 13175.678, 14463.918930000002, 16046.03728, 16233.7177, 17632.4104, 19007.19129, 18363.324940000002, 21050.41377, 23189.80135, 25185.00911, 3112.363948, 3457.415947, 3634.364406, 4643.393534000001, 4688.593267, 5486.371089, 3470.3381560000003, 2955.984375, 2170.151724, 2253.023004, 2474.548819, 2749.320965, 761.879376, 835.5234025000001, 997.7661127, 1054.384891, 954.2092363, 808.8970727999999, 909.7221354000001, 668.3000228, 581.182725, 580.3052092, 601.0745012, 619.6768923999999, 1077.281856, 1100.5925630000002, 1150.9274779999998, 1014.5141039999999, 1698.3888379999999, 1981.9518059999998, 1576.97375, 1385.029563, 1619.848217, 1624.941275, 1615.2863949999999, 2013.9773050000001, 10095.42172, 11653.97304, 13450.40151, 16361.87647, 18965.05551, 23311.34939, 26298.635309999998, 31540.9748, 33965.66115, 41283.16433, 44683.97525, 49357.19017, 1828.230307, 2242.746551, 2924.638113, 4720.942687, 10618.03855, 11848.343920000001, 12954.791009999999, 18115.223130000002, 18616.70691, 19702.055809999998, 19774.83687, 22316.19287, 684.5971437999999, 747.0835292, 803.3427418, 942.4082588, 1049.938981, 1175.921193, 1443.429832, 1704.686583, 1971.8294640000001, 2049.3505210000003, 2092.712441, 2605.94758, 2480.380334, 2961.800905, 3536.540301, 4421.009084, 5364.2496630000005, 5351.912144, 7009.601598, 7034.779161, 6618.74305, 7113.692252, 7356.031934000001, 9809.185636, 1952.3087010000002, 2046.1547059999998, 2148.027146, 2299.376311, 2523.337977, 3248.373311, 4258.5036039999995, 3998.875695, 4196.411078, 4247.400261, 3783.674243, 4172.838464, 3758.523437, 4245.256697999999, 4957.037982, 5788.09333, 5937.827283, 6281.290854999999, 6434.501797, 6360.9434439999995, 4446.380924, 5838.347657, 5909.020073, 7408.905561, 1272.880995, 1547.9448439999999, 1649.5521529999999, 1814.12743, 1989.3740699999998, 2373.204287, 2603.273765, 2189.634995, 2279.3240170000004, 2536.534925, 2650.921068, 3190.481016, 4029.3296990000003, 4734.253019, 5338.752143, 6557.152776, 8006.506993000001, 9508.141454, 8451.531004, 9082.351172, 7738.881247, 10159.58368, 12002.23908, 15389.924680000002, 3068.319867, 3774.571743, 4727.954889, 6361.517993, 9022.247417, 10172.48572, 11753.84291, 13039.30876, 16207.266630000002, 17641.03156, 19970.90787, 20509.64777, 3081.959785, 3907.1561890000003, 5108.34463, 6929.277714, 9123.041742, 9770.524921, 10330.98915, 12281.34191, 14641.587109999999, 16999.4333, 18855.606180000002, 19328.70901, 2718.885295, 2769.451844, 3173.72334, 4021.1757390000002, 5047.658563, 4319.804067, 5267.219353, 5303.377488, 6101.2558229999995, 6071.941411, 6316.1652, 7670.122558, 3144.613186, 3943.370225, 4734.9975859999995, 6470.866545, 8011.414401999999, 9356.39724, 9605.314053, 9696.273295, 6598.409903, 7346.547556999999, 7885.360081, 10808.47561, 493.32387520000003, 540.2893982999999, 597.4730727000001, 510.9637142, 590.5806637999999, 670.0806011, 881.5706467, 847.991217, 737.0685949, 589.9445051, 785.6537647999999, 863.0884639000001, 879.5835855, 860.7369026, 1071.551119, 1384.840593, 1532.985254, 1737.561657, 1890.2181170000001, 1516.525457, 1428.777814, 1339.076036, 1353.09239, 1598.435089, 6459.5548229999995, 8157.591248000001, 11626.41975, 16903.04886, 24837.42865, 34167.7626, 33693.17525, 21198.26136, 24841.617769999997, 20586.69019, 19014.54118, 21654.83194, 1450.356983, 1567.653006, 1654.988723, 1612.404632, 1597.712056, 1561.769116, 1518.479984, 1441.72072, 1367.899369, 1392.368347, 1519.635262, 1712.4721359999999, 3581.4594479999996, 4981.090891, 6289.629157, 7991.707066, 10522.067490000001, 12980.66956, 15181.0927, 15870.878509999999, 9325.068238, 7914.320304000001, 7236.075251, 9786.534714, 879.7877358, 1004.484437, 1116.6398769999998, 1206.043465, 1353.759762, 1348.285159, 1465.010784, 1294.4477880000002, 1068.696278, 574.6481576, 699.4897129999999, 862.5407561000001, 2315.138227, 2843.104409, 3674.735572, 4977.41854, 8597.756202, 11210.08948, 15169.161119999999, 18861.53081, 24769.8912, 33519.4766, 36023.1054, 47143.179639999995, 5074.659104, 6093.2629799999995, 7481.1075980000005, 8412.902397, 9674.167626, 10922.664040000001, 11348.54585, 12037.26758, 9498.467723, 12126.23065, 13638.778369999998, 18678.31435, 4215.041741, 5862.276629, 7402.303395, 9405.489397, 12383.4862, 15277.030169999998, 17866.72175, 18678.53492, 14214.71681, 17161.10735, 20660.01936, 25768.25759, 1135.749842, 1258.1474130000001, 1369.488336, 1284.7331800000002, 1254.576127, 1450.9925130000001, 1176.807031, 1093.244963, 926.9602964, 930.5964284, 882.0818218000001, 926.1410683, 4725.295531000001, 5487.104219, 5768.729717, 7114.477970999999, 7765.962636, 8028.651439, 8568.266228, 7825.823398, 7225.0692579999995, 7479.188244, 7710.946444, 9269.657808, 3834.0347420000003, 4564.80241, 5693.843879, 7993.512294, 10638.75131, 13236.92117, 13926.169969999999, 15764.98313, 18603.06452, 20445.29896, 24835.47166, 28821.0637, 1083.53203, 1072.546602, 1074.4719599999999, 1135.514326, 1213.39553, 1348.775651, 1648.0797890000001, 1876.766827, 2153.7392219999997, 2664.477257, 3015.3788329999998, 3970.0954070000003, 1615.991129, 1770.3370739999998, 1959.593767, 1687.997641, 1659.652775, 2202.9884230000002, 1895.544073, 1507.819159, 1492.197043, 1632.2107640000002, 1993.398314, 2602.394995, 1148.376626, 1244.708364, 1856.182125, 2613.1016649999997, 3364.836625, 3781.410618, 3895.384018, 3984.8398119999997, 3553.0224, 3876.7684600000002, 4128.116943, 4513.480643, 8527.844662000001, 9911.878226, 12329.441920000001, 15258.29697, 17832.02464, 18855.72521, 20667.38125, 23586.92927, 23880.01683, 25266.59499, 29341.630930000003, 33859.74835, 14734.23275, 17909.48973, 20431.0927, 22966.14432, 27195.113039999997, 26982.29052, 28397.715119999997, 30281.704589999998, 31871.5303, 32135.323010000004, 34480.95771, 37506.419069999996, 1643.485354, 2117.234893, 2193.037133, 1881.923632, 2571.423014, 3195.484582, 3761.8377149999997, 3116.774285, 3340.542768, 4014.238972, 4090.9253310000004, 4184.548089, 1206.947913, 1507.86129, 1822.879028, 2643.8586809999997, 4062.523897, 5596.519826, 7426.354773999999, 11054.56175, 15215.6579, 20206.82098, 23235.42329, 28718.27684, 716.6500721, 698.5356073, 722.0038073, 848.2186575, 915.9850592, 962.4922932, 874.2426069, 831.8220794, 825.682454, 789.1862231, 899.0742111, 1107.482182, 757.7974177, 793.5774147999999, 1002.1991720000001, 1295.46066, 1524.3589359999999, 1961.2246350000003, 2393.219781, 2982.653773, 4616.8965450000005, 5852.625497, 5913.187529, 7458.3963269999995, 859.8086567, 925.9083201999999, 1067.5348099999999, 1477.59676, 1649.660188, 1532.776998, 1344.577953, 1202.201361, 1034.298904, 982.2869242999999, 886.2205765000001, 882.9699437999999, 3023.271928, 4100.3934, 4997.5239710000005, 5621.368472, 6619.551418999999, 7899.554209000001, 9119.528607, 7388.597823, 7370.990932, 8792.573126000001, 11460.60023, 18008.50924, 1468.475631, 1395.232468, 1660.30321, 1932.3601670000003, 2753.2859940000003, 3120.876811, 3560.2331740000004, 3810.419296, 4332.720164, 4876.798614, 5722.895654999999, 7092.923025, 1969.1009800000002, 2218.754257, 2322.8699079999997, 2826.3563870000003, 3450.69638, 4269.122326, 4241.356344, 5089.043686, 5678.348271, 6601.429915, 6508.085718, 8458.276384, 734.753484, 774.3710692000001, 767.2717397999999, 908.9185217, 950.735869, 843.7331372000001, 682.2662267999999, 617.7244065, 644.1707968999999, 816.559081, 927.7210018, 1056.3801210000001, 9979.508487000001, 11283.17795, 12477.17707, 14142.85089, 15895.116409999999, 17428.74846, 18232.42452, 21664.787669999998, 22705.09254, 26074.53136, 29478.99919, 33203.26128, 13990.482080000002, 14847.12712, 16173.145859999999, 19530.365569999998, 21806.03594, 24072.63213, 25009.55914, 29884.350410000003, 32003.93224, 35767.43303, 39097.09955, 42951.65309, 5716.766744, 6150.772969, 5603.357717, 5444.61962, 5703.408898, 6504.339663000001, 6920.223051000001, 7452.398969, 8137.004775, 9230.240708, 7727.002004000001, 10611.46299, 7689.799761, 9802.466526, 8422.974165000001, 9541.474188, 10505.25966, 13143.95095, 11152.410109999999, 9883.584648, 10733.926309999999, 10165.49518, 8605.047831, 11415.805690000001, 605.0664917, 676.2854477999999, 772.0491602000001, 637.1232887, 699.5016441, 713.5371196000001, 707.2357863, 820.7994449, 989.0231487, 1385.896769, 1764.456677, 2441.576404, 1515.5923289999998, 1827.0677420000002, 2198.9563120000003, 2649.7150070000002, 3133.4092769999997, 3682.8314939999996, 4336.032082, 5107.197384, 6017.654756, 7110.667619, 4515.487575, 3025.349798, 781.7175761, 804.8304547, 825.6232006, 862.4421463, 1265.047031, 1829.765177, 1977.5570100000002, 1971.741538, 1879.496673, 2117.484526, 2234.820827, 2280.769906, 1147.388831, 1311.956766, 1452.725766, 1777.0773179999999, 1773.498265, 1588.688299, 1408.678565, 1213.315116, 1210.884633, 1071.353818, 1071.6139380000002, 1271.211593, 406.8841148, 518.7642681, 527.2721818, 569.7950712, 799.3621757999999, 685.5876821, 788.8550411, 706.1573059, 693.4207856, 792.4499602999999, 672.0386227000001, 469.70929810000007 ], "sizemode": "area", "sizeref": 283.80783225, "symbol": "circle" }, "mode": "markers", "name": "", "scene": "scene", "showlegend": false, "type": "scatter3d", "x": [ 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007, 1952, 1957, 1962, 1967, 1972, 1977, 1982, 1987, 1992, 1997, 2002, 2007 ], "y": [ "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Oceania", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Europe", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Americas", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Asia", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa", "Africa" ], "z": [ 8425333, 9240934, 10267083, 11537966, 13079460, 14880372, 12881816, 13867957, 16317921, 22227415, 25268405, 31889923, 1282697, 1476505, 1728137, 1984060, 2263554, 2509048, 2780097, 3075321, 3326498, 3428038, 3508512, 3600523, 9279525, 10270856, 11000948, 12760499, 14760787, 17152804, 20033753, 23254956, 26298373, 29072015, 31287142, 33333216, 4232095, 4561361, 4826015, 5247469, 5894858, 6162675, 7016384, 7874230, 8735988, 9875024, 10866106, 12420476, 17876956, 19610538, 21283783, 22934225, 24779799, 26983828, 29341374, 31620918, 33958947, 36203463, 38331121, 40301927, 8691212, 9712569, 10794968, 11872264, 13177000, 14074100, 15184200, 16257249, 17481977, 18565243, 19546792, 20434176, 6927772, 6965860, 7129864, 7376998, 7544201, 7568430, 7574613, 7578903, 7914969, 8069876, 8148312, 8199783, 120447, 138655, 171863, 202182, 230800, 297410, 377967, 454612, 529491, 598561, 656397, 708573, 46886859, 51365468, 56839289, 62821884, 70759295, 80428306, 93074406, 103764241, 113704579, 123315288, 135656790, 150448339, 8730405, 8989111, 9218400, 9556500, 9709100, 9821800, 9856303, 9870200, 10045622, 10199787, 10311970, 10392226, 1738315, 1925173, 2151895, 2427334, 2761407, 3168267, 3641603, 4243788, 4981671, 6066080, 7026113, 8078314, 2883315, 3211738, 3593918, 4040665, 4565872, 5079716, 5642224, 6156369, 6893451, 7693188, 8445134, 9119152, 2791000, 3076000, 3349000, 3585000, 3819000, 4086000, 4172693, 4338977, 4256013, 3607000, 4165416, 4552198, 442308, 474639, 512764, 553541, 619351, 781472, 970347, 1151184, 1342614, 1536536, 1630347, 1639131, 56602560, 65551171, 76039390, 88049823, 100840058, 114313951, 128962939, 142938076, 155975974, 168546719, 179914212, 190010647, 7274900, 7651254, 8012946, 8310226, 8576200, 8797022, 8892098, 8971958, 8658506, 8066057, 7661799, 7322858, 4469979, 4713416, 4919632, 5127935, 5433886, 5889574, 6634596, 7586551, 8878303, 10352843, 12251209, 14326203, 2445618, 2667518, 2961915, 3330989, 3529983, 3834415, 4580410, 5126023, 5809236, 6121610, 7021078, 8390505, 4693836, 5322536, 6083619, 6960067, 7450606, 6978607, 7272485, 8371791, 10150094, 11782962, 12926707, 14131858, 5009067, 5359923, 5793633, 6335506, 7021028, 7959865, 9250831, 10780667, 12467171, 14195809, 15929988, 17696293, 14785584, 17010154, 18985849, 20819767, 22284500, 23796400, 25201900, 26549700, 28523502, 30305843, 31902268, 33390141, 1291695, 1392284, 1523478, 1733638, 1927260, 2167533, 2476971, 2840009, 3265124, 3696513, 4048013, 4369038, 2682462, 2894855, 3150417, 3495967, 3899068, 4388260, 4875118, 5498955, 6429417, 7562011, 8835739, 10238807, 6377619, 7048426, 7961258, 8858908, 9717524, 10599793, 11487112, 12463354, 13572994, 14599929, 15497046, 16284741, 556263527, 637408000, 665770000, 754550000, 862030000, 943455000, 1000281000, 1084035000, 1164970000, 1230075000, 1280400000, 1318683096, 12350771, 14485993, 17009885, 19764027, 22542890, 25094412, 27764644, 30964245, 34202721, 37657830, 41008227, 44227550, 153936, 170928, 191689, 217378, 250027, 304739, 348643, 395114, 454429, 527982, 614382, 710960, 14100005, 15577932, 17486434, 19941073, 23007669, 26480870, 30646495, 35481645, 41672143, 47798986, 55379852, 64606759, 854885, 940458, 1047924, 1179760, 1340458, 1536769, 1774735, 2064095, 2409073, 2800947, 3328795, 3800610, 926317, 1112300, 1345187, 1588717, 1834796, 2108457, 2424367, 2799811, 3173216, 3518107, 3834934, 4133884, 2977019, 3300000, 3832408, 4744870, 6071696, 7459574, 9025951, 10761098, 12772596, 14625967, 16252726, 18013409, 3882229, 3991242, 4076557, 4174366, 4225310, 4318673, 4413368, 4484310, 4494013, 4444595, 4481020, 4493312, 6007797, 6640752, 7254373, 8139332, 8831348, 9537988, 9789224, 10239839, 10723260, 10983007, 11226999, 11416987, 9125183, 9513758, 9620282, 9835109, 9862158, 10161915, 10303704, 10311597, 10315702, 10300707, 10256295, 10228744, 4334000, 4487831, 4646899, 4838800, 4991596, 5088419, 5117810, 5127024, 5171393, 5283663, 5374693, 5468120, 63149, 71851, 89898, 127617, 178848, 228694, 305991, 311025, 384156, 417908, 447416, 496374, 2491346, 2923186, 3453434, 4049146, 4671329, 5302800, 5968349, 6655297, 7351181, 7992357, 8650322, 9319622, 3548753, 4058385, 4681707, 5432424, 6298651, 7278866, 8365850, 9545158, 10748394, 11911819, 12921234, 13755680, 22223309, 25009741, 28173309, 31681188, 34807417, 38783863, 45681811, 52799062, 59402198, 66134291, 73312559, 80264543, 2042865, 2355805, 2747687, 3232927, 3790903, 4282586, 4474873, 4842194, 5274649, 5783439, 6353681, 6939688, 216964, 232922, 249220, 259864, 277603, 192675, 285483, 341244, 387838, 439971, 495627, 551201, 1438760, 1542611, 1666618, 1820319, 2260187, 2512642, 2637297, 2915959, 3668440, 4058319, 4414865, 4906585, 20860941, 22815614, 25145372, 27860297, 30770372, 34617799, 38111756, 42999530, 52088559, 59861301, 67946797, 76511887, 4090500, 4324000, 4491443, 4605744, 4639657, 4738902, 4826933, 4931729, 5041039, 5134406, 5193039, 5238460, 42459667, 44310863, 47124000, 49569000, 51732000, 53165019, 54433565, 55630100, 57374179, 58623428, 59925035, 61083916, 420702, 434904, 455661, 489004, 537977, 706367, 753874, 880397, 985739, 1126189, 1299304, 1454867, 284320, 323150, 374020, 439593, 517101, 608274, 715523, 848406, 1025384, 1235767, 1457766, 1688359, 69145952, 71019069, 73739117, 76368453, 78717088, 78160773, 78335266, 77718298, 80597764, 82011073, 82350671, 82400996, 5581001, 6391288, 7355248, 8490213, 9354120, 10538093, 11400338, 14168101, 16278738, 18418288, 20550751, 22873338, 7733250, 8096218, 8448233, 8716441, 8888628, 9308479, 9786480, 9974490, 10325429, 10502372, 10603863, 10706290, 3146381, 3640876, 4208858, 4690773, 5149581, 5703430, 6395630, 7326406, 8486949, 9803875, 11178650, 12572928, 2664249, 2876726, 3140003, 3451418, 3811387, 4227026, 4710497, 5650262, 6990574, 8048834, 8807818, 9947814, 580653, 601095, 627820, 601287, 625361, 745228, 825987, 927524, 1050938, 1193708, 1332459, 1472041, 3201488, 3507701, 3880130, 4318137, 4698301, 4908554, 5198399, 5756203, 6326682, 6913545, 7607651, 8502814, 1517453, 1770390, 2090162, 2500689, 2965146, 3055235, 3669448, 4372203, 5077347, 5867957, 6677328, 7483763, 2125900, 2736300, 3305200, 3722800, 4115700, 4583700, 5264500, 5584510, 5829696, 6495918, 6762476, 6980412, 9504000, 9839000, 10063000, 10223422, 10394091, 10637171, 10705535, 10612740, 10348684, 10244684, 10083313, 9956108, 147962, 165110, 182053, 198676, 209275, 221823, 233997, 244676, 259012, 271192, 288030, 301931, 372000000, 409000000, 454000000, 506000000, 567000000, 634000000, 708000000, 788000000, 872000000, 959000000, 1034172547, 1110396331, 82052000, 90124000, 99028000, 109343000, 121282000, 136725000, 153343000, 169276000, 184816000, 199278000, 211060000, 223547000, 17272000, 19792000, 22874000, 26538000, 30614000, 35480679, 43072751, 51889696, 60397973, 63327987, 66907826, 69453570, 5441766, 6248643, 7240260, 8519282, 10061506, 11882916, 14173318, 16543189, 17861905, 20775703, 24001816, 27499638, 2952156, 2878220, 2830000, 2900100, 3024400, 3271900, 3480000, 3539900, 3557761, 3667233, 3879155, 4109086, 1620914, 1944401, 2310904, 2693585, 3095893, 3495918, 3858421, 4203148, 4936550, 5531387, 6029529, 6426679, 47666000, 49182000, 50843200, 52667100, 54365564, 56059245, 56535636, 56729703, 56840847, 57479469, 57926999, 58147733, 1426095, 1535090, 1665128, 1861096, 1997616, 2156814, 2298309, 2326606, 2378618, 2531311, 2664659, 2780132, 86459025, 91563009, 95831757, 100825279, 107188273, 113872473, 118454974, 122091325, 124329269, 125956499, 127065841, 127467972, 607914, 746559, 933559, 1255058, 1613551, 1937652, 2347031, 2820042, 3867409, 4526235, 5307470, 6053193, 6464046, 7454779, 8678557, 10191512, 12044785, 14500404, 17661452, 21198082, 25020539, 28263827, 31386842, 35610177, 8865488, 9411381, 10917494, 12617009, 14781241, 16325320, 17647518, 19067554, 20711375, 21585105, 22215365, 23301725, 20947571, 22611552, 26420307, 30131000, 33505000, 36436000, 39326000, 41622000, 43805450, 46173816, 47969150, 49044790, 160000, 212846, 358266, 575003, 841934, 1140357, 1497494, 1891487, 1418095, 1765345, 2111561, 2505559, 1439529, 1647412, 1886848, 2186894, 2680018, 3115787, 3086876, 3089353, 3219994, 3430388, 3677780, 3921278, 748747, 813338, 893143, 996380, 1116779, 1251524, 1411807, 1599200, 1803195, 1982823, 2046772, 2012649, 863308, 975950, 1112796, 1279406, 1482628, 1703617, 1956875, 2269414, 1912974, 2200725, 2814651, 3193942, 1019729, 1201578, 1441863, 1759224, 2183877, 2721783, 3344074, 3799845, 4364501, 4759670, 5368585, 6036914, 4762912, 5181679, 5703324, 6334556, 7082430, 8007166, 9171477, 10568642, 12210395, 14165114, 16473477, 19167654, 2917802, 3221238, 3628608, 4147252, 4730997, 5637246, 6502825, 7824747, 10014249, 10419991, 11824495, 13327079, 6748378, 7739235, 8906385, 10154878, 11441462, 12845381, 14441916, 16331785, 18319502, 20476091, 22662365, 24821286, 3838168, 4241884, 4690372, 5212416, 5828158, 6491649, 6998256, 7634008, 8416215, 9384984, 10580176, 12031795, 1022556, 1076852, 1146757, 1230542, 1332786, 1456688, 1622136, 1841240, 2119465, 2444741, 2828858, 3270065, 516556, 609816, 701016, 789309, 851334, 913025, 992040, 1042663, 1096202, 1149818, 1200206, 1250882, 30144317, 35015548, 41121485, 47995559, 55984294, 63759976, 71640904, 80122492, 88111030, 95895146, 102479927, 108700891, 800663, 882134, 1010280, 1149500, 1320500, 1528000, 1756032, 2015133, 2312802, 2494803, 2674234, 2874127, 413834, 442829, 474528, 501035, 527678, 560073, 562548, 569473, 621621, 692651, 720230, 684736, 9939217, 11406350, 13056604, 14770296, 16660670, 18396941, 20198730, 22987397, 25798239, 28529501, 31167783, 33757175, 6446316, 7038035, 7788944, 8680909, 9809596, 11127868, 12587223, 12891952, 13160731, 16603334, 18473780, 19951656, 20092996, 21731844, 23634436, 25870271, 28466390, 31528087, 34680442, 38028578, 40546538, 43247867, 45598081, 47761980, 485831, 548080, 621392, 706640, 821782, 977026, 1099010, 1278184, 1554253, 1774766, 1972153, 2055080, 9182536, 9682338, 10332057, 11261690, 12412593, 13933198, 15796314, 17917180, 20326209, 23001113, 25873917, 28901790, 10381988, 11026383, 11805689, 12596822, 13329874, 13852989, 14310401, 14665278, 15174244, 15604464, 16122830, 16570613, 1994794, 2229407, 2488550, 2728150, 2929100, 3164900, 3210650, 3317166, 3437674, 3676187, 3908037, 4115771, 1165790, 1358828, 1590597, 1865490, 2182908, 2554598, 2979423, 3344353, 4017939, 4609572, 5146848, 5675356, 3379468, 3692184, 4076008, 4534062, 5060262, 5682086, 6437188, 7332638, 8392818, 9666252, 11140655, 12894865, 33119096, 37173340, 41871351, 47287752, 53740085, 62209173, 73039376, 81551520, 93364244, 106207839, 119901274, 135031164, 3327728, 3491938, 3638919, 3786019, 3933004, 4043205, 4114787, 4186147, 4286357, 4405672, 4535591, 4627926, 507833, 561977, 628164, 714775, 829050, 1004533, 1301048, 1593882, 1915208, 2283635, 2713462, 3204897, 41346560, 46679944, 53100671, 60641899, 69325921, 78152686, 91462088, 105186881, 120065004, 135564834, 153403524, 169270617, 940080, 1063506, 1215725, 1405486, 1616384, 1839782, 2036305, 2253639, 2484997, 2734531, 2990875, 3242173, 1555876, 1770902, 2009813, 2287985, 2614104, 2984494, 3366439, 3886512, 4483945, 5154123, 5884491, 6667147, 8025700, 9146100, 10516500, 12132200, 13954700, 15990099, 18125129, 20195924, 22430449, 24748122, 26769436, 28674757, 22438691, 26072194, 30325264, 35356600, 40850141, 46850962, 53456774, 60017788, 67185766, 75012988, 82995088, 91077287, 25730551, 28235346, 30329617, 31785378, 33039545, 34621254, 36227381, 37740710, 38370697, 38654957, 38625976, 38518241, 8526050, 8817650, 9019800, 9103000, 8970450, 9662600, 9859650, 9915289, 9927680, 10156415, 10433867, 10642836, 2227000, 2260000, 2448046, 2648961, 2847132, 3080828, 3279001, 3444468, 3585176, 3759430, 3859606, 3942491, 257700, 308700, 358900, 414024, 461633, 492095, 517810, 562035, 622191, 684810, 743981, 798094, 16630000, 17829327, 18680721, 19284814, 20662648, 21658597, 22356726, 22686371, 22797027, 22562458, 22404337, 22276056, 2534927, 2822082, 3051242, 3451079, 3992121, 4657072, 5507565, 6349365, 7290203, 7212583, 7852401, 8860588, 60011, 61325, 65345, 70787, 76595, 86796, 98593, 110812, 125911, 145608, 170372, 199579, 4005677, 4419650, 4943029, 5618198, 6472756, 8128505, 11254672, 14619745, 16945857, 21229759, 24501530, 27601038, 2755589, 3054547, 3430243, 3965841, 4588696, 5260855, 6147783, 7171347, 8307920, 9535314, 10870037, 12267493, 6860147, 7271135, 7616060, 7971222, 8313288, 8686367, 9032824, 9230783, 9826397, 10336594, 10111559, 10150265, 2143249, 2295678, 2467895, 2662190, 2879013, 3140897, 3464522, 3868905, 4260884, 4578212, 5359092, 6144562, 1127000, 1445929, 1750200, 1977600, 2152400, 2325300, 2651869, 2794552, 3235865, 3802309, 4197776, 4553009, 3558137, 3844277, 4237384, 4442238, 4593433, 4827803, 5048043, 5199318, 5302888, 5383010, 5410052, 5447502, 1489518, 1533070, 1582962, 1646912, 1694510, 1746919, 1861252, 1945870, 1999210, 2011612, 2011497, 2009245, 2526994, 2780415, 3080153, 3428839, 3840161, 4353666, 5828892, 6921858, 6099799, 6633514, 7753310, 9118773, 14264935, 16151549, 18356657, 20997321, 23935810, 27129932, 31140029, 35933379, 39964159, 42835005, 44433622, 43997828, 28549870, 29841614, 31158061, 32850275, 34513161, 36439000, 37983310, 38880702, 39549438, 39855442, 40152517, 40448191, 7982342, 9128546, 10421936, 11737396, 13016733, 14116836, 15410151, 16495304, 17587060, 18698655, 19576783, 20378239, 8504667, 9753392, 11183227, 12716129, 14597019, 17104986, 20367053, 24725960, 28227588, 32160729, 37090298, 42292929, 290243, 326741, 370006, 420690, 480105, 551425, 649901, 779348, 962344, 1054486, 1130269, 1133066, 7124673, 7363802, 7561588, 7867931, 8122293, 8251648, 8325260, 8421403, 8718867, 8897619, 8954175, 9031088, 4815000, 5126000, 5666000, 6063000, 6401400, 6316424, 6468126, 6649942, 6995447, 7193761, 7361757, 7554661, 3661549, 4149908, 4834621, 5680812, 6701172, 7932503, 9410494, 11242847, 13219062, 15081016, 17155814, 19314747, 8550362, 10164215, 11918938, 13648692, 15226039, 16785196, 18501390, 19757799, 20686918, 21628605, 22454239, 23174294, 8322925, 9452826, 10863958, 12607312, 14706593, 17129565, 19844382, 23040630, 26605473, 30686889, 34593779, 38139640, 21289402, 25041917, 29263397, 34024249, 39276153, 44148285, 48827160, 52910342, 56667095, 60216677, 62806748, 65068149, 1219113, 1357445, 1528098, 1735550, 2056351, 2308582, 2644765, 3154264, 3747553, 4320890, 4977378, 5701579, 662850, 764900, 887498, 960155, 975199, 1039009, 1116479, 1191336, 1183669, 1138101, 1101832, 1056608, 3647735, 3950849, 4286552, 4786986, 5303507, 6005061, 6734098, 7724976, 8523077, 9231669, 9770575, 10276158, 22235677, 25670939, 29788695, 33411317, 37492953, 42404033, 47328791, 52881328, 58179144, 63047647, 67308928, 71158647, 5824797, 6675501, 7688797, 8900294, 10190285, 11457758, 12939400, 15283050, 18252190, 21210254, 24739869, 29170398, 50430000, 51430000, 53292000, 54959000, 56079000, 56179000, 56339704, 56981620, 57866349, 58808266, 59912431, 60776238, 157553000, 171984000, 186538000, 198712000, 209896000, 220239000, 232187835, 242803533, 256894189, 272911760, 287675526, 301139947, 2252965, 2424959, 2598466, 2748579, 2829526, 2873520, 2953997, 3045153, 3149262, 3262838, 3363085, 3447496, 5439568, 6702668, 8143375, 9709552, 11515649, 13503563, 15620766, 17910182, 20265563, 22374398, 24287670, 26084662, 26246839, 28998543, 33796140, 39463910, 44655014, 50533506, 56142181, 62826491, 69940728, 76048996, 80908147, 85262356, 1030585, 1070439, 1133134, 1142636, 1089572, 1261091, 1425876, 1691210, 2104779, 2826046, 3389578, 4018332, 4963829, 5498090, 6120081, 6740785, 7407075, 8403990, 9657618, 11219340, 13367997, 15826497, 18701257, 22211743, 2672000, 3016000, 3421000, 3900000, 4506497, 5216550, 6100407, 7272406, 8381163, 9417789, 10595811, 11746035, 3080907, 3646340, 4277736, 4995432, 5861135, 6642107, 7636524, 9216418, 10704340, 11404948, 11926563, 12311143 ] } ], "layout": { "coloraxis": { "colorbar": { "title": { "text": "lifeExp" } }, "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" ] ] }, "legend": { "itemsizing": "constant", "tracegroupgap": 0 }, "margin": { "t": 60 }, "scene": { "domain": { "x": [ 0, 1 ], "y": [ 0, 1 ] }, "xaxis": { "title": { "text": "year" } }, "yaxis": { "title": { "text": "continent" } }, "zaxis": { "title": { "text": "pop" }, "type": "log" } }, "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" } ], "pie": [ { "automargin": true, "type": "pie" } ], "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 }, "coloraxis": { "colorbar": { "outlinewidth": 0, "ticks": "" } }, "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": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white", "zerolinewidth": 2 } } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "scatter_3d_fig = px.scatter_3d(\n", " gapminder,\n", " x=\"year\",\n", " y=\"continent\",\n", " z=\"pop\",\n", " size=\"gdpPercap\", # ❶ 要素の大きさ\n", " color=\"lifeExp\", # ❷ lifeExp列で色分け\n", " hover_data=[\"country\"], # ❸ ホバーツールに表示\n", ")\n", "# Z軸を対数にとる\n", "scatter_3d_fig.layout.update(scene={\"zaxis\": {\"type\": \"log\"}})\n", "scatter_3d_fig.show()" ] } ], "metadata": { "celltoolbar": "Raw Cell Format", "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.8.2" } }, "nbformat": 4, "nbformat_minor": 4 }