From 9d1830e5d6155ee764df71d25b8d0b1948a78458 Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 25 Sep 2022 18:00:44 -0400 Subject: [PATCH] Added tests to plotly-charts.ipynb --- tests/plotly-charts.ipynb | 13230 +++++++++++++++++++++++++++++++++++- 1 file changed, 13228 insertions(+), 2 deletions(-) diff --git a/tests/plotly-charts.ipynb b/tests/plotly-charts.ipynb index e7cef1d56..1924ebc4d 100644 --- a/tests/plotly-charts.ipynb +++ b/tests/plotly-charts.ipynb @@ -124521,6 +124521,13232 @@ "\n", "fig.show()" ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# User Warnings Tests" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "C:\\Users\\Toshi\\anaconda3\\lib\\site-packages\\datascience\\tables.py:4210: UserWarning: Group and overlay are incompatible in a scatter\n", + " warnings.warn(\"Group and overlay are incompatible in a scatter\")\n" + ] + }, + { + "data": { + "text/html": [ + " \n", + " " + ] + }, + "metadata": {}, + "output_type": "display_data" + }, + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "marker": { + "color": "rgb(0,30,66)", + "size": 5 + }, + "mode": "markers", + "name": "origin=1", + "showlegend": true, + "textfont": { + "color": "rgb(0,30,66)" + }, + "textposition": "bottom center", + "type": "scatter", + "x": [ + 3504, + 3693, + 3436, + 3433, + 3449, + 4341, + 4354, + 4312, + 4425, + 3850, + 3563, + 3609, + 3761, + 3086, + 2833, + 2774, + 2587, + 2648, + 4615, + 4376, + 4382, + 4732, + 2264, + 2634, + 3439, + 3329, + 3302, + 3288, + 4209, + 4464, + 4154, + 4096, + 4955, + 4746, + 5140, + 2962, + 2408, + 3282, + 3139, + 2220, + 1955, + 2126, + 2408, + 2226, + 4274, + 4385, + 4135, + 4129, + 3672, + 4633, + 4502, + 4456, + 4422, + 3892, + 4098, + 4294, + 4077, + 2395, + 2164, + 4100, + 3672, + 3988, + 4042, + 3777, + 4952, + 4464, + 4363, + 4237, + 4735, + 4951, + 3821, + 3121, + 3278, + 2945, + 3021, + 2904, + 4997, + 4906, + 4654, + 4499, + 2789, + 2401, + 2310, + 2472, + 4082, + 4278, + 3399, + 3664, + 3102, + 2901, + 3336, + 2451, + 2542, + 3781, + 3632, + 3613, + 4141, + 4699, + 4457, + 4638, + 4257, + 2125, + 3264, + 3459, + 3432, + 3158, + 4668, + 4440, + 4498, + 4657, + 3907, + 3897, + 3730, + 3785, + 3039, + 3221, + 3169, + 2639, + 2914, + 2592, + 2984, + 3211, + 2572, + 2255, + 4215, + 4190, + 3962, + 4215, + 3233, + 3353, + 3012, + 3085, + 2035, + 2164, + 3651, + 3574, + 3645, + 3193, + 2565, + 3940, + 4380, + 4055, + 3870, + 3755, + 2155, + 2300, + 3880, + 4060, + 4140, + 4295, + 3520, + 3425, + 3630, + 3525, + 4220, + 4165, + 4325, + 4335, + 2740, + 2755, + 2051, + 2075, + 1800, + 3365, + 3735, + 3570, + 3535, + 3155, + 2965, + 2720, + 3430, + 3210, + 3380, + 3070, + 3620, + 3410, + 3425, + 3445, + 3205, + 4080, + 2155, + 2230, + 2745, + 2855, + 3245, + 2990, + 2890, + 3265, + 3360, + 3840, + 3725, + 3955, + 3830, + 4360, + 4054, + 3605, + 3940, + 1915, + 2670, + 3900, + 3420, + 2200, + 2150, + 2670, + 2595, + 2700, + 2556, + 2120, + 2678, + 2870, + 3003, + 3381, + 2800, + 2490, + 2635, + 2620, + 2725, + 2385, + 1875, + 2215, + 2045, + 2380, + 3415, + 3725, + 3060, + 3465, + 2605, + 2640, + 2395, + 2575, + 2525, + 2735, + 2865, + 2125, + 2125, + 2945, + 3015, + 2585, + 2835, + 2370, + 2950, + 2790, + 2295, + 2625, + 2720 + ], + "xaxis": "x", + "y": [ + 130, + 165, + 150, + 150, + 140, + 198, + 220, + 215, + 225, + 190, + 170, + 160, + 150, + 225, + 95, + 97, + 85, + 90, + 215, + 200, + 210, + 193, + 90, + 100, + 105, + 100, + 88, + 100, + 165, + 175, + 153, + 150, + 180, + 170, + 175, + 110, + 72, + 100, + 88, + 86, + 70, + 80, + 90, + 86, + 165, + 175, + 150, + 153, + 150, + 208, + 155, + 160, + 190, + 150, + 130, + 140, + 150, + 86, + 80, + 175, + 150, + 145, + 137, + 150, + 198, + 150, + 158, + 150, + 215, + 225, + 175, + 105, + 100, + 100, + 88, + 95, + 150, + 167, + 170, + 180, + 100, + 72, + 85, + 107, + 145, + 230, + 150, + 180, + 95, + 100, + 100, + 80, + 75, + 100, + 110, + 105, + 140, + 150, + 150, + 140, + 150, + 75, + 95, + 105, + 72, + 72, + 170, + 145, + 150, + 148, + 110, + 105, + 110, + 95, + 110, + 110, + 129, + 83, + 100, + 78, + 97, + 90, + 92, + 79, + 140, + 150, + 120, + 152, + 100, + 105, + 81, + 90, + 52, + 60, + 100, + 78, + 110, + 95, + 72, + 150, + 180, + 145, + 130, + 150, + 80, + 96, + 145, + 110, + 145, + 130, + 110, + 105, + 100, + 98, + 180, + 170, + 190, + 149, + 88, + 89, + 63, + 83, + 66, + 110, + 140, + 139, + 105, + 95, + 85, + 88, + 100, + 90, + 105, + 85, + 110, + 120, + 145, + 165, + 139, + 140, + 68, + 75, + 105, + 85, + 115, + 85, + 88, + 90, + 110, + 130, + 129, + 138, + 135, + 155, + 142, + 125, + 150, + 80, + 80, + 125, + 90, + 70, + 70, + 90, + 115, + 115, + 90, + 70, + 90, + 88, + 90, + 90, + 105, + 84, + 84, + 92, + 110, + 84, + 64, + 63, + 65, + 65, + 110, + 105, + 88, + 85, + 88, + 88, + 88, + 85, + 84, + 90, + 92, + 63, + 70, + 110, + 85, + 92, + 112, + 84, + 90, + 86, + 84, + 79, + 82 + ], + "yaxis": "y" + }, + { + "marker": { + "color": "rgb(256,200,44)", + "size": 5 + }, + "mode": "markers", + "name": "origin=2", + "showlegend": true, + "textfont": { + "color": "rgb(0,30,66)" + }, + "textposition": "bottom center", + "type": "scatter", + "x": [ + 1835, + 2672, + 2430, + 2375, + 2234, + 2123, + 2074, + 2065, + 1834, + 2254, + 2933, + 2511, + 2979, + 2189, + 1950, + 2265, + 1867, + 2158, + 2582, + 2868, + 2660, + 2219, + 1963, + 2300, + 2108, + 2246, + 2000, + 2223, + 1937, + 2694, + 2957, + 2945, + 2671, + 2464, + 2220, + 2202, + 1937, + 1825, + 3150, + 3270, + 3820, + 1825, + 1940, + 2190, + 2600, + 1985, + 2830, + 3140, + 2795, + 3410, + 1990, + 1925, + 3530, + 3190, + 2130, + 2144, + 2188, + 2085, + 2335, + 2950, + 3250, + 1845, + 2500, + 2190, + 3230, + 3160, + 1980, + 2130 + ], + "xaxis": "x", + "y": [ + 46, + 87, + 90, + 95, + 113, + 90, + 70, + 76, + 60, + 54, + 112, + 76, + 87, + 69, + 46, + 90, + 49, + 75, + 91, + 112, + 110, + 83, + 67, + 78, + 75, + 75, + 67, + 71, + 70, + 95, + 88, + 98, + 115, + 86, + 81, + 83, + 70, + 71, + 102, + 88, + 120, + 58, + 78, + 78, + 110, + 48, + 103, + 125, + 115, + 133, + 71, + 71, + 77, + 71, + 69, + 76, + 78, + 48, + 48, + 67, + 67, + 62, + 88, + 74, + 80, + 76, + 74, + 52 + ], + "yaxis": "y" + }, + { + "marker": { + "color": "rgb(0,150,207)", + "size": 5 + }, + "mode": "markers", + "name": "origin=3", + "showlegend": true, + "textfont": { + "color": "rgb(0,30,66)" + }, + "textposition": "bottom center", + "type": "scatter", + "x": [ + 2372, + 2130, + 2130, + 2228, + 1773, + 1613, + 2278, + 2330, + 2288, + 2506, + 2100, + 2279, + 2379, + 2124, + 2807, + 1950, + 1836, + 1649, + 2003, + 2489, + 2391, + 2171, + 2702, + 2545, + 1795, + 1795, + 1990, + 2155, + 2930, + 2045, + 1945, + 2265, + 1985, + 2815, + 2720, + 1985, + 2070, + 1800, + 2560, + 2300, + 2515, + 2405, + 2135, + 1975, + 2020, + 1968, + 2019, + 2711, + 2542, + 2434, + 2265, + 2110, + 2110, + 1850, + 2145, + 2910, + 2420, + 2290, + 1755, + 1760, + 2065, + 1975, + 2050, + 1985, + 2210, + 2350, + 2615, + 2635, + 2900, + 2930, + 2025, + 1970, + 2160, + 2205, + 2245, + 1965, + 1965, + 1995, + 2665 + ], + "xaxis": "x", + "y": [ + 95, + 88, + 88, + 95, + 65, + 69, + 95, + 97, + 92, + 97, + 88, + 88, + 94, + 90, + 122, + 67, + 65, + 52, + 61, + 97, + 93, + 75, + 96, + 97, + 53, + 53, + 70, + 75, + 108, + 68, + 70, + 75, + 67, + 97, + 110, + 52, + 70, + 60, + 95, + 97, + 95, + 97, + 68, + 65, + 65, + 60, + 65, + 90, + 75, + 92, + 75, + 65, + 65, + 67, + 67, + 132, + 100, + 72, + 58, + 60, + 67, + 65, + 62, + 68, + 75, + 75, + 100, + 74, + 116, + 120, + 68, + 68, + 88, + 75, + 70, + 67, + 67, + 67, + 96 + ], + "yaxis": "y" + }, + { + "marker": { + "color": "rgb(0,30,66)", + "size": 5 + }, + "mode": "markers", + "name": "origin=1", + "showlegend": false, + "textfont": { + "color": "rgb(256,200,44)" + }, + "textposition": "bottom center", + "type": "scatter", + "x": [ + 3504, + 3693, + 3436, + 3433, + 3449, + 4341, + 4354, + 4312, + 4425, + 3850, + 3563, + 3609, + 3761, + 3086, + 2833, + 2774, + 2587, + 2648, + 4615, + 4376, + 4382, + 4732, + 2264, + 2634, + 3439, + 3329, + 3302, + 3288, + 4209, + 4464, + 4154, + 4096, + 4955, + 4746, + 5140, + 2962, + 2408, + 3282, + 3139, + 2220, + 1955, + 2126, + 2408, + 2226, + 4274, + 4385, + 4135, + 4129, + 3672, + 4633, + 4502, + 4456, + 4422, + 3892, + 4098, + 4294, + 4077, + 2395, + 2164, + 4100, + 3672, + 3988, + 4042, + 3777, + 4952, + 4464, + 4363, + 4237, + 4735, + 4951, + 3821, + 3121, + 3278, + 2945, + 3021, + 2904, + 4997, + 4906, + 4654, + 4499, + 2789, + 2401, + 2310, + 2472, + 4082, + 4278, + 3399, + 3664, + 3102, + 2901, + 3336, + 2451, + 2542, + 3781, + 3632, + 3613, + 4141, + 4699, + 4457, + 4638, + 4257, + 2125, + 3264, + 3459, + 3432, + 3158, + 4668, + 4440, + 4498, + 4657, + 3907, + 3897, + 3730, + 3785, + 3039, + 3221, + 3169, + 2639, + 2914, + 2592, + 2984, + 3211, + 2572, + 2255, + 4215, + 4190, + 3962, + 4215, + 3233, + 3353, + 3012, + 3085, + 2035, + 2164, + 3651, + 3574, + 3645, + 3193, + 2565, + 3940, + 4380, + 4055, + 3870, + 3755, + 2155, + 2300, + 3880, + 4060, + 4140, + 4295, + 3520, + 3425, + 3630, + 3525, + 4220, + 4165, + 4325, + 4335, + 2740, + 2755, + 2051, + 2075, + 1800, + 3365, + 3735, + 3570, + 3535, + 3155, + 2965, + 2720, + 3430, + 3210, + 3380, + 3070, + 3620, + 3410, + 3425, + 3445, + 3205, + 4080, + 2155, + 2230, + 2745, + 2855, + 3245, + 2990, + 2890, + 3265, + 3360, + 3840, + 3725, + 3955, + 3830, + 4360, + 4054, + 3605, + 3940, + 1915, + 2670, + 3900, + 3420, + 2200, + 2150, + 2670, + 2595, + 2700, + 2556, + 2120, + 2678, + 2870, + 3003, + 3381, + 2800, + 2490, + 2635, + 2620, + 2725, + 2385, + 1875, + 2215, + 2045, + 2380, + 3415, + 3725, + 3060, + 3465, + 2605, + 2640, + 2395, + 2575, + 2525, + 2735, + 2865, + 2125, + 2125, + 2945, + 3015, + 2585, + 2835, + 2370, + 2950, + 2790, + 2295, + 2625, + 2720 + ], + "xaxis": "x2", + "y": [ + 307, + 350, + 318, + 304, + 302, + 429, + 454, + 440, + 455, + 390, + 383, + 340, + 400, + 455, + 198, + 199, + 200, + 199, + 360, + 307, + 318, + 304, + 140, + 232, + 225, + 250, + 250, + 232, + 350, + 400, + 351, + 318, + 383, + 400, + 400, + 258, + 140, + 250, + 250, + 122, + 91, + 97.5, + 140, + 122, + 350, + 400, + 318, + 351, + 304, + 429, + 350, + 350, + 400, + 304, + 307, + 302, + 318, + 122, + 98, + 350, + 304, + 350, + 302, + 318, + 429, + 400, + 351, + 318, + 440, + 455, + 360, + 225, + 250, + 232, + 250, + 198, + 400, + 400, + 360, + 350, + 232, + 140, + 122, + 155, + 350, + 400, + 318, + 350, + 198, + 232, + 250, + 122, + 140, + 250, + 258, + 225, + 302, + 350, + 318, + 302, + 304, + 90, + 225, + 250, + 250, + 250, + 400, + 350, + 318, + 351, + 231, + 250, + 258, + 225, + 231, + 262, + 302, + 140, + 232, + 140, + 171, + 232, + 140, + 98, + 305, + 318, + 304, + 351, + 225, + 250, + 200, + 232, + 85, + 98, + 225, + 250, + 250, + 258, + 140, + 318, + 350, + 350, + 302, + 318, + 111, + 122, + 305, + 260, + 318, + 302, + 250, + 231, + 225, + 250, + 400, + 350, + 400, + 351, + 151, + 140, + 98, + 98, + 98, + 260, + 318, + 302, + 231, + 200, + 200, + 140, + 225, + 232, + 231, + 200, + 225, + 258, + 305, + 231, + 302, + 318, + 98, + 105, + 156, + 151, + 231, + 200, + 140, + 232, + 225, + 305, + 302, + 351, + 318, + 350, + 351, + 267, + 360, + 98, + 121, + 350, + 260, + 105, + 105, + 151, + 173, + 173, + 151, + 98, + 151, + 140, + 151, + 225, + 156, + 135, + 151, + 156, + 173, + 135, + 86, + 105, + 98, + 98, + 231, + 350, + 200, + 225, + 112, + 112, + 112, + 112, + 135, + 151, + 140, + 105, + 98, + 181, + 262, + 156, + 232, + 135, + 151, + 140, + 135, + 120, + 119 + ], + "yaxis": "y2" + }, + { + "marker": { + "color": "rgb(256,200,44)", + "size": 5 + }, + "mode": "markers", + "name": "origin=2", + "showlegend": false, + "textfont": { + "color": "rgb(256,200,44)" + }, + "textposition": "bottom center", + "type": "scatter", + "x": [ + 1835, + 2672, + 2430, + 2375, + 2234, + 2123, + 2074, + 2065, + 1834, + 2254, + 2933, + 2511, + 2979, + 2189, + 1950, + 2265, + 1867, + 2158, + 2582, + 2868, + 2660, + 2219, + 1963, + 2300, + 2108, + 2246, + 2000, + 2223, + 1937, + 2694, + 2957, + 2945, + 2671, + 2464, + 2220, + 2202, + 1937, + 1825, + 3150, + 3270, + 3820, + 1825, + 1940, + 2190, + 2600, + 1985, + 2830, + 3140, + 2795, + 3410, + 1990, + 1925, + 3530, + 3190, + 2130, + 2144, + 2188, + 2085, + 2335, + 2950, + 3250, + 1845, + 2500, + 2190, + 3230, + 3160, + 1980, + 2130 + ], + "xaxis": "x2", + "y": [ + 97, + 110, + 107, + 104, + 121, + 116, + 79, + 88, + 97, + 97, + 121, + 121, + 120, + 96, + 97, + 98, + 68, + 116, + 114, + 121, + 121, + 98, + 79, + 97, + 90, + 116, + 79, + 90, + 90, + 115, + 120, + 121, + 121, + 107, + 116, + 101, + 90, + 97, + 130, + 120, + 168, + 79, + 97, + 97, + 121, + 90, + 131, + 163, + 121, + 163, + 89, + 89, + 183, + 141, + 91, + 98, + 97, + 90, + 90, + 121, + 146, + 89, + 122, + 105, + 141, + 145, + 105, + 97 + ], + "yaxis": "y2" + }, + { + "marker": { + "color": "rgb(0,150,207)", + "size": 5 + }, + "mode": "markers", + "name": "origin=3", + "showlegend": false, + "textfont": { + "color": "rgb(256,200,44)" + }, + "textposition": "bottom center", + "type": "scatter", + "x": [ + 2372, + 2130, + 2130, + 2228, + 1773, + 1613, + 2278, + 2330, + 2288, + 2506, + 2100, + 2279, + 2379, + 2124, + 2807, + 1950, + 1836, + 1649, + 2003, + 2489, + 2391, + 2171, + 2702, + 2545, + 1795, + 1795, + 1990, + 2155, + 2930, + 2045, + 1945, + 2265, + 1985, + 2815, + 2720, + 1985, + 2070, + 1800, + 2560, + 2300, + 2515, + 2405, + 2135, + 1975, + 2020, + 1968, + 2019, + 2711, + 2542, + 2434, + 2265, + 2110, + 2110, + 1850, + 2145, + 2910, + 2420, + 2290, + 1755, + 1760, + 2065, + 1975, + 2050, + 1985, + 2210, + 2350, + 2615, + 2635, + 2900, + 2930, + 2025, + 1970, + 2160, + 2205, + 2245, + 1965, + 1965, + 1995, + 2665 + ], + "xaxis": "x2", + "y": [ + 113, + 97, + 97, + 113, + 71, + 72, + 113, + 70, + 97, + 120, + 97, + 97, + 108, + 70, + 156, + 79, + 71, + 76, + 83, + 120, + 108, + 97, + 134, + 119, + 91, + 91, + 85, + 97, + 156, + 98, + 85, + 97, + 97, + 146, + 80, + 78, + 85, + 91, + 134, + 119, + 134, + 119, + 98, + 86, + 85, + 89, + 86, + 134, + 120, + 119, + 108, + 86, + 85, + 91, + 97, + 168, + 70, + 107, + 79, + 81, + 97, + 85, + 89, + 91, + 107, + 108, + 119, + 120, + 168, + 146, + 91, + 91, + 120, + 107, + 108, + 91, + 91, + 91, + 144 + ], + "yaxis": "y2" + } + ], + "layout": { + "annotations": [ + { + "font": { + "size": 16 + }, + "showarrow": false, + "text": "weight", + "x": 0.5, + "xanchor": "center", + "xref": "paper", + "y": 0, + "yanchor": "top", + "yref": "paper", + "yshift": -30 + } + ], + "showlegend": true, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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 + }, + "autotypenumbers": "strict", + "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 + ] + }, + "xaxis2": { + "anchor": "y2", + "domain": [ + 0, + 1 + ] + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0.575, + 1 + ], + "title": { + "text": "hp" + } + }, + "yaxis2": { + "anchor": "x2", + "domain": [ + 0, + 0.425 + ], + "title": { + "text": "displ" + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "t.scatter(\"weight\", [\"hp\", \"displ\"], group=\"origin\")" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "C:\\Users\\Toshi\\anaconda3\\lib\\site-packages\\datascience\\tables.py:4216: UserWarning:\n", + "\n", + "Group and fit line are incompatible in a scatter\n", + "\n" + ] + }, + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "marker": { + "color": "rgb(0,30,66)", + "size": 5 + }, + "mode": "markers", + "name": "origin=1", + "showlegend": true, + "textfont": { + "color": "rgb(0,30,66)" + }, + "textposition": "bottom center", + "type": "scatter", + "x": [ + 3504, + 3693, + 3436, + 3433, + 3449, + 4341, + 4354, + 4312, + 4425, + 3850, + 3563, + 3609, + 3761, + 3086, + 2833, + 2774, + 2587, + 2648, + 4615, + 4376, + 4382, + 4732, + 2264, + 2634, + 3439, + 3329, + 3302, + 3288, + 4209, + 4464, + 4154, + 4096, + 4955, + 4746, + 5140, + 2962, + 2408, + 3282, + 3139, + 2220, + 1955, + 2126, + 2408, + 2226, + 4274, + 4385, + 4135, + 4129, + 3672, + 4633, + 4502, + 4456, + 4422, + 3892, + 4098, + 4294, + 4077, + 2395, + 2164, + 4100, + 3672, + 3988, + 4042, + 3777, + 4952, + 4464, + 4363, + 4237, + 4735, + 4951, + 3821, + 3121, + 3278, + 2945, + 3021, + 2904, + 4997, + 4906, + 4654, + 4499, + 2789, + 2401, + 2310, + 2472, + 4082, + 4278, + 3399, + 3664, + 3102, + 2901, + 3336, + 2451, + 2542, + 3781, + 3632, + 3613, + 4141, + 4699, + 4457, + 4638, + 4257, + 2125, + 3264, + 3459, + 3432, + 3158, + 4668, + 4440, + 4498, + 4657, + 3907, + 3897, + 3730, + 3785, + 3039, + 3221, + 3169, + 2639, + 2914, + 2592, + 2984, + 3211, + 2572, + 2255, + 4215, + 4190, + 3962, + 4215, + 3233, + 3353, + 3012, + 3085, + 2035, + 2164, + 3651, + 3574, + 3645, + 3193, + 2565, + 3940, + 4380, + 4055, + 3870, + 3755, + 2155, + 2300, + 3880, + 4060, + 4140, + 4295, + 3520, + 3425, + 3630, + 3525, + 4220, + 4165, + 4325, + 4335, + 2740, + 2755, + 2051, + 2075, + 1800, + 3365, + 3735, + 3570, + 3535, + 3155, + 2965, + 2720, + 3430, + 3210, + 3380, + 3070, + 3620, + 3410, + 3425, + 3445, + 3205, + 4080, + 2155, + 2230, + 2745, + 2855, + 3245, + 2990, + 2890, + 3265, + 3360, + 3840, + 3725, + 3955, + 3830, + 4360, + 4054, + 3605, + 3940, + 1915, + 2670, + 3900, + 3420, + 2200, + 2150, + 2670, + 2595, + 2700, + 2556, + 2120, + 2678, + 2870, + 3003, + 3381, + 2800, + 2490, + 2635, + 2620, + 2725, + 2385, + 1875, + 2215, + 2045, + 2380, + 3415, + 3725, + 3060, + 3465, + 2605, + 2640, + 2395, + 2575, + 2525, + 2735, + 2865, + 2125, + 2125, + 2945, + 3015, + 2585, + 2835, + 2370, + 2950, + 2790, + 2295, + 2625, + 2720 + ], + "xaxis": "x", + "y": [ + 130, + 165, + 150, + 150, + 140, + 198, + 220, + 215, + 225, + 190, + 170, + 160, + 150, + 225, + 95, + 97, + 85, + 90, + 215, + 200, + 210, + 193, + 90, + 100, + 105, + 100, + 88, + 100, + 165, + 175, + 153, + 150, + 180, + 170, + 175, + 110, + 72, + 100, + 88, + 86, + 70, + 80, + 90, + 86, + 165, + 175, + 150, + 153, + 150, + 208, + 155, + 160, + 190, + 150, + 130, + 140, + 150, + 86, + 80, + 175, + 150, + 145, + 137, + 150, + 198, + 150, + 158, + 150, + 215, + 225, + 175, + 105, + 100, + 100, + 88, + 95, + 150, + 167, + 170, + 180, + 100, + 72, + 85, + 107, + 145, + 230, + 150, + 180, + 95, + 100, + 100, + 80, + 75, + 100, + 110, + 105, + 140, + 150, + 150, + 140, + 150, + 75, + 95, + 105, + 72, + 72, + 170, + 145, + 150, + 148, + 110, + 105, + 110, + 95, + 110, + 110, + 129, + 83, + 100, + 78, + 97, + 90, + 92, + 79, + 140, + 150, + 120, + 152, + 100, + 105, + 81, + 90, + 52, + 60, + 100, + 78, + 110, + 95, + 72, + 150, + 180, + 145, + 130, + 150, + 80, + 96, + 145, + 110, + 145, + 130, + 110, + 105, + 100, + 98, + 180, + 170, + 190, + 149, + 88, + 89, + 63, + 83, + 66, + 110, + 140, + 139, + 105, + 95, + 85, + 88, + 100, + 90, + 105, + 85, + 110, + 120, + 145, + 165, + 139, + 140, + 68, + 75, + 105, + 85, + 115, + 85, + 88, + 90, + 110, + 130, + 129, + 138, + 135, + 155, + 142, + 125, + 150, + 80, + 80, + 125, + 90, + 70, + 70, + 90, + 115, + 115, + 90, + 70, + 90, + 88, + 90, + 90, + 105, + 84, + 84, + 92, + 110, + 84, + 64, + 63, + 65, + 65, + 110, + 105, + 88, + 85, + 88, + 88, + 88, + 85, + 84, + 90, + 92, + 63, + 70, + 110, + 85, + 92, + 112, + 84, + 90, + 86, + 84, + 79, + 82 + ], + "yaxis": "y" + }, + { + "marker": { + "color": "rgb(256,200,44)", + "size": 5 + }, + "mode": "markers", + "name": "origin=2", + "showlegend": true, + "textfont": { + "color": "rgb(0,30,66)" + }, + "textposition": "bottom center", + "type": "scatter", + "x": [ + 1835, + 2672, + 2430, + 2375, + 2234, + 2123, + 2074, + 2065, + 1834, + 2254, + 2933, + 2511, + 2979, + 2189, + 1950, + 2265, + 1867, + 2158, + 2582, + 2868, + 2660, + 2219, + 1963, + 2300, + 2108, + 2246, + 2000, + 2223, + 1937, + 2694, + 2957, + 2945, + 2671, + 2464, + 2220, + 2202, + 1937, + 1825, + 3150, + 3270, + 3820, + 1825, + 1940, + 2190, + 2600, + 1985, + 2830, + 3140, + 2795, + 3410, + 1990, + 1925, + 3530, + 3190, + 2130, + 2144, + 2188, + 2085, + 2335, + 2950, + 3250, + 1845, + 2500, + 2190, + 3230, + 3160, + 1980, + 2130 + ], + "xaxis": "x", + "y": [ + 46, + 87, + 90, + 95, + 113, + 90, + 70, + 76, + 60, + 54, + 112, + 76, + 87, + 69, + 46, + 90, + 49, + 75, + 91, + 112, + 110, + 83, + 67, + 78, + 75, + 75, + 67, + 71, + 70, + 95, + 88, + 98, + 115, + 86, + 81, + 83, + 70, + 71, + 102, + 88, + 120, + 58, + 78, + 78, + 110, + 48, + 103, + 125, + 115, + 133, + 71, + 71, + 77, + 71, + 69, + 76, + 78, + 48, + 48, + 67, + 67, + 62, + 88, + 74, + 80, + 76, + 74, + 52 + ], + "yaxis": "y" + }, + { + "marker": { + "color": "rgb(0,150,207)", + "size": 5 + }, + "mode": "markers", + "name": "origin=3", + "showlegend": true, + "textfont": { + "color": "rgb(0,30,66)" + }, + "textposition": "bottom center", + "type": "scatter", + "x": [ + 2372, + 2130, + 2130, + 2228, + 1773, + 1613, + 2278, + 2330, + 2288, + 2506, + 2100, + 2279, + 2379, + 2124, + 2807, + 1950, + 1836, + 1649, + 2003, + 2489, + 2391, + 2171, + 2702, + 2545, + 1795, + 1795, + 1990, + 2155, + 2930, + 2045, + 1945, + 2265, + 1985, + 2815, + 2720, + 1985, + 2070, + 1800, + 2560, + 2300, + 2515, + 2405, + 2135, + 1975, + 2020, + 1968, + 2019, + 2711, + 2542, + 2434, + 2265, + 2110, + 2110, + 1850, + 2145, + 2910, + 2420, + 2290, + 1755, + 1760, + 2065, + 1975, + 2050, + 1985, + 2210, + 2350, + 2615, + 2635, + 2900, + 2930, + 2025, + 1970, + 2160, + 2205, + 2245, + 1965, + 1965, + 1995, + 2665 + ], + "xaxis": "x", + "y": [ + 95, + 88, + 88, + 95, + 65, + 69, + 95, + 97, + 92, + 97, + 88, + 88, + 94, + 90, + 122, + 67, + 65, + 52, + 61, + 97, + 93, + 75, + 96, + 97, + 53, + 53, + 70, + 75, + 108, + 68, + 70, + 75, + 67, + 97, + 110, + 52, + 70, + 60, + 95, + 97, + 95, + 97, + 68, + 65, + 65, + 60, + 65, + 90, + 75, + 92, + 75, + 65, + 65, + 67, + 67, + 132, + 100, + 72, + 58, + 60, + 67, + 65, + 62, + 68, + 75, + 75, + 100, + 74, + 116, + 120, + 68, + 68, + 88, + 75, + 70, + 67, + 67, + 67, + 96 + ], + "yaxis": "y" + } + ], + "layout": { + "annotations": [ + { + "font": { + "size": 16 + }, + "showarrow": false, + "text": "weight", + "x": 0.5, + "xanchor": "center", + "xref": "paper", + "y": 0, + "yanchor": "top", + "yref": "paper", + "yshift": -30 + } + ], + "showlegend": true, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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 + }, + "autotypenumbers": "strict", + "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 + ] + }, + "yaxis": { + "anchor": "x", + "domain": [ + 0, + 1 + ], + "title": { + "text": "hp" + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "t.scatter(\"weight\", \"hp\", group=\"origin\", fit_line = True)" + ] + }, + { + "cell_type": "code", + "execution_count": 19, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "C:\\Users\\Toshi\\anaconda3\\lib\\site-packages\\datascience\\tables.py:4511: UserWarning:\n", + "\n", + "fit_line is currently unsupported by iscatter3d\n", + "\n", + "C:\\Users\\Toshi\\anaconda3\\lib\\site-packages\\datascience\\tables.py:4534: UserWarning:\n", + "\n", + "Group and overlay are incompatible in a scatter\n", + "\n" + ] + }, + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "marker": { + "color": "rgb(0,30,66)", + "size": 5 + }, + "mode": "markers", + "name": "origin=1", + "scene": "scene", + "showlegend": true, + "textfont": { + "color": "rgb(0,30,66)" + }, + "textposition": "bottom center", + "type": "scatter3d", + "x": [ + 3504, + 3693, + 3436, + 3433, + 3449, + 4341, + 4354, + 4312, + 4425, + 3850, + 3563, + 3609, + 3761, + 3086, + 2833, + 2774, + 2587, + 2648, + 4615, + 4376, + 4382, + 4732, + 2264, + 2634, + 3439, + 3329, + 3302, + 3288, + 4209, + 4464, + 4154, + 4096, + 4955, + 4746, + 5140, + 2962, + 2408, + 3282, + 3139, + 2220, + 1955, + 2126, + 2408, + 2226, + 4274, + 4385, + 4135, + 4129, + 3672, + 4633, + 4502, + 4456, + 4422, + 3892, + 4098, + 4294, + 4077, + 2395, + 2164, + 4100, + 3672, + 3988, + 4042, + 3777, + 4952, + 4464, + 4363, + 4237, + 4735, + 4951, + 3821, + 3121, + 3278, + 2945, + 3021, + 2904, + 4997, + 4906, + 4654, + 4499, + 2789, + 2401, + 2310, + 2472, + 4082, + 4278, + 3399, + 3664, + 3102, + 2901, + 3336, + 2451, + 2542, + 3781, + 3632, + 3613, + 4141, + 4699, + 4457, + 4638, + 4257, + 2125, + 3264, + 3459, + 3432, + 3158, + 4668, + 4440, + 4498, + 4657, + 3907, + 3897, + 3730, + 3785, + 3039, + 3221, + 3169, + 2639, + 2914, + 2592, + 2984, + 3211, + 2572, + 2255, + 4215, + 4190, + 3962, + 4215, + 3233, + 3353, + 3012, + 3085, + 2035, + 2164, + 3651, + 3574, + 3645, + 3193, + 2565, + 3940, + 4380, + 4055, + 3870, + 3755, + 2155, + 2300, + 3880, + 4060, + 4140, + 4295, + 3520, + 3425, + 3630, + 3525, + 4220, + 4165, + 4325, + 4335, + 2740, + 2755, + 2051, + 2075, + 1800, + 3365, + 3735, + 3570, + 3535, + 3155, + 2965, + 2720, + 3430, + 3210, + 3380, + 3070, + 3620, + 3410, + 3425, + 3445, + 3205, + 4080, + 2155, + 2230, + 2745, + 2855, + 3245, + 2990, + 2890, + 3265, + 3360, + 3840, + 3725, + 3955, + 3830, + 4360, + 4054, + 3605, + 3940, + 1915, + 2670, + 3900, + 3420, + 2200, + 2150, + 2670, + 2595, + 2700, + 2556, + 2120, + 2678, + 2870, + 3003, + 3381, + 2800, + 2490, + 2635, + 2620, + 2725, + 2385, + 1875, + 2215, + 2045, + 2380, + 3415, + 3725, + 3060, + 3465, + 2605, + 2640, + 2395, + 2575, + 2525, + 2735, + 2865, + 2125, + 2125, + 2945, + 3015, + 2585, + 2835, + 2370, + 2950, + 2790, + 2295, + 2625, + 2720 + ], + "y": [ + 12, + 11.5, + 11, + 12, + 10.5, + 10, + 9, + 8.5, + 10, + 8.5, + 10, + 8, + 9.5, + 10, + 15.5, + 15.5, + 16, + 15, + 14, + 15, + 13.5, + 18.5, + 15.5, + 13, + 15.5, + 15.5, + 15.5, + 15.5, + 12, + 11.5, + 13.5, + 13, + 11.5, + 12, + 12, + 13.5, + 19, + 15, + 14.5, + 14, + 20.5, + 17, + 19.5, + 16.5, + 12, + 12, + 13.5, + 13, + 11.5, + 11, + 13.5, + 13.5, + 12.5, + 12.5, + 14, + 16, + 14, + 16, + 15, + 13, + 11.5, + 13, + 14.5, + 12.5, + 11.5, + 12, + 13, + 14.5, + 11, + 11, + 11, + 16.5, + 18, + 16, + 16.5, + 16, + 14, + 12.5, + 13, + 12.5, + 15, + 19.5, + 18.5, + 14, + 13, + 9.5, + 11, + 11, + 16.5, + 16, + 17, + 16.5, + 17, + 17, + 18, + 16.5, + 14, + 14.5, + 13.5, + 16, + 15.5, + 14.5, + 16, + 16, + 21, + 19.5, + 11.5, + 14, + 14.5, + 13.5, + 21, + 18.5, + 19, + 19, + 15, + 13.5, + 12, + 17, + 16, + 18.5, + 14.5, + 17, + 14.9, + 17.7, + 13, + 13, + 13.9, + 12.8, + 15.4, + 14.5, + 17.6, + 17.6, + 22.2, + 22.1, + 17.7, + 21, + 16.2, + 17.8, + 13.6, + 13.2, + 12.1, + 12, + 15, + 14, + 14.8, + 15.5, + 12.5, + 19, + 13.7, + 14.9, + 16.4, + 16.9, + 17.7, + 19, + 11.1, + 11.4, + 12.2, + 14.5, + 16, + 15.8, + 17, + 15.9, + 14.4, + 15.5, + 13.2, + 12.8, + 19.2, + 18.2, + 15.8, + 15.4, + 17.2, + 17.2, + 15.8, + 16.7, + 18.7, + 15.1, + 13.2, + 13.4, + 11.2, + 13.7, + 16.5, + 14.5, + 16.7, + 17.6, + 15.4, + 18.2, + 17.3, + 18.2, + 16.6, + 15.4, + 13.4, + 13.2, + 15.2, + 14.9, + 14.3, + 15, + 13, + 14.4, + 15, + 17.4, + 22.2, + 13.2, + 14.9, + 16, + 11.3, + 12.9, + 13.2, + 15.5, + 16.5, + 18.1, + 20.1, + 18.7, + 14.4, + 15.7, + 16.4, + 14.4, + 12.6, + 12.9, + 16.4, + 14.9, + 16.2, + 20.7, + 15.8, + 19, + 17.1, + 16.6, + 19.6, + 18.6, + 18, + 16.2, + 16, + 18, + 16.4, + 14.7, + 17.3, + 16.4, + 17, + 14.5, + 14.7, + 13, + 17.3, + 15.6, + 11.6, + 18.6, + 19.4 + ], + "z": [ + 130, + 165, + 150, + 150, + 140, + 198, + 220, + 215, + 225, + 190, + 170, + 160, + 150, + 225, + 95, + 97, + 85, + 90, + 215, + 200, + 210, + 193, + 90, + 100, + 105, + 100, + 88, + 100, + 165, + 175, + 153, + 150, + 180, + 170, + 175, + 110, + 72, + 100, + 88, + 86, + 70, + 80, + 90, + 86, + 165, + 175, + 150, + 153, + 150, + 208, + 155, + 160, + 190, + 150, + 130, + 140, + 150, + 86, + 80, + 175, + 150, + 145, + 137, + 150, + 198, + 150, + 158, + 150, + 215, + 225, + 175, + 105, + 100, + 100, + 88, + 95, + 150, + 167, + 170, + 180, + 100, + 72, + 85, + 107, + 145, + 230, + 150, + 180, + 95, + 100, + 100, + 80, + 75, + 100, + 110, + 105, + 140, + 150, + 150, + 140, + 150, + 75, + 95, + 105, + 72, + 72, + 170, + 145, + 150, + 148, + 110, + 105, + 110, + 95, + 110, + 110, + 129, + 83, + 100, + 78, + 97, + 90, + 92, + 79, + 140, + 150, + 120, + 152, + 100, + 105, + 81, + 90, + 52, + 60, + 100, + 78, + 110, + 95, + 72, + 150, + 180, + 145, + 130, + 150, + 80, + 96, + 145, + 110, + 145, + 130, + 110, + 105, + 100, + 98, + 180, + 170, + 190, + 149, + 88, + 89, + 63, + 83, + 66, + 110, + 140, + 139, + 105, + 95, + 85, + 88, + 100, + 90, + 105, + 85, + 110, + 120, + 145, + 165, + 139, + 140, + 68, + 75, + 105, + 85, + 115, + 85, + 88, + 90, + 110, + 130, + 129, + 138, + 135, + 155, + 142, + 125, + 150, + 80, + 80, + 125, + 90, + 70, + 70, + 90, + 115, + 115, + 90, + 70, + 90, + 88, + 90, + 90, + 105, + 84, + 84, + 92, + 110, + 84, + 64, + 63, + 65, + 65, + 110, + 105, + 88, + 85, + 88, + 88, + 88, + 85, + 84, + 90, + 92, + 63, + 70, + 110, + 85, + 92, + 112, + 84, + 90, + 86, + 84, + 79, + 82 + ] + }, + { + "marker": { + "color": "rgb(256,200,44)", + "size": 5 + }, + "mode": "markers", + "name": "origin=2", + "scene": "scene", + "showlegend": true, + "textfont": { + "color": "rgb(0,30,66)" + }, + "textposition": "bottom center", + "type": "scatter3d", + "x": [ + 1835, + 2672, + 2430, + 2375, + 2234, + 2123, + 2074, + 2065, + 1834, + 2254, + 2933, + 2511, + 2979, + 2189, + 1950, + 2265, + 1867, + 2158, + 2582, + 2868, + 2660, + 2219, + 1963, + 2300, + 2108, + 2246, + 2000, + 2223, + 1937, + 2694, + 2957, + 2945, + 2671, + 2464, + 2220, + 2202, + 1937, + 1825, + 3150, + 3270, + 3820, + 1825, + 1940, + 2190, + 2600, + 1985, + 2830, + 3140, + 2795, + 3410, + 1990, + 1925, + 3530, + 3190, + 2130, + 2144, + 2188, + 2085, + 2335, + 2950, + 3250, + 1845, + 2500, + 2190, + 3230, + 3160, + 1980, + 2130 + ], + "y": [ + 20.5, + 17.5, + 14.5, + 17.5, + 12.5, + 14, + 19.5, + 14.5, + 19, + 23.5, + 14.5, + 18, + 19.5, + 18, + 21, + 15.5, + 19.5, + 15.5, + 14, + 15.5, + 14, + 16.5, + 15.5, + 14.5, + 15.5, + 14, + 16, + 16.5, + 14, + 15, + 17, + 14.5, + 13.5, + 15.5, + 16.9, + 15.3, + 14.2, + 12.2, + 15.7, + 21.9, + 16.7, + 18.6, + 14.5, + 14.1, + 12.8, + 21.5, + 15.9, + 13.6, + 15.7, + 15.8, + 14.9, + 14, + 20.1, + 24.8, + 14.7, + 14.7, + 15.8, + 21.7, + 23.7, + 19.9, + 21.8, + 15.3, + 15.1, + 14.2, + 20.4, + 19.6, + 15.3, + 24.6 + ], + "z": [ + 46, + 87, + 90, + 95, + 113, + 90, + 70, + 76, + 60, + 54, + 112, + 76, + 87, + 69, + 46, + 90, + 49, + 75, + 91, + 112, + 110, + 83, + 67, + 78, + 75, + 75, + 67, + 71, + 70, + 95, + 88, + 98, + 115, + 86, + 81, + 83, + 70, + 71, + 102, + 88, + 120, + 58, + 78, + 78, + 110, + 48, + 103, + 125, + 115, + 133, + 71, + 71, + 77, + 71, + 69, + 76, + 78, + 48, + 48, + 67, + 67, + 62, + 88, + 74, + 80, + 76, + 74, + 52 + ] + }, + { + "marker": { + "color": "rgb(0,150,207)", + "size": 5 + }, + "mode": "markers", + "name": "origin=3", + "scene": "scene", + "showlegend": true, + "textfont": { + "color": "rgb(0,30,66)" + }, + "textposition": "bottom center", + "type": "scatter3d", + "x": [ + 2372, + 2130, + 2130, + 2228, + 1773, + 1613, + 2278, + 2330, + 2288, + 2506, + 2100, + 2279, + 2379, + 2124, + 2807, + 1950, + 1836, + 1649, + 2003, + 2489, + 2391, + 2171, + 2702, + 2545, + 1795, + 1795, + 1990, + 2155, + 2930, + 2045, + 1945, + 2265, + 1985, + 2815, + 2720, + 1985, + 2070, + 1800, + 2560, + 2300, + 2515, + 2405, + 2135, + 1975, + 2020, + 1968, + 2019, + 2711, + 2542, + 2434, + 2265, + 2110, + 2110, + 1850, + 2145, + 2910, + 2420, + 2290, + 1755, + 1760, + 2065, + 1975, + 2050, + 1985, + 2210, + 2350, + 2615, + 2635, + 2900, + 2930, + 2025, + 1970, + 2160, + 2205, + 2245, + 1965, + 1965, + 1995, + 2665 + ], + "y": [ + 15, + 14.5, + 14.5, + 14, + 19, + 18, + 15.5, + 13.5, + 17, + 14.5, + 16.5, + 19, + 16.5, + 13.5, + 13.5, + 19, + 21, + 16.5, + 19, + 15, + 15.5, + 16, + 13.5, + 17, + 17.5, + 17.4, + 17, + 16.4, + 15.5, + 18.5, + 16.8, + 18.2, + 16.4, + 14.5, + 13.5, + 19.4, + 18.6, + 16.4, + 14.2, + 14.7, + 14.8, + 14.9, + 16.6, + 15.2, + 19.2, + 18.8, + 16.4, + 15.5, + 17.5, + 15, + 15.2, + 17.9, + 19.2, + 13.8, + 18, + 11.4, + 12.5, + 17, + 16.9, + 16.1, + 17.8, + 19.4, + 17.3, + 16, + 14.4, + 16.8, + 14.8, + 18.3, + 12.6, + 13.8, + 18.2, + 17.6, + 14.5, + 14.5, + 16.9, + 15, + 15.7, + 16.2, + 13.9 + ], + "z": [ + 95, + 88, + 88, + 95, + 65, + 69, + 95, + 97, + 92, + 97, + 88, + 88, + 94, + 90, + 122, + 67, + 65, + 52, + 61, + 97, + 93, + 75, + 96, + 97, + 53, + 53, + 70, + 75, + 108, + 68, + 70, + 75, + 67, + 97, + 110, + 52, + 70, + 60, + 95, + 97, + 95, + 97, + 68, + 65, + 65, + 60, + 65, + 90, + 75, + 92, + 75, + 65, + 65, + 67, + 67, + 132, + 100, + 72, + 58, + 60, + 67, + 65, + 62, + 68, + 75, + 75, + 100, + 74, + 116, + 120, + 68, + 68, + 88, + 75, + 70, + 67, + 67, + 67, + 96 + ] + }, + { + "marker": { + "color": "rgb(0,30,66)", + "size": 5 + }, + "mode": "markers", + "name": "origin=1", + "scene": "scene2", + "showlegend": false, + "textfont": { + "color": "rgb(256,200,44)" + }, + "textposition": "bottom center", + "type": "scatter3d", + "x": [ + 3504, + 3693, + 3436, + 3433, + 3449, + 4341, + 4354, + 4312, + 4425, + 3850, + 3563, + 3609, + 3761, + 3086, + 2833, + 2774, + 2587, + 2648, + 4615, + 4376, + 4382, + 4732, + 2264, + 2634, + 3439, + 3329, + 3302, + 3288, + 4209, + 4464, + 4154, + 4096, + 4955, + 4746, + 5140, + 2962, + 2408, + 3282, + 3139, + 2220, + 1955, + 2126, + 2408, + 2226, + 4274, + 4385, + 4135, + 4129, + 3672, + 4633, + 4502, + 4456, + 4422, + 3892, + 4098, + 4294, + 4077, + 2395, + 2164, + 4100, + 3672, + 3988, + 4042, + 3777, + 4952, + 4464, + 4363, + 4237, + 4735, + 4951, + 3821, + 3121, + 3278, + 2945, + 3021, + 2904, + 4997, + 4906, + 4654, + 4499, + 2789, + 2401, + 2310, + 2472, + 4082, + 4278, + 3399, + 3664, + 3102, + 2901, + 3336, + 2451, + 2542, + 3781, + 3632, + 3613, + 4141, + 4699, + 4457, + 4638, + 4257, + 2125, + 3264, + 3459, + 3432, + 3158, + 4668, + 4440, + 4498, + 4657, + 3907, + 3897, + 3730, + 3785, + 3039, + 3221, + 3169, + 2639, + 2914, + 2592, + 2984, + 3211, + 2572, + 2255, + 4215, + 4190, + 3962, + 4215, + 3233, + 3353, + 3012, + 3085, + 2035, + 2164, + 3651, + 3574, + 3645, + 3193, + 2565, + 3940, + 4380, + 4055, + 3870, + 3755, + 2155, + 2300, + 3880, + 4060, + 4140, + 4295, + 3520, + 3425, + 3630, + 3525, + 4220, + 4165, + 4325, + 4335, + 2740, + 2755, + 2051, + 2075, + 1800, + 3365, + 3735, + 3570, + 3535, + 3155, + 2965, + 2720, + 3430, + 3210, + 3380, + 3070, + 3620, + 3410, + 3425, + 3445, + 3205, + 4080, + 2155, + 2230, + 2745, + 2855, + 3245, + 2990, + 2890, + 3265, + 3360, + 3840, + 3725, + 3955, + 3830, + 4360, + 4054, + 3605, + 3940, + 1915, + 2670, + 3900, + 3420, + 2200, + 2150, + 2670, + 2595, + 2700, + 2556, + 2120, + 2678, + 2870, + 3003, + 3381, + 2800, + 2490, + 2635, + 2620, + 2725, + 2385, + 1875, + 2215, + 2045, + 2380, + 3415, + 3725, + 3060, + 3465, + 2605, + 2640, + 2395, + 2575, + 2525, + 2735, + 2865, + 2125, + 2125, + 2945, + 3015, + 2585, + 2835, + 2370, + 2950, + 2790, + 2295, + 2625, + 2720 + ], + "y": [ + 12, + 11.5, + 11, + 12, + 10.5, + 10, + 9, + 8.5, + 10, + 8.5, + 10, + 8, + 9.5, + 10, + 15.5, + 15.5, + 16, + 15, + 14, + 15, + 13.5, + 18.5, + 15.5, + 13, + 15.5, + 15.5, + 15.5, + 15.5, + 12, + 11.5, + 13.5, + 13, + 11.5, + 12, + 12, + 13.5, + 19, + 15, + 14.5, + 14, + 20.5, + 17, + 19.5, + 16.5, + 12, + 12, + 13.5, + 13, + 11.5, + 11, + 13.5, + 13.5, + 12.5, + 12.5, + 14, + 16, + 14, + 16, + 15, + 13, + 11.5, + 13, + 14.5, + 12.5, + 11.5, + 12, + 13, + 14.5, + 11, + 11, + 11, + 16.5, + 18, + 16, + 16.5, + 16, + 14, + 12.5, + 13, + 12.5, + 15, + 19.5, + 18.5, + 14, + 13, + 9.5, + 11, + 11, + 16.5, + 16, + 17, + 16.5, + 17, + 17, + 18, + 16.5, + 14, + 14.5, + 13.5, + 16, + 15.5, + 14.5, + 16, + 16, + 21, + 19.5, + 11.5, + 14, + 14.5, + 13.5, + 21, + 18.5, + 19, + 19, + 15, + 13.5, + 12, + 17, + 16, + 18.5, + 14.5, + 17, + 14.9, + 17.7, + 13, + 13, + 13.9, + 12.8, + 15.4, + 14.5, + 17.6, + 17.6, + 22.2, + 22.1, + 17.7, + 21, + 16.2, + 17.8, + 13.6, + 13.2, + 12.1, + 12, + 15, + 14, + 14.8, + 15.5, + 12.5, + 19, + 13.7, + 14.9, + 16.4, + 16.9, + 17.7, + 19, + 11.1, + 11.4, + 12.2, + 14.5, + 16, + 15.8, + 17, + 15.9, + 14.4, + 15.5, + 13.2, + 12.8, + 19.2, + 18.2, + 15.8, + 15.4, + 17.2, + 17.2, + 15.8, + 16.7, + 18.7, + 15.1, + 13.2, + 13.4, + 11.2, + 13.7, + 16.5, + 14.5, + 16.7, + 17.6, + 15.4, + 18.2, + 17.3, + 18.2, + 16.6, + 15.4, + 13.4, + 13.2, + 15.2, + 14.9, + 14.3, + 15, + 13, + 14.4, + 15, + 17.4, + 22.2, + 13.2, + 14.9, + 16, + 11.3, + 12.9, + 13.2, + 15.5, + 16.5, + 18.1, + 20.1, + 18.7, + 14.4, + 15.7, + 16.4, + 14.4, + 12.6, + 12.9, + 16.4, + 14.9, + 16.2, + 20.7, + 15.8, + 19, + 17.1, + 16.6, + 19.6, + 18.6, + 18, + 16.2, + 16, + 18, + 16.4, + 14.7, + 17.3, + 16.4, + 17, + 14.5, + 14.7, + 13, + 17.3, + 15.6, + 11.6, + 18.6, + 19.4 + ], + "z": [ + 307, + 350, + 318, + 304, + 302, + 429, + 454, + 440, + 455, + 390, + 383, + 340, + 400, + 455, + 198, + 199, + 200, + 199, + 360, + 307, + 318, + 304, + 140, + 232, + 225, + 250, + 250, + 232, + 350, + 400, + 351, + 318, + 383, + 400, + 400, + 258, + 140, + 250, + 250, + 122, + 91, + 97.5, + 140, + 122, + 350, + 400, + 318, + 351, + 304, + 429, + 350, + 350, + 400, + 304, + 307, + 302, + 318, + 122, + 98, + 350, + 304, + 350, + 302, + 318, + 429, + 400, + 351, + 318, + 440, + 455, + 360, + 225, + 250, + 232, + 250, + 198, + 400, + 400, + 360, + 350, + 232, + 140, + 122, + 155, + 350, + 400, + 318, + 350, + 198, + 232, + 250, + 122, + 140, + 250, + 258, + 225, + 302, + 350, + 318, + 302, + 304, + 90, + 225, + 250, + 250, + 250, + 400, + 350, + 318, + 351, + 231, + 250, + 258, + 225, + 231, + 262, + 302, + 140, + 232, + 140, + 171, + 232, + 140, + 98, + 305, + 318, + 304, + 351, + 225, + 250, + 200, + 232, + 85, + 98, + 225, + 250, + 250, + 258, + 140, + 318, + 350, + 350, + 302, + 318, + 111, + 122, + 305, + 260, + 318, + 302, + 250, + 231, + 225, + 250, + 400, + 350, + 400, + 351, + 151, + 140, + 98, + 98, + 98, + 260, + 318, + 302, + 231, + 200, + 200, + 140, + 225, + 232, + 231, + 200, + 225, + 258, + 305, + 231, + 302, + 318, + 98, + 105, + 156, + 151, + 231, + 200, + 140, + 232, + 225, + 305, + 302, + 351, + 318, + 350, + 351, + 267, + 360, + 98, + 121, + 350, + 260, + 105, + 105, + 151, + 173, + 173, + 151, + 98, + 151, + 140, + 151, + 225, + 156, + 135, + 151, + 156, + 173, + 135, + 86, + 105, + 98, + 98, + 231, + 350, + 200, + 225, + 112, + 112, + 112, + 112, + 135, + 151, + 140, + 105, + 98, + 181, + 262, + 156, + 232, + 135, + 151, + 140, + 135, + 120, + 119 + ] + }, + { + "marker": { + "color": "rgb(256,200,44)", + "size": 5 + }, + "mode": "markers", + "name": "origin=2", + "scene": "scene2", + "showlegend": false, + "textfont": { + "color": "rgb(256,200,44)" + }, + "textposition": "bottom center", + "type": "scatter3d", + "x": [ + 1835, + 2672, + 2430, + 2375, + 2234, + 2123, + 2074, + 2065, + 1834, + 2254, + 2933, + 2511, + 2979, + 2189, + 1950, + 2265, + 1867, + 2158, + 2582, + 2868, + 2660, + 2219, + 1963, + 2300, + 2108, + 2246, + 2000, + 2223, + 1937, + 2694, + 2957, + 2945, + 2671, + 2464, + 2220, + 2202, + 1937, + 1825, + 3150, + 3270, + 3820, + 1825, + 1940, + 2190, + 2600, + 1985, + 2830, + 3140, + 2795, + 3410, + 1990, + 1925, + 3530, + 3190, + 2130, + 2144, + 2188, + 2085, + 2335, + 2950, + 3250, + 1845, + 2500, + 2190, + 3230, + 3160, + 1980, + 2130 + ], + "y": [ + 20.5, + 17.5, + 14.5, + 17.5, + 12.5, + 14, + 19.5, + 14.5, + 19, + 23.5, + 14.5, + 18, + 19.5, + 18, + 21, + 15.5, + 19.5, + 15.5, + 14, + 15.5, + 14, + 16.5, + 15.5, + 14.5, + 15.5, + 14, + 16, + 16.5, + 14, + 15, + 17, + 14.5, + 13.5, + 15.5, + 16.9, + 15.3, + 14.2, + 12.2, + 15.7, + 21.9, + 16.7, + 18.6, + 14.5, + 14.1, + 12.8, + 21.5, + 15.9, + 13.6, + 15.7, + 15.8, + 14.9, + 14, + 20.1, + 24.8, + 14.7, + 14.7, + 15.8, + 21.7, + 23.7, + 19.9, + 21.8, + 15.3, + 15.1, + 14.2, + 20.4, + 19.6, + 15.3, + 24.6 + ], + "z": [ + 97, + 110, + 107, + 104, + 121, + 116, + 79, + 88, + 97, + 97, + 121, + 121, + 120, + 96, + 97, + 98, + 68, + 116, + 114, + 121, + 121, + 98, + 79, + 97, + 90, + 116, + 79, + 90, + 90, + 115, + 120, + 121, + 121, + 107, + 116, + 101, + 90, + 97, + 130, + 120, + 168, + 79, + 97, + 97, + 121, + 90, + 131, + 163, + 121, + 163, + 89, + 89, + 183, + 141, + 91, + 98, + 97, + 90, + 90, + 121, + 146, + 89, + 122, + 105, + 141, + 145, + 105, + 97 + ] + }, + { + "marker": { + "color": "rgb(0,150,207)", + "size": 5 + }, + "mode": "markers", + "name": "origin=3", + "scene": "scene2", + "showlegend": false, + "textfont": { + "color": "rgb(256,200,44)" + }, + "textposition": "bottom center", + "type": "scatter3d", + "x": [ + 2372, + 2130, + 2130, + 2228, + 1773, + 1613, + 2278, + 2330, + 2288, + 2506, + 2100, + 2279, + 2379, + 2124, + 2807, + 1950, + 1836, + 1649, + 2003, + 2489, + 2391, + 2171, + 2702, + 2545, + 1795, + 1795, + 1990, + 2155, + 2930, + 2045, + 1945, + 2265, + 1985, + 2815, + 2720, + 1985, + 2070, + 1800, + 2560, + 2300, + 2515, + 2405, + 2135, + 1975, + 2020, + 1968, + 2019, + 2711, + 2542, + 2434, + 2265, + 2110, + 2110, + 1850, + 2145, + 2910, + 2420, + 2290, + 1755, + 1760, + 2065, + 1975, + 2050, + 1985, + 2210, + 2350, + 2615, + 2635, + 2900, + 2930, + 2025, + 1970, + 2160, + 2205, + 2245, + 1965, + 1965, + 1995, + 2665 + ], + "y": [ + 15, + 14.5, + 14.5, + 14, + 19, + 18, + 15.5, + 13.5, + 17, + 14.5, + 16.5, + 19, + 16.5, + 13.5, + 13.5, + 19, + 21, + 16.5, + 19, + 15, + 15.5, + 16, + 13.5, + 17, + 17.5, + 17.4, + 17, + 16.4, + 15.5, + 18.5, + 16.8, + 18.2, + 16.4, + 14.5, + 13.5, + 19.4, + 18.6, + 16.4, + 14.2, + 14.7, + 14.8, + 14.9, + 16.6, + 15.2, + 19.2, + 18.8, + 16.4, + 15.5, + 17.5, + 15, + 15.2, + 17.9, + 19.2, + 13.8, + 18, + 11.4, + 12.5, + 17, + 16.9, + 16.1, + 17.8, + 19.4, + 17.3, + 16, + 14.4, + 16.8, + 14.8, + 18.3, + 12.6, + 13.8, + 18.2, + 17.6, + 14.5, + 14.5, + 16.9, + 15, + 15.7, + 16.2, + 13.9 + ], + "z": [ + 113, + 97, + 97, + 113, + 71, + 72, + 113, + 70, + 97, + 120, + 97, + 97, + 108, + 70, + 156, + 79, + 71, + 76, + 83, + 120, + 108, + 97, + 134, + 119, + 91, + 91, + 85, + 97, + 156, + 98, + 85, + 97, + 97, + 146, + 80, + 78, + 85, + 91, + 134, + 119, + 134, + 119, + 98, + 86, + 85, + 89, + 86, + 134, + 120, + 119, + 108, + 86, + 85, + 91, + 97, + 168, + 70, + 107, + 79, + 81, + 97, + 85, + 89, + 91, + 107, + 108, + 119, + 120, + 168, + 146, + 91, + 91, + 120, + 107, + 108, + 91, + 91, + 91, + 144 + ] + } + ], + "layout": { + "height": 1200, + "scene": { + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0.575, + 1 + ] + }, + "xaxis": { + "title": { + "text": "weight" + } + }, + "yaxis": { + "title": { + "text": "accel" + } + }, + "zaxis": { + "title": { + "text": "hp" + } + } + }, + "scene2": { + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 0.425 + ] + }, + "xaxis": { + "title": { + "text": "weight" + } + }, + "yaxis": { + "title": { + "text": "accel" + } + }, + "zaxis": { + "title": { + "text": "displ" + } + } + }, + "showlegend": true, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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 + }, + "autotypenumbers": "strict", + "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": [ + "t.scatter3d(\"weight\", 'accel', [\"hp\", \"displ\"], group=\"origin\", fit_line = True)" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "C:\\Users\\Toshi\\anaconda3\\lib\\site-packages\\datascience\\tables.py:4515: UserWarning:\n", + "\n", + "Do not pass both colors and group to scatter3d\n", + "\n" + ] + }, + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "marker": { + "color": "rgb(0,30,66)", + "size": 5 + }, + "mode": "markers", + "name": "origin=1", + "scene": "scene", + "showlegend": true, + "textfont": { + "color": "rgb(0,30,66)" + }, + "textposition": "bottom center", + "type": "scatter3d", + "x": [ + 3504, + 3693, + 3436, + 3433, + 3449, + 4341, + 4354, + 4312, + 4425, + 3850, + 3563, + 3609, + 3761, + 3086, + 2833, + 2774, + 2587, + 2648, + 4615, + 4376, + 4382, + 4732, + 2264, + 2634, + 3439, + 3329, + 3302, + 3288, + 4209, + 4464, + 4154, + 4096, + 4955, + 4746, + 5140, + 2962, + 2408, + 3282, + 3139, + 2220, + 1955, + 2126, + 2408, + 2226, + 4274, + 4385, + 4135, + 4129, + 3672, + 4633, + 4502, + 4456, + 4422, + 3892, + 4098, + 4294, + 4077, + 2395, + 2164, + 4100, + 3672, + 3988, + 4042, + 3777, + 4952, + 4464, + 4363, + 4237, + 4735, + 4951, + 3821, + 3121, + 3278, + 2945, + 3021, + 2904, + 4997, + 4906, + 4654, + 4499, + 2789, + 2401, + 2310, + 2472, + 4082, + 4278, + 3399, + 3664, + 3102, + 2901, + 3336, + 2451, + 2542, + 3781, + 3632, + 3613, + 4141, + 4699, + 4457, + 4638, + 4257, + 2125, + 3264, + 3459, + 3432, + 3158, + 4668, + 4440, + 4498, + 4657, + 3907, + 3897, + 3730, + 3785, + 3039, + 3221, + 3169, + 2639, + 2914, + 2592, + 2984, + 3211, + 2572, + 2255, + 4215, + 4190, + 3962, + 4215, + 3233, + 3353, + 3012, + 3085, + 2035, + 2164, + 3651, + 3574, + 3645, + 3193, + 2565, + 3940, + 4380, + 4055, + 3870, + 3755, + 2155, + 2300, + 3880, + 4060, + 4140, + 4295, + 3520, + 3425, + 3630, + 3525, + 4220, + 4165, + 4325, + 4335, + 2740, + 2755, + 2051, + 2075, + 1800, + 3365, + 3735, + 3570, + 3535, + 3155, + 2965, + 2720, + 3430, + 3210, + 3380, + 3070, + 3620, + 3410, + 3425, + 3445, + 3205, + 4080, + 2155, + 2230, + 2745, + 2855, + 3245, + 2990, + 2890, + 3265, + 3360, + 3840, + 3725, + 3955, + 3830, + 4360, + 4054, + 3605, + 3940, + 1915, + 2670, + 3900, + 3420, + 2200, + 2150, + 2670, + 2595, + 2700, + 2556, + 2120, + 2678, + 2870, + 3003, + 3381, + 2800, + 2490, + 2635, + 2620, + 2725, + 2385, + 1875, + 2215, + 2045, + 2380, + 3415, + 3725, + 3060, + 3465, + 2605, + 2640, + 2395, + 2575, + 2525, + 2735, + 2865, + 2125, + 2125, + 2945, + 3015, + 2585, + 2835, + 2370, + 2950, + 2790, + 2295, + 2625, + 2720 + ], + "y": [ + 130, + 165, + 150, + 150, + 140, + 198, + 220, + 215, + 225, + 190, + 170, + 160, + 150, + 225, + 95, + 97, + 85, + 90, + 215, + 200, + 210, + 193, + 90, + 100, + 105, + 100, + 88, + 100, + 165, + 175, + 153, + 150, + 180, + 170, + 175, + 110, + 72, + 100, + 88, + 86, + 70, + 80, + 90, + 86, + 165, + 175, + 150, + 153, + 150, + 208, + 155, + 160, + 190, + 150, + 130, + 140, + 150, + 86, + 80, + 175, + 150, + 145, + 137, + 150, + 198, + 150, + 158, + 150, + 215, + 225, + 175, + 105, + 100, + 100, + 88, + 95, + 150, + 167, + 170, + 180, + 100, + 72, + 85, + 107, + 145, + 230, + 150, + 180, + 95, + 100, + 100, + 80, + 75, + 100, + 110, + 105, + 140, + 150, + 150, + 140, + 150, + 75, + 95, + 105, + 72, + 72, + 170, + 145, + 150, + 148, + 110, + 105, + 110, + 95, + 110, + 110, + 129, + 83, + 100, + 78, + 97, + 90, + 92, + 79, + 140, + 150, + 120, + 152, + 100, + 105, + 81, + 90, + 52, + 60, + 100, + 78, + 110, + 95, + 72, + 150, + 180, + 145, + 130, + 150, + 80, + 96, + 145, + 110, + 145, + 130, + 110, + 105, + 100, + 98, + 180, + 170, + 190, + 149, + 88, + 89, + 63, + 83, + 66, + 110, + 140, + 139, + 105, + 95, + 85, + 88, + 100, + 90, + 105, + 85, + 110, + 120, + 145, + 165, + 139, + 140, + 68, + 75, + 105, + 85, + 115, + 85, + 88, + 90, + 110, + 130, + 129, + 138, + 135, + 155, + 142, + 125, + 150, + 80, + 80, + 125, + 90, + 70, + 70, + 90, + 115, + 115, + 90, + 70, + 90, + 88, + 90, + 90, + 105, + 84, + 84, + 92, + 110, + 84, + 64, + 63, + 65, + 65, + 110, + 105, + 88, + 85, + 88, + 88, + 88, + 85, + 84, + 90, + 92, + 63, + 70, + 110, + 85, + 92, + 112, + 84, + 90, + 86, + 84, + 79, + 82 + ], + "z": [ + 12, + 11.5, + 11, + 12, + 10.5, + 10, + 9, + 8.5, + 10, + 8.5, + 10, + 8, + 9.5, + 10, + 15.5, + 15.5, + 16, + 15, + 14, + 15, + 13.5, + 18.5, + 15.5, + 13, + 15.5, + 15.5, + 15.5, + 15.5, + 12, + 11.5, + 13.5, + 13, + 11.5, + 12, + 12, + 13.5, + 19, + 15, + 14.5, + 14, + 20.5, + 17, + 19.5, + 16.5, + 12, + 12, + 13.5, + 13, + 11.5, + 11, + 13.5, + 13.5, + 12.5, + 12.5, + 14, + 16, + 14, + 16, + 15, + 13, + 11.5, + 13, + 14.5, + 12.5, + 11.5, + 12, + 13, + 14.5, + 11, + 11, + 11, + 16.5, + 18, + 16, + 16.5, + 16, + 14, + 12.5, + 13, + 12.5, + 15, + 19.5, + 18.5, + 14, + 13, + 9.5, + 11, + 11, + 16.5, + 16, + 17, + 16.5, + 17, + 17, + 18, + 16.5, + 14, + 14.5, + 13.5, + 16, + 15.5, + 14.5, + 16, + 16, + 21, + 19.5, + 11.5, + 14, + 14.5, + 13.5, + 21, + 18.5, + 19, + 19, + 15, + 13.5, + 12, + 17, + 16, + 18.5, + 14.5, + 17, + 14.9, + 17.7, + 13, + 13, + 13.9, + 12.8, + 15.4, + 14.5, + 17.6, + 17.6, + 22.2, + 22.1, + 17.7, + 21, + 16.2, + 17.8, + 13.6, + 13.2, + 12.1, + 12, + 15, + 14, + 14.8, + 15.5, + 12.5, + 19, + 13.7, + 14.9, + 16.4, + 16.9, + 17.7, + 19, + 11.1, + 11.4, + 12.2, + 14.5, + 16, + 15.8, + 17, + 15.9, + 14.4, + 15.5, + 13.2, + 12.8, + 19.2, + 18.2, + 15.8, + 15.4, + 17.2, + 17.2, + 15.8, + 16.7, + 18.7, + 15.1, + 13.2, + 13.4, + 11.2, + 13.7, + 16.5, + 14.5, + 16.7, + 17.6, + 15.4, + 18.2, + 17.3, + 18.2, + 16.6, + 15.4, + 13.4, + 13.2, + 15.2, + 14.9, + 14.3, + 15, + 13, + 14.4, + 15, + 17.4, + 22.2, + 13.2, + 14.9, + 16, + 11.3, + 12.9, + 13.2, + 15.5, + 16.5, + 18.1, + 20.1, + 18.7, + 14.4, + 15.7, + 16.4, + 14.4, + 12.6, + 12.9, + 16.4, + 14.9, + 16.2, + 20.7, + 15.8, + 19, + 17.1, + 16.6, + 19.6, + 18.6, + 18, + 16.2, + 16, + 18, + 16.4, + 14.7, + 17.3, + 16.4, + 17, + 14.5, + 14.7, + 13, + 17.3, + 15.6, + 11.6, + 18.6, + 19.4 + ] + }, + { + "marker": { + "color": "rgb(256,200,44)", + "size": 5 + }, + "mode": "markers", + "name": "origin=2", + "scene": "scene", + "showlegend": true, + "textfont": { + "color": "rgb(0,30,66)" + }, + "textposition": "bottom center", + "type": "scatter3d", + "x": [ + 1835, + 2672, + 2430, + 2375, + 2234, + 2123, + 2074, + 2065, + 1834, + 2254, + 2933, + 2511, + 2979, + 2189, + 1950, + 2265, + 1867, + 2158, + 2582, + 2868, + 2660, + 2219, + 1963, + 2300, + 2108, + 2246, + 2000, + 2223, + 1937, + 2694, + 2957, + 2945, + 2671, + 2464, + 2220, + 2202, + 1937, + 1825, + 3150, + 3270, + 3820, + 1825, + 1940, + 2190, + 2600, + 1985, + 2830, + 3140, + 2795, + 3410, + 1990, + 1925, + 3530, + 3190, + 2130, + 2144, + 2188, + 2085, + 2335, + 2950, + 3250, + 1845, + 2500, + 2190, + 3230, + 3160, + 1980, + 2130 + ], + "y": [ + 46, + 87, + 90, + 95, + 113, + 90, + 70, + 76, + 60, + 54, + 112, + 76, + 87, + 69, + 46, + 90, + 49, + 75, + 91, + 112, + 110, + 83, + 67, + 78, + 75, + 75, + 67, + 71, + 70, + 95, + 88, + 98, + 115, + 86, + 81, + 83, + 70, + 71, + 102, + 88, + 120, + 58, + 78, + 78, + 110, + 48, + 103, + 125, + 115, + 133, + 71, + 71, + 77, + 71, + 69, + 76, + 78, + 48, + 48, + 67, + 67, + 62, + 88, + 74, + 80, + 76, + 74, + 52 + ], + "z": [ + 20.5, + 17.5, + 14.5, + 17.5, + 12.5, + 14, + 19.5, + 14.5, + 19, + 23.5, + 14.5, + 18, + 19.5, + 18, + 21, + 15.5, + 19.5, + 15.5, + 14, + 15.5, + 14, + 16.5, + 15.5, + 14.5, + 15.5, + 14, + 16, + 16.5, + 14, + 15, + 17, + 14.5, + 13.5, + 15.5, + 16.9, + 15.3, + 14.2, + 12.2, + 15.7, + 21.9, + 16.7, + 18.6, + 14.5, + 14.1, + 12.8, + 21.5, + 15.9, + 13.6, + 15.7, + 15.8, + 14.9, + 14, + 20.1, + 24.8, + 14.7, + 14.7, + 15.8, + 21.7, + 23.7, + 19.9, + 21.8, + 15.3, + 15.1, + 14.2, + 20.4, + 19.6, + 15.3, + 24.6 + ] + }, + { + "marker": { + "color": "rgb(0,150,207)", + "size": 5 + }, + "mode": "markers", + "name": "origin=3", + "scene": "scene", + "showlegend": true, + "textfont": { + "color": "rgb(0,30,66)" + }, + "textposition": "bottom center", + "type": "scatter3d", + "x": [ + 2372, + 2130, + 2130, + 2228, + 1773, + 1613, + 2278, + 2330, + 2288, + 2506, + 2100, + 2279, + 2379, + 2124, + 2807, + 1950, + 1836, + 1649, + 2003, + 2489, + 2391, + 2171, + 2702, + 2545, + 1795, + 1795, + 1990, + 2155, + 2930, + 2045, + 1945, + 2265, + 1985, + 2815, + 2720, + 1985, + 2070, + 1800, + 2560, + 2300, + 2515, + 2405, + 2135, + 1975, + 2020, + 1968, + 2019, + 2711, + 2542, + 2434, + 2265, + 2110, + 2110, + 1850, + 2145, + 2910, + 2420, + 2290, + 1755, + 1760, + 2065, + 1975, + 2050, + 1985, + 2210, + 2350, + 2615, + 2635, + 2900, + 2930, + 2025, + 1970, + 2160, + 2205, + 2245, + 1965, + 1965, + 1995, + 2665 + ], + "y": [ + 95, + 88, + 88, + 95, + 65, + 69, + 95, + 97, + 92, + 97, + 88, + 88, + 94, + 90, + 122, + 67, + 65, + 52, + 61, + 97, + 93, + 75, + 96, + 97, + 53, + 53, + 70, + 75, + 108, + 68, + 70, + 75, + 67, + 97, + 110, + 52, + 70, + 60, + 95, + 97, + 95, + 97, + 68, + 65, + 65, + 60, + 65, + 90, + 75, + 92, + 75, + 65, + 65, + 67, + 67, + 132, + 100, + 72, + 58, + 60, + 67, + 65, + 62, + 68, + 75, + 75, + 100, + 74, + 116, + 120, + 68, + 68, + 88, + 75, + 70, + 67, + 67, + 67, + 96 + ], + "z": [ + 15, + 14.5, + 14.5, + 14, + 19, + 18, + 15.5, + 13.5, + 17, + 14.5, + 16.5, + 19, + 16.5, + 13.5, + 13.5, + 19, + 21, + 16.5, + 19, + 15, + 15.5, + 16, + 13.5, + 17, + 17.5, + 17.4, + 17, + 16.4, + 15.5, + 18.5, + 16.8, + 18.2, + 16.4, + 14.5, + 13.5, + 19.4, + 18.6, + 16.4, + 14.2, + 14.7, + 14.8, + 14.9, + 16.6, + 15.2, + 19.2, + 18.8, + 16.4, + 15.5, + 17.5, + 15, + 15.2, + 17.9, + 19.2, + 13.8, + 18, + 11.4, + 12.5, + 17, + 16.9, + 16.1, + 17.8, + 19.4, + 17.3, + 16, + 14.4, + 16.8, + 14.8, + 18.3, + 12.6, + 13.8, + 18.2, + 17.6, + 14.5, + 14.5, + 16.9, + 15, + 15.7, + 16.2, + 13.9 + ] + } + ], + "layout": { + "scene": { + "domain": { + "x": [ + 0, + 1 + ], + "y": [ + 0, + 1 + ] + }, + "xaxis": { + "title": { + "text": "weight" + } + }, + "yaxis": { + "title": { + "text": "hp" + } + }, + "zaxis": { + "title": { + "text": "accel" + } + } + }, + "showlegend": true, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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 + }, + "autotypenumbers": "strict", + "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": [ + "t.scatter3d(\"weight\", \"hp\", \"accel\", group=\"origin\", colors= \"red\")" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# _split_column_and_labels test" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": { + "scrolled": true + }, + "outputs": [ + { + "data": { + "text/plain": [ + "(array([ 18. , 15. , 18. , 16. , 17. , 15. , 14. , 14. , 14. ,\n", + " 15. , 15. , 14. , 15. , 14. , 24. , 22. , 18. , 21. ,\n", + " 27. , 26. , 25. , 24. , 25. , 26. , 21. , 10. , 10. ,\n", + " 11. , 9. , 27. , 28. , 25. , 19. , 16. , 17. , 19. ,\n", + " 18. , 14. , 14. , 14. , 14. , 12. , 13. , 13. , 18. ,\n", + " 22. , 19. , 18. , 23. , 28. , 30. , 30. , 31. , 35. ,\n", + " 27. , 26. , 24. , 25. , 23. , 20. , 21. , 13. , 14. ,\n", + " 15. , 14. , 17. , 11. , 13. , 12. , 13. , 19. , 15. ,\n", + " 13. , 13. , 14. , 18. , 22. , 21. , 26. , 22. , 28. ,\n", + " 23. , 28. , 27. , 13. , 14. , 13. , 14. , 15. , 12. ,\n", + " 13. , 13. , 14. , 13. , 12. , 13. , 18. , 16. , 18. ,\n", + " 18. , 23. , 26. , 11. , 12. , 13. , 12. , 18. , 20. ,\n", + " 21. , 22. , 18. , 19. , 21. , 26. , 15. , 16. , 29. ,\n", + " 24. , 20. , 19. , 15. , 24. , 20. , 11. , 20. , 19. ,\n", + " 15. , 31. , 26. , 32. , 25. , 16. , 16. , 18. , 16. ,\n", + " 13. , 14. , 14. , 14. , 29. , 26. , 26. , 31. , 32. ,\n", + " 28. , 24. , 26. , 24. , 26. , 31. , 19. , 18. , 15. ,\n", + " 15. , 16. , 15. , 16. , 14. , 17. , 16. , 15. , 18. ,\n", + " 21. , 20. , 13. , 29. , 23. , 20. , 23. , 24. , 25. ,\n", + " 24. , 18. , 29. , 19. , 23. , 23. , 22. , 25. , 33. ,\n", + " 28. , 25. , 25. , 26. , 27. , 17.5, 16. , 15.5, 14.5,\n", + " 22. , 22. , 24. , 22.5, 29. , 24.5, 29. , 33. , 20. ,\n", + " 18. , 18.5, 17.5, 29.5, 32. , 28. , 26.5, 20. , 13. ,\n", + " 19. , 19. , 16.5, 16.5, 13. , 13. , 13. , 31.5, 30. ,\n", + " 36. , 25.5, 33.5, 17.5, 17. , 15.5, 15. , 17.5, 20.5,\n", + " 19. , 18.5, 16. , 15.5, 15.5, 16. , 29. , 24.5, 26. ,\n", + " 25.5, 30.5, 33.5, 30. , 30.5, 22. , 21.5, 21.5, 43.1,\n", + " 36.1, 32.8, 39.4, 36.1, 19.9, 19.4, 20.2, 19.2, 20.5,\n", + " 20.2, 25.1, 20.5, 19.4, 20.6, 20.8, 18.6, 18.1, 19.2,\n", + " 17.7, 18.1, 17.5, 30. , 27.5, 27.2, 30.9, 21.1, 23.2,\n", + " 23.8, 23.9, 20.3, 17. , 21.6, 16.2, 31.5, 29.5, 21.5,\n", + " 19.8, 22.3, 20.2, 20.6, 17. , 17.6, 16.5, 18.2, 16.9,\n", + " 15.5, 19.2, 18.5, 31.9, 34.1, 35.7, 27.4, 25.4, 23. ,\n", + " 27.2, 23.9, 34.2, 34.5, 31.8, 37.3, 28.4, 28.8, 26.8,\n", + " 33.5, 41.5, 38.1, 32.1, 37.2, 28. , 26.4, 24.3, 19.1,\n", + " 34.3, 29.8, 31.3, 37. , 32.2, 46.6, 27.9, 40.8, 44.3,\n", + " 43.4, 36.4, 30. , 44.6, 33.8, 29.8, 32.7, 23.7, 35. ,\n", + " 32.4, 27.2, 26.6, 25.8, 23.5, 30. , 39.1, 39. , 35.1,\n", + " 32.3, 37. , 37.7, 34.1, 34.7, 34.4, 29.9, 33. , 33.7,\n", + " 32.4, 32.9, 31.6, 28.1, 30.7, 25.4, 24.2, 22.4, 26.6,\n", + " 20.2, 17.6, 28. , 27. , 34. , 31. , 29. , 27. , 24. ,\n", + " 36. , 37. , 31. , 38. , 36. , 36. , 36. , 34. , 38. ,\n", + " 32. , 38. , 25. , 38. , 26. , 22. , 32. , 36. , 27. ,\n", + " 27. , 44. , 32. , 28. , 31. ]),\n", + " ['cyl', 'displ', 'hp', 'weight', 'accel', 'yr', 'origin', 'name'])" + ] + }, + "execution_count": 29, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "t._split_column_and_labels('mpg') #needs to return mpg values and all labels" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# hist_of_counts" + ] + }, + { + "cell_type": "code", + "execution_count": 49, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "customdata": [ + "(3.0, 5.18)", + "(5.18, 7.36)", + "(7.36, 9.54)", + "(9.54, 11.72)", + "(11.72, 13.9)", + "(13.9, 16.08)", + "(16.08, 18.26)", + "(18.26, 20.44)", + "(20.44, 22.62)", + "(22.62, 24.8)", + "(24.8, 24.8)" + ], + "hovertemplate": "Bin Endpoints: %{customdata}
Bar Height: %{y}", + "marker": { + "color": "rgb(0,30,66)" + }, + "name": "cyl", + "opacity": 0.7, + "type": "bar", + "width": [ + 2.1799999999999997, + 2.1800000000000006, + 2.1800000000000006, + 2.1799999999999997, + 2.1799999999999997, + 2.1800000000000015, + 2.1799999999999997, + 2.1799999999999997, + 2.1799999999999997, + 2.1799999999999997 + ], + "x": [ + 4.09, + 6.27, + 8.450000000000001, + 10.63, + 12.81, + 14.990000000000002, + 17.17, + 19.35, + 21.53, + 23.71 + ], + "y": [ + 206, + 83, + 103, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + { + "customdata": [ + "(3.0, 5.18)", + "(5.18, 7.36)", + "(7.36, 9.54)", + "(9.54, 11.72)", + "(11.72, 13.9)", + "(13.9, 16.08)", + "(16.08, 18.26)", + "(18.26, 20.44)", + "(20.44, 22.62)", + "(22.62, 24.8)", + "(24.8, 24.8)" + ], + "hovertemplate": "Bin Endpoints: %{customdata}
Bar Height: %{y}", + "marker": { + "color": "rgb(256,200,44)" + }, + "name": "accel", + "opacity": 0.7, + "type": "bar", + "width": [ + 2.1799999999999997, + 2.1800000000000006, + 2.1800000000000006, + 2.1799999999999997, + 2.1799999999999997, + 2.1800000000000015, + 2.1799999999999997, + 2.1799999999999997, + 2.1799999999999997, + 2.1799999999999997 + ], + "x": [ + 4.09, + 6.27, + 8.450000000000001, + 10.63, + 12.81, + 14.990000000000002, + 17.17, + 19.35, + 21.53, + 23.71 + ], + "y": [ + 0, + 0, + 6, + 25, + 69, + 142, + 89, + 42, + 15, + 3 + ] + } + ], + "layout": { + "barmode": "overlay", + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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 + }, + "autotypenumbers": "strict", + "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 + } + } + }, + "yaxis": { + "automargin": true, + "title": { + "text": "Count" + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "t.hist_of_counts('cyl','accel', side_by_side = False)" + ] + }, + { + "cell_type": "code", + "execution_count": 51, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "customdata": [ + "(3.0, 5.18)", + "(5.18, 7.36)", + "(7.36, 9.54)", + "(9.54, 11.72)", + "(11.72, 13.9)", + "(13.9, 16.08)", + "(16.08, 18.26)", + "(18.26, 20.44)", + "(20.44, 22.62)", + "(22.62, 24.8)", + "(24.8, 24.8)" + ], + "hovertemplate": "Bin Endpoints: %{customdata}
Bar Height: %{y}", + "marker": { + "color": "rgb(0,30,66)" + }, + "name": "cyl", + "opacity": 0.7, + "type": "bar", + "x": [ + 4.09, + 6.27, + 8.450000000000001, + 10.63, + 12.81, + 14.990000000000002, + 17.17, + 19.35, + 21.53, + 23.71 + ], + "y": [ + 206, + 83, + 103, + 0, + 0, + 0, + 0, + 0, + 0, + 0 + ] + }, + { + "customdata": [ + "(3.0, 5.18)", + "(5.18, 7.36)", + "(7.36, 9.54)", + "(9.54, 11.72)", + "(11.72, 13.9)", + "(13.9, 16.08)", + "(16.08, 18.26)", + "(18.26, 20.44)", + "(20.44, 22.62)", + "(22.62, 24.8)", + "(24.8, 24.8)" + ], + "hovertemplate": "Bin Endpoints: %{customdata}
Bar Height: %{y}", + "marker": { + "color": "rgb(256,200,44)" + }, + "name": "accel", + "opacity": 0.7, + "type": "bar", + "x": [ + 4.09, + 6.27, + 8.450000000000001, + 10.63, + 12.81, + 14.990000000000002, + 17.17, + 19.35, + 21.53, + 23.71 + ], + "y": [ + 0, + 0, + 6, + 25, + 69, + 142, + 89, + 42, + 15, + 3 + ] + } + ], + "layout": { + "barmode": "group", + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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 + }, + "autotypenumbers": "strict", + "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 + } + } + }, + "yaxis": { + "automargin": true, + "title": { + "text": "Count" + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "t.hist_of_counts('cyl','accel', side_by_side = True)" + ] + }, + { + "cell_type": "code", + "execution_count": 53, + "metadata": {}, + "outputs": [ + { + "data": { + "application/vnd.plotly.v1+json": { + "config": { + "plotlyServerURL": "https://plot.ly" + }, + "data": [ + { + "customdata": [ + "(3.0, 3.5)", + "(3.5, 4.0)", + "(4.0, 4.5)", + "(4.5, 5.0)", + "(5.0, 5.5)", + "(5.5, 6.0)", + "(6.0, 6.5)", + "(6.5, 7.0)", + "(7.0, 7.5)", + "(7.5, 8.0)", + "(8.0, 8.0)" + ], + "hovertemplate": "Bin Endpoints: %{customdata}
Bar Height: %{y}", + "marker": { + "color": "rgb(0,30,66)" + }, + "name": "cyl", + "opacity": 0.7, + "type": "bar", + "width": [ + 0.5, + 0.5, + 0.5, + 0.5, + 0.5, + 0.5, + 0.5, + 0.5, + 0.5, + 0.5 + ], + "x": [ + 3.25, + 3.75, + 4.25, + 4.75, + 5.25, + 5.75, + 6.25, + 6.75, + 7.25, + 7.75 + ], + "xaxis": "x", + "y": [ + 4, + 0, + 199, + 0, + 3, + 0, + 83, + 0, + 0, + 0 + ], + "yaxis": "y" + }, + { + "customdata": [ + "(8.0, 9.68)", + "(9.68, 11.36)", + "(11.36, 13.04)", + "(13.04, 14.72)", + "(14.72, 16.4)", + "(16.4, 18.08)", + "(18.08, 19.76)", + "(19.76, 21.44)", + "(21.44, 23.12)", + "(23.12, 24.8)", + "(24.8, 24.8)" + ], + "hovertemplate": "Bin Endpoints: %{customdata}
Bar Height: %{y}", + "marker": { + "color": "rgb(256,200,44)" + }, + "name": "accel", + "opacity": 0.7, + "type": "bar", + "width": [ + 1.6799999999999997, + 1.6799999999999997, + 1.6800000000000015, + 1.6799999999999997, + 1.679999999999998, + 1.6800000000000033, + 1.6799999999999997, + 1.6799999999999997, + 1.6799999999999997, + 1.6799999999999997 + ], + "x": [ + 8.84, + 10.52, + 12.2, + 13.88, + 15.559999999999999, + 17.240000000000002, + 18.92, + 20.6, + 22.28, + 23.96 + ], + "xaxis": "x2", + "y": [ + 6, + 15, + 50, + 85, + 91, + 78, + 44, + 12, + 7, + 3 + ], + "yaxis": "y2" + } + ], + "layout": { + "height": 800, + "showlegend": false, + "template": { + "data": { + "bar": [ + { + "error_x": { + "color": "#2a3f5f" + }, + "error_y": { + "color": "#2a3f5f" + }, + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "type": "bar" + } + ], + "barpolar": [ + { + "marker": { + "line": { + "color": "#E5ECF6", + "width": 0.5 + }, + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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": { + "pattern": { + "fillmode": "overlay", + "size": 10, + "solidity": 0.2 + } + }, + "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 + }, + "autotypenumbers": "strict", + "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": "cyl " + } + }, + "xaxis2": { + "anchor": "y2", + "domain": [ + 0, + 1 + ], + "title": { + "text": "accel " + } + }, + "yaxis": { + "anchor": "x", + "automargin": true, + "domain": [ + 0.575, + 1 + ], + "title": { + "text": "Count" + } + }, + "yaxis2": { + "anchor": "x2", + "automargin": true, + "domain": [ + 0, + 0.425 + ], + "title": { + "text": "Count" + } + } + } + }, + "text/html": [ + "
" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "t.hist_of_counts('cyl','accel', overlay = False) #plots 2 seperate histograms" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "# _RowTaker and _RowExcluder" + ] + }, + { + "cell_type": "code", + "execution_count": 54, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
mpg cyl displ hp weight accel yr origin name
18 8 307 130 3504 12 70 1 chevrolet chevelle malibu
" + ], + "text/plain": [ + "mpg | cyl | displ | hp | weight | accel | yr | origin | name\n", + "18 | 8 | 307 | 130 | 3504 | 12 | 70 | 1 | chevrolet chevelle malibu" + ] + }, + "execution_count": 54, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "t.take(0) #returns 1st row of the table" + ] + }, + { + "cell_type": "code", + "execution_count": 55, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
mpg cyl displ hp weight accel yr origin name
31 4 119 82 2720 19.4 82 1 chevy s-10
" + ], + "text/plain": [ + "mpg | cyl | displ | hp | weight | accel | yr | origin | name\n", + "31 | 4 | 119 | 82 | 2720 | 19.4 | 82 | 1 | chevy s-10" + ] + }, + "execution_count": 55, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "t.take(-1) #return last row of the table" + ] + }, + { + "cell_type": "code", + "execution_count": 59, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
mpg cyl displ hp weight accel yr origin name
25.5 4 140 89 2755 15.8 77 1 ford mustang ii 2+2
32.3 4 97 67 2065 17.8 81 3 subaru
" + ], + "text/plain": [ + "mpg | cyl | displ | hp | weight | accel | yr | origin | name\n", + "25.5 | 4 | 140 | 89 | 2755 | 15.8 | 77 | 1 | ford mustang ii 2+2\n", + "32.3 | 4 | 97 | 67 | 2065 | 17.8 | 81 | 3 | subaru" + ] + }, + "execution_count": 59, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import random\n", + "t.exclude(random.sample(range(392), 390)) #exclude 390 rows out of 392" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { @@ -124530,7 +137756,7 @@ }, "anaconda-cloud": {}, "kernelspec": { - "display_name": "Python 3", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -124544,7 +137770,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.9" + "version": "3.9.12" } }, "nbformat": 4,