{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "602d79a8", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": 1, "id": "077b6d03", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "PosixPath('/Users/derekthomas/projects/shotshaper_app')" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "from pathlib import Path\n", "\n", "import matplotlib.pyplot as plt\n", "from matplotlib.animation import FuncAnimation\n", "\n", "import numpy as np\n", "\n", "proj_dir = Path.cwd().parent\n", "proj_dir" ] }, { "cell_type": "code", "execution_count": 2, "id": "fbec8bf2", "metadata": {}, "outputs": [], "source": [ "import sys\n", "sys.path.append(str(proj_dir))\n", "\n", "from shotshaper.projectile import DiscGolfDisc\n", "from app.visualize_disc import get_stl, get_plot" ] }, { "cell_type": "code", "execution_count": 61, "id": "3fae5e12", "metadata": {}, "outputs": [], "source": [ "disc_names = {\n", " 'Innova Wraith': 'dd2',\n", " 'Innova Firebird': 'cd1',\n", " 'Innova Roadrunner': 'cd5',\n", " 'Innova Fairway Driver': 'fd2',\n", " }\n", "disc_name = 'dd2'\n", "\n", "U = 24.2\n", "omega = 116.8\n", "z0 = 1.3\n", "pos = np.array((0, 0, z0))\n", "pitch = 15.5\n", "nose = 0.0\n", "roll = 14.7\n", "\n", "disc_dict = DiscGolfDisc(disc_name)\n", "\n", "shot = disc_dict.shoot(speed=U, omega=omega, pitch=pitch,\n", " position=pos, nose_angle=nose, roll_angle=roll)\n", "\n", "# Plot trajectory\n", "x, y, z = shot.position" ] }, { "cell_type": "code", "execution_count": 62, "id": "3197d909", "metadata": {}, "outputs": [], "source": [ "reverse=True" ] }, { "cell_type": "code", "execution_count": 63, "id": "cb495cca", "metadata": {}, "outputs": [], "source": [ "if reverse:\n", " x,y = y,x" ] }, { "cell_type": "code", "execution_count": 46, "id": "ddd260f0", "metadata": {}, "outputs": [], "source": [ "import plotly.io as pio\n", "\n", "pio.templates.default = \"seaborn\"" ] }, { "cell_type": "code", "execution_count": 50, "id": "5d8db99e", "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "line": { "color": "black", "width": 1 }, "mode": "lines", "type": "scatter", "x": [ 0, 0.0010983589941245442, 0.00427619745063529, 0.009365653406349208, 0.016205620162965298, 0.02463844175531675, 0.034508742586064935, 0.04566244978621435, 0.057946701262729224, 0.0712098456985336, 0.08530144255251122, 0.1000706867945729, 0.11536754138326388, 0.13105196805892474, 0.14698472581081257, 0.16302667989274092, 0.17903880182307982, 0.19488216938475592, 0.21042010093238206, 0.2255303918040158, 0.2400941529618775, 0.2539941125955256, 0.26711510792876336, 0.27934408521963855, 0.29057009976044373, 0.300685743957656, 0.309593655450644, 0.31719802747772946, 0.3234076468096852, 0.32813661323363996, 0.3313043395530784, 0.33283555158784134, 0.3326602881741255, 0.33071390116448374, 0.3269370554278247, 0.3212757288494131, 0.3136930280801147, 0.3041588254540771, 0.29262071076803087, 0.27903290120181323, 0.26335685051262864, 0.2455612490350489, 0.22562202368101322, 0.20352233793982843, 0.1792525918781689, 0.1528104221400761, 0.12420070194695887, 0.09343554109759394, 0.060534285968125434, 0.025520046231359828, -0.011616497219535962, -0.050888014639398266, -0.092298715172146, -0.1358469561082469, -0.18152524288471686, -0.22932022908511934, -0.27921271643956597, -0.3311776548247172, -0.38518414226378156, -0.44119542492651537, -0.49916889712922247, -0.5590561013347564, -0.6208029971066803, -0.6844038687076884, -0.7498500581699944, -0.8170979263286259, -0.8861037874492588, -0.9568239092282187, -1.0292145127924766, -1.1032317726996548, -1.1788318169380245, -1.2559707269265017, -1.3346045375146547, -1.4146892369826987, -1.4961807670414977, -1.5790349940802104, -1.663201610016293, -1.7486203851470916, -1.8352310774273644, -1.9229738365440703, -2.0117892039163756, -2.1016181126956495, -2.1924018877654654, -2.284082245741601, -2.3766012949720365, -2.469901535536957, -2.5639258592487546, -2.6586175496520195, -2.7539172698514673, -2.849738649150951, -2.9460074195778514, -3.0426525381277245, -3.139600594522026, -3.2367758112081173, -3.334100043359261, -3.4314927788746195, -3.5288711383792597, -3.6261498752241508, -3.7232413754861624, -3.82005565796807, -3.9165003741985442, -4.012479933302324, -4.107895462246632, -4.202649239569367, -4.296642196632203, -4.38977375741116, -4.481941838496603, -4.573042849093244, -4.662971691020136, -4.751621758710683, -4.838884939212635, -4.924651612188081, -5.008812097338238, -5.091257117468792, -5.171874219913148, -5.250550441340474, -5.3271723824195005, -5.401626207818531, -5.473797646205435, -5.543571990247649, -5.610834096612183, -5.675468385965606, -5.737369241314975, -5.796446642679979, -5.85256219189122, -5.9055778527653295, -5.955360459130243, -6.001781714825189, -6.044718193700705, -6.0840513396186235, -6.1196674664520785, -6.151457758085507, -6.179318268414645, -6.2031499213465295, -6.222858510799498, -6.238354700703189, -6.24955437206703, -6.256366374568064, -6.258646894373072, -6.256251275277718, -6.249047374496844, -6.236915562664473, -6.219748723833799, -6.197452255477199, -6.169944068486224, -6.137154587171603, -6.099026749263243, -6.055516005910229, -6.006590321680821, -5.952229825670214, -5.892380072941787, -5.826923824892067, -5.755756224847247, -5.678789891904708, -5.595954920933018, -5.50719888257192, -5.412486823232352, -5.311801265096435, -5.205142206117466, -5.092527120019939, -4.973990956299522, -4.849586140223074, -4.719354475843899, -4.583208148390372, -4.441112388067696, -4.29305394005681, -4.13903018566233, -3.979049142312538, -3.813129463559366, -3.6413004390784236, -3.463601994668987, -3.2800846922539804, -3.090809729880008, -2.8958489417173405, -2.695284798059895, -2.4891579829150476, -2.277343750099553, -2.0598344687027206, -1.8366472712998312, -1.6078115870720198, -1.3733691418063179, -1.133373957895606, -0.8878923543386541, -0.6370029467401079, -0.3807966473104645, -0.11937639690606999, 0.14717296430808147, 0.41881412230523896, 0.6955117076484528, 0.9772268376846887, 1.2639171165448508, 1.5555366351437314, 1.8520359711800665, 2.1533621891364882, 2.4594592205203734, 2.770297047266685, 3.0858540420102143, 3.4060987168050487, 3.731000097941278, 4.060527725945029 ], "y": [ 0, 0.8009254237823245, 1.5960792856623531, 2.385475597072574, 3.169107926495013, 3.9469627091118635, 4.719064738594156, 5.485428489174774, 6.246054659859775, 7.000930174428392, 7.750028181433031, 8.493321800844054, 9.230848303648116, 9.962640419188402, 10.688721135726254, 11.409106100281491, 12.12380361863239, 12.832814655315694, 13.536141526069686, 14.233827708840856, 14.92590791962178, 15.612412172842994, 16.29336837171016, 16.968802308204065, 17.638737663080626, 18.303197772284673, 18.96221687393142, 19.615831094811565, 20.264078251103, 20.906998493476177, 21.54463430709409, 22.177030511612276, 22.804234261178824, 23.42629504443437, 24.043264684512103, 24.65519733903775, 25.262152267131423, 25.864181722662728, 26.461325266599058, 27.05362363907989, 27.641118986264335, 28.223854860331127, 28.801876219478636, 29.375229427924843, 29.943962255907365, 30.508123879683442, 31.067764881529943, 31.622937249743355, 32.173694378639794, 32.72009218738413, 33.26218010702771, 33.799977667389044, 34.3335034093641, 34.8627786915446, 35.387827690218025, 35.90867739936762, 36.42535763067235, 36.93790101350698, 37.446342994942015, 37.95072183974371, 38.45107863037406, 38.94745726699086, 39.43990427792595, 39.928431407790036, 40.41305297902097, 40.893806661689624, 41.37072840442675, 41.84385243442295, 42.31321125742866, 42.7788356577542, 43.24075469826971, 43.6989957204052, 44.15358434415054, 44.60454446805543, 45.05189826922945, 45.49566630651224, 45.93588056745503, 46.3725796919581, 46.80579821530137, 47.235570987770096, 47.661933174654884, 48.08492025625169, 48.50456802786183, 48.92091259979195, 49.33399039735404, 49.74383816086546, 50.15049294564891, 50.553992122032405, 50.954374617417564, 51.35169287353763, 51.74599726604182, 52.13733557974711, 52.525754923163895, 52.91130172849604, 53.294021751640855, 53.67396007218908, 54.051161093424916, 54.425668542325994, 54.79752546956339, 55.16677424950164, 55.53345658019872, 55.89760865798415, 56.25925895103407, 56.6184500510062, 56.97522530669493, 57.32962796938487, 57.681701192850845, 58.03148803335787, 58.37903144966116, 58.724374303006165, 59.06755935712853, 59.40862927825411, 59.74762542292647, 60.084589296713986, 60.41956528121868, 60.75259695310655, 61.083727002184034, 61.412997231398116, 61.74044855683622, 62.06612100772625, 62.390053726436626, 62.712284968476226, 63.03284998497459, 63.351776987950316, 63.66909935696007, 63.984848949806604, 64.29905533513912, 64.61174579245314, 64.92294531209069, 65.23267659524016, 65.54096005393635, 65.84781381106046, 66.15325370034014, 66.45729326634941, 66.7599437645087, 67.06121416108488, 67.36111123046317, 67.6596393484896, 67.95679201680211, 68.25255805236169, 68.54692390182664, 68.83987364155264, 69.1313889775927, 69.4214492456972, 69.71003141131382, 69.99711006958765, 70.28265744536107, 70.56664339317383, 70.84903539726304, 71.12979877804013, 71.4089013037207, 71.68628709809721, 71.9618920961067, 72.23565387870656, 72.50751167287468, 72.77740635160949, 73.0452804339298, 73.31107808487492, 73.57474511550464, 73.8362289828992, 74.09547879015935, 74.35244528640624, 74.60707597251024, 74.85929376642193, 75.10903033701548, 75.35622269709795, 75.60081139525005, 75.84274051582622, 76.08195767895464, 76.31841404053715, 76.55206429224933, 76.78286666154047, 77.01078291163358, 77.23577834152536, 77.45782178598624, 77.67686626514661, 77.89279917306106, 78.10554900769742, 78.31505799671363, 78.52127773038842, 78.72416916162125, 78.9237026059323, 79.11985774146251, 79.31262360897355, 79.50199861184787, 79.68799051389001, 79.87060499112509, 80.04982419888624, 80.22562876649116, 80.39800223908368, 80.56693107763384, 80.73240465893781, 80.89441527561794, 81.05295813612273, 81.2080312693581, 81.35962836017158, 81.50774318088123, 81.65237333039319, 81.79351749445702, 81.9311754456657 ] }, { "marker": { "color": [ 1.3, 1.5209323692530852, 1.7379504943362472, 1.9511645303797363, 2.1607246729084886, 2.36679884101108, 2.569448068987617, 2.768759133677192, 2.9648542438730994, 3.1578910403228377, 3.3480625957281083, 3.535562447776559, 3.720413701461157, 3.902642533735428, 4.08230024360506, 4.259457522419323, 4.434204453871075, 4.606650513996753, 4.7769005425345075, 4.944942634483472, 5.110785388374909, 5.274449055858441, 5.435958505567465, 5.595343223119146, 5.752637311114429, 5.907872785410262, 6.061041957137692, 6.212138359914943, 6.361154727136652, 6.50808028388185, 6.652900746913956, 6.795598324680785, 6.936151717314541, 7.07453611663182, 7.210723206133611, 7.344681161005296, 7.476350724079777, 7.6056840196598845, 7.732699751596999, 7.857410805635951, 7.9798228549524435, 8.099934360153055, 8.217736569275237, 8.333213517787309, 8.446342028588468, 8.55709171200878, 8.665424965809189, 8.771296975181507, 8.874655712748417, 8.975443593158214, 9.073661898850656, 9.169387060799691, 9.262688525057053, 9.353623128922314, 9.442235100942883, 9.52855606091401, 9.612605019878778, 9.694388380128117, 9.773899935200793, 9.851120869883406, 9.9260197602104, 9.998552573464055, 10.068663641574643, 10.136479415998386, 10.202119293215837, 10.265582739596592, 10.32687664299534, 10.386015312751848, 10.443020479690974, 10.49792129612266, 10.550754335841937, 10.601563594128917, 10.650400487748803, 10.697323854951879, 10.74239995547352, 10.785702071972553, 10.827258548203995, 10.867068837028187, 10.905150659630374, 10.941524110862662, 10.976211659244019, 11.009238146960268, 11.040630789864103, 11.070419177475072, 11.098635272979589, 11.125313413230925, 11.150490308749216, 11.174205043721459, 11.19648876304176, 11.217279914415831, 11.23656242412488, 11.254342447726987, 11.270629736804947, 11.28543763896628, 11.298783097843222, 11.310686653092723, 11.32117244039646, 11.330268191460817, 11.338005234016904, 11.34441849182055, 11.349546484652297, 11.353441754996625, 11.35616148865276, 11.357719068368699, 11.358126536736089, 11.357396843168235, 11.355543843900099, 11.352582301988297, 11.348527887311107, 11.343397176568462, 11.337207653281952, 11.329977707794827, 11.321704660920405, 11.312354314344036, 11.301922965750713, 11.290403311836899, 11.277783382434315, 11.26404654050992, 11.249171482165936, 11.233132236639825, 11.215898166304305, 11.19743396666734, 11.177678861559363, 11.156540067957518, 11.134023021813956, 11.11012918189388, 11.084846780990143, 11.05815082592324, 11.03000309754131, 11.00035215072014, 10.969133314363155, 10.936268691401429, 10.901667158793678, 10.865224367526263, 10.826822742613192, 10.786331483096115, 10.74360895875499, 10.698601492235799, 10.651303047964893, 10.601678243046502, 10.549677020828101, 10.495234650900425, 10.438271729097455, 10.378694177496422, 10.31639324441781, 10.251245504425356, 10.183112858326046, 10.111842533170115, 10.037267082251057, 9.959205894705523, 9.877581137899316, 9.79237896544146, 9.703547674922588, 9.611023665983495, 9.514731440315144, 9.414583601658641, 9.310480855805265, 9.202312010596453, 9.08995397592379, 8.973271763729034, 8.852118488004091, 8.726335364791039, 8.595787291013197, 8.460502957393023, 8.320439389581793, 8.175534605633603, 8.025722108093406, 7.870930883996998, 7.711085404871009, 7.546105626732926, 7.375906990091082, 7.200400419944639, 7.019492325783618, 6.8330846015888875, 6.641074625832142, 6.443410629542258, 6.240225395969214, 6.03153690892241, 5.8173414981922855, 5.597626847082848, 5.3723719924117175, 5.141547324510075, 4.905114587222707, 4.663026877907989, 4.415228647437864, 4.161655696607112, 3.9022546228863275, 3.6370188467518987, 3.365949402304829, 3.08904707405606, 2.806312396926447, 2.5177456562468095, 2.2233468877578764, 1.923115877610332, 1.6170524149095176, 1.3051749454539563, 0.9875079465076095, 0.6640724603393158, 0.3348934901354721, -2.220446049250313E-16 ], "showscale": true, "size": 3 }, "mode": "markers", "type": "scatter", "x": [ 0, 0.0010983589941245442, 0.00427619745063529, 0.009365653406349208, 0.016205620162965298, 0.02463844175531675, 0.034508742586064935, 0.04566244978621435, 0.057946701262729224, 0.0712098456985336, 0.08530144255251122, 0.1000706867945729, 0.11536754138326388, 0.13105196805892474, 0.14698472581081257, 0.16302667989274092, 0.17903880182307982, 0.19488216938475592, 0.21042010093238206, 0.2255303918040158, 0.2400941529618775, 0.2539941125955256, 0.26711510792876336, 0.27934408521963855, 0.29057009976044373, 0.300685743957656, 0.309593655450644, 0.31719802747772946, 0.3234076468096852, 0.32813661323363996, 0.3313043395530784, 0.33283555158784134, 0.3326602881741255, 0.33071390116448374, 0.3269370554278247, 0.3212757288494131, 0.3136930280801147, 0.3041588254540771, 0.29262071076803087, 0.27903290120181323, 0.26335685051262864, 0.2455612490350489, 0.22562202368101322, 0.20352233793982843, 0.1792525918781689, 0.1528104221400761, 0.12420070194695887, 0.09343554109759394, 0.060534285968125434, 0.025520046231359828, -0.011616497219535962, -0.050888014639398266, -0.092298715172146, -0.1358469561082469, -0.18152524288471686, -0.22932022908511934, -0.27921271643956597, -0.3311776548247172, -0.38518414226378156, -0.44119542492651537, -0.49916889712922247, -0.5590561013347564, -0.6208029971066803, -0.6844038687076884, -0.7498500581699944, -0.8170979263286259, -0.8861037874492588, -0.9568239092282187, -1.0292145127924766, -1.1032317726996548, -1.1788318169380245, -1.2559707269265017, -1.3346045375146547, -1.4146892369826987, -1.4961807670414977, -1.5790349940802104, -1.663201610016293, -1.7486203851470916, -1.8352310774273644, -1.9229738365440703, -2.0117892039163756, -2.1016181126956495, -2.1924018877654654, -2.284082245741601, -2.3766012949720365, -2.469901535536957, -2.5639258592487546, -2.6586175496520195, -2.7539172698514673, -2.849738649150951, -2.9460074195778514, -3.0426525381277245, -3.139600594522026, -3.2367758112081173, -3.334100043359261, -3.4314927788746195, -3.5288711383792597, -3.6261498752241508, -3.7232413754861624, -3.82005565796807, -3.9165003741985442, -4.012479933302324, -4.107895462246632, -4.202649239569367, -4.296642196632203, -4.38977375741116, -4.481941838496603, -4.573042849093244, -4.662971691020136, -4.751621758710683, -4.838884939212635, -4.924651612188081, -5.008812097338238, -5.091257117468792, -5.171874219913148, -5.250550441340474, -5.3271723824195005, -5.401626207818531, -5.473797646205435, -5.543571990247649, -5.610834096612183, -5.675468385965606, -5.737369241314975, -5.796446642679979, -5.85256219189122, -5.9055778527653295, -5.955360459130243, -6.001781714825189, -6.044718193700705, -6.0840513396186235, -6.1196674664520785, -6.151457758085507, -6.179318268414645, -6.2031499213465295, -6.222858510799498, -6.238354700703189, -6.24955437206703, -6.256366374568064, -6.258646894373072, -6.256251275277718, -6.249047374496844, -6.236915562664473, -6.219748723833799, -6.197452255477199, -6.169944068486224, -6.137154587171603, -6.099026749263243, -6.055516005910229, -6.006590321680821, -5.952229825670214, -5.892380072941787, -5.826923824892067, -5.755756224847247, -5.678789891904708, -5.595954920933018, -5.50719888257192, -5.412486823232352, -5.311801265096435, -5.205142206117466, -5.092527120019939, -4.973990956299522, -4.849586140223074, -4.719354475843899, -4.583208148390372, -4.441112388067696, -4.29305394005681, -4.13903018566233, -3.979049142312538, -3.813129463559366, -3.6413004390784236, -3.463601994668987, -3.2800846922539804, -3.090809729880008, -2.8958489417173405, -2.695284798059895, -2.4891579829150476, -2.277343750099553, -2.0598344687027206, -1.8366472712998312, -1.6078115870720198, -1.3733691418063179, -1.133373957895606, -0.8878923543386541, -0.6370029467401079, -0.3807966473104645, -0.11937639690606999, 0.14717296430808147, 0.41881412230523896, 0.6955117076484528, 0.9772268376846887, 1.2639171165448508, 1.5555366351437314, 1.8520359711800665, 2.1533621891364882, 2.4594592205203734, 2.770297047266685, 3.0858540420102143, 3.4060987168050487, 3.731000097941278, 4.060527725945029 ], "y": [ 0, 0.8009254237823245, 1.5960792856623531, 2.385475597072574, 3.169107926495013, 3.9469627091118635, 4.719064738594156, 5.485428489174774, 6.246054659859775, 7.000930174428392, 7.750028181433031, 8.493321800844054, 9.230848303648116, 9.962640419188402, 10.688721135726254, 11.409106100281491, 12.12380361863239, 12.832814655315694, 13.536141526069686, 14.233827708840856, 14.92590791962178, 15.612412172842994, 16.29336837171016, 16.968802308204065, 17.638737663080626, 18.303197772284673, 18.96221687393142, 19.615831094811565, 20.264078251103, 20.906998493476177, 21.54463430709409, 22.177030511612276, 22.804234261178824, 23.42629504443437, 24.043264684512103, 24.65519733903775, 25.262152267131423, 25.864181722662728, 26.461325266599058, 27.05362363907989, 27.641118986264335, 28.223854860331127, 28.801876219478636, 29.375229427924843, 29.943962255907365, 30.508123879683442, 31.067764881529943, 31.622937249743355, 32.173694378639794, 32.72009218738413, 33.26218010702771, 33.799977667389044, 34.3335034093641, 34.8627786915446, 35.387827690218025, 35.90867739936762, 36.42535763067235, 36.93790101350698, 37.446342994942015, 37.95072183974371, 38.45107863037406, 38.94745726699086, 39.43990427792595, 39.928431407790036, 40.41305297902097, 40.893806661689624, 41.37072840442675, 41.84385243442295, 42.31321125742866, 42.7788356577542, 43.24075469826971, 43.6989957204052, 44.15358434415054, 44.60454446805543, 45.05189826922945, 45.49566630651224, 45.93588056745503, 46.3725796919581, 46.80579821530137, 47.235570987770096, 47.661933174654884, 48.08492025625169, 48.50456802786183, 48.92091259979195, 49.33399039735404, 49.74383816086546, 50.15049294564891, 50.553992122032405, 50.954374617417564, 51.35169287353763, 51.74599726604182, 52.13733557974711, 52.525754923163895, 52.91130172849604, 53.294021751640855, 53.67396007218908, 54.051161093424916, 54.425668542325994, 54.79752546956339, 55.16677424950164, 55.53345658019872, 55.89760865798415, 56.25925895103407, 56.6184500510062, 56.97522530669493, 57.32962796938487, 57.681701192850845, 58.03148803335787, 58.37903144966116, 58.724374303006165, 59.06755935712853, 59.40862927825411, 59.74762542292647, 60.084589296713986, 60.41956528121868, 60.75259695310655, 61.083727002184034, 61.412997231398116, 61.74044855683622, 62.06612100772625, 62.390053726436626, 62.712284968476226, 63.03284998497459, 63.351776987950316, 63.66909935696007, 63.984848949806604, 64.29905533513912, 64.61174579245314, 64.92294531209069, 65.23267659524016, 65.54096005393635, 65.84781381106046, 66.15325370034014, 66.45729326634941, 66.7599437645087, 67.06121416108488, 67.36111123046317, 67.6596393484896, 67.95679201680211, 68.25255805236169, 68.54692390182664, 68.83987364155264, 69.1313889775927, 69.4214492456972, 69.71003141131382, 69.99711006958765, 70.28265744536107, 70.56664339317383, 70.84903539726304, 71.12979877804013, 71.4089013037207, 71.68628709809721, 71.9618920961067, 72.23565387870656, 72.50751167287468, 72.77740635160949, 73.0452804339298, 73.31107808487492, 73.57474511550464, 73.8362289828992, 74.09547879015935, 74.35244528640624, 74.60707597251024, 74.85929376642193, 75.10903033701548, 75.35622269709795, 75.60081139525005, 75.84274051582622, 76.08195767895464, 76.31841404053715, 76.55206429224933, 76.78286666154047, 77.01078291163358, 77.23577834152536, 77.45782178598624, 77.67686626514661, 77.89279917306106, 78.10554900769742, 78.31505799671363, 78.52127773038842, 78.72416916162125, 78.9237026059323, 79.11985774146251, 79.31262360897355, 79.50199861184787, 79.68799051389001, 79.87060499112509, 80.04982419888624, 80.22562876649116, 80.39800223908368, 80.56693107763384, 80.73240465893781, 80.89441527561794, 81.05295813612273, 81.2080312693581, 81.35962836017158, 81.50774318088123, 81.65237333039319, 81.79351749445702, 81.9311754456657 ] } ], "frames": [ { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0 ], "y": [ 0 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.0010983589941245442 ], "y": [ 0.8009254237823245 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.00427619745063529 ], "y": [ 1.5960792856623531 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.009365653406349208 ], "y": [ 2.385475597072574 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.016205620162965298 ], "y": [ 3.169107926495013 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.02463844175531675 ], "y": [ 3.9469627091118635 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.034508742586064935 ], "y": [ 4.719064738594156 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.04566244978621435 ], "y": [ 5.485428489174774 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.057946701262729224 ], "y": [ 6.246054659859775 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.0712098456985336 ], "y": [ 7.000930174428392 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.08530144255251122 ], "y": [ 7.750028181433031 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.1000706867945729 ], "y": [ 8.493321800844054 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.11536754138326388 ], "y": [ 9.230848303648116 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.13105196805892474 ], "y": [ 9.962640419188402 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.14698472581081257 ], "y": [ 10.688721135726254 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.16302667989274092 ], "y": [ 11.409106100281491 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.17903880182307982 ], "y": [ 12.12380361863239 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.19488216938475592 ], "y": [ 12.832814655315694 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.21042010093238206 ], "y": [ 13.536141526069686 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.2255303918040158 ], "y": [ 14.233827708840856 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.2400941529618775 ], "y": [ 14.92590791962178 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.2539941125955256 ], "y": [ 15.612412172842994 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.26711510792876336 ], "y": [ 16.29336837171016 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.27934408521963855 ], "y": [ 16.968802308204065 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.29057009976044373 ], "y": [ 17.638737663080626 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.300685743957656 ], "y": [ 18.303197772284673 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.309593655450644 ], "y": [ 18.96221687393142 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.31719802747772946 ], "y": [ 19.615831094811565 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.3234076468096852 ], "y": [ 20.264078251103 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.32813661323363996 ], "y": [ 20.906998493476177 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.3313043395530784 ], "y": [ 21.54463430709409 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.33283555158784134 ], "y": [ 22.177030511612276 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.3326602881741255 ], "y": [ 22.804234261178824 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.33071390116448374 ], "y": [ 23.42629504443437 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.3269370554278247 ], "y": [ 24.043264684512103 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.3212757288494131 ], "y": [ 24.65519733903775 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.3136930280801147 ], "y": [ 25.262152267131423 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.3041588254540771 ], "y": [ 25.864181722662728 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.29262071076803087 ], "y": [ 26.461325266599058 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.27903290120181323 ], "y": [ 27.05362363907989 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.26335685051262864 ], "y": [ 27.641118986264335 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.2455612490350489 ], "y": [ 28.223854860331127 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.22562202368101322 ], "y": [ 28.801876219478636 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.20352233793982843 ], "y": [ 29.375229427924843 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.1792525918781689 ], "y": [ 29.943962255907365 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.1528104221400761 ], "y": [ 30.508123879683442 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.12420070194695887 ], "y": [ 31.067764881529943 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.09343554109759394 ], "y": [ 31.622937249743355 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.060534285968125434 ], "y": [ 32.173694378639794 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.025520046231359828 ], "y": [ 32.72009218738413 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.011616497219535962 ], "y": [ 33.26218010702771 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.050888014639398266 ], "y": [ 33.799977667389044 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.092298715172146 ], "y": [ 34.3335034093641 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.1358469561082469 ], "y": [ 34.8627786915446 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.18152524288471686 ], "y": [ 35.387827690218025 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.22932022908511934 ], "y": [ 35.90867739936762 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.27921271643956597 ], "y": [ 36.42535763067235 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.3311776548247172 ], "y": [ 36.93790101350698 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.38518414226378156 ], "y": [ 37.446342994942015 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.44119542492651537 ], "y": [ 37.95072183974371 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.49916889712922247 ], "y": [ 38.45107863037406 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.5590561013347564 ], "y": [ 38.94745726699086 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.6208029971066803 ], "y": [ 39.43990427792595 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.6844038687076884 ], "y": [ 39.928431407790036 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.7498500581699944 ], "y": [ 40.41305297902097 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.8170979263286259 ], "y": [ 40.893806661689624 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.8861037874492588 ], "y": [ 41.37072840442675 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.9568239092282187 ], "y": [ 41.84385243442295 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.0292145127924766 ], "y": [ 42.31321125742866 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.1032317726996548 ], "y": [ 42.7788356577542 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.1788318169380245 ], "y": [ 43.24075469826971 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.2559707269265017 ], "y": [ 43.6989957204052 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.3346045375146547 ], "y": [ 44.15358434415054 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.4146892369826987 ], "y": [ 44.60454446805543 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.4961807670414977 ], "y": [ 45.05189826922945 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.5790349940802104 ], "y": [ 45.49566630651224 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.663201610016293 ], "y": [ 45.93588056745503 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.7486203851470916 ], "y": [ 46.3725796919581 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.8352310774273644 ], "y": [ 46.80579821530137 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.9229738365440703 ], "y": [ 47.235570987770096 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.0117892039163756 ], "y": [ 47.661933174654884 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.1016181126956495 ], "y": [ 48.08492025625169 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.1924018877654654 ], "y": [ 48.50456802786183 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.284082245741601 ], "y": [ 48.92091259979195 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.3766012949720365 ], "y": [ 49.33399039735404 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.469901535536957 ], "y": [ 49.74383816086546 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.5639258592487546 ], "y": [ 50.15049294564891 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.6586175496520195 ], "y": [ 50.553992122032405 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.7539172698514673 ], "y": [ 50.954374617417564 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.849738649150951 ], "y": [ 51.35169287353763 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.9460074195778514 ], "y": [ 51.74599726604182 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.0426525381277245 ], "y": [ 52.13733557974711 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.139600594522026 ], "y": [ 52.525754923163895 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.2367758112081173 ], "y": [ 52.91130172849604 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.334100043359261 ], "y": [ 53.294021751640855 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.4314927788746195 ], "y": [ 53.67396007218908 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.5288711383792597 ], "y": [ 54.051161093424916 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.6261498752241508 ], "y": [ 54.425668542325994 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.7232413754861624 ], "y": [ 54.79752546956339 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.82005565796807 ], "y": [ 55.16677424950164 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.9165003741985442 ], "y": [ 55.53345658019872 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.012479933302324 ], "y": [ 55.89760865798415 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.107895462246632 ], "y": [ 56.25925895103407 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.202649239569367 ], "y": [ 56.6184500510062 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.296642196632203 ], "y": [ 56.97522530669493 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.38977375741116 ], "y": [ 57.32962796938487 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.481941838496603 ], "y": [ 57.681701192850845 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.573042849093244 ], "y": [ 58.03148803335787 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.662971691020136 ], "y": [ 58.37903144966116 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.751621758710683 ], "y": [ 58.724374303006165 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.838884939212635 ], "y": [ 59.06755935712853 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.924651612188081 ], "y": [ 59.40862927825411 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.008812097338238 ], "y": [ 59.74762542292647 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.091257117468792 ], "y": [ 60.084589296713986 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.171874219913148 ], "y": [ 60.41956528121868 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.250550441340474 ], "y": [ 60.75259695310655 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.3271723824195005 ], "y": [ 61.083727002184034 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.401626207818531 ], "y": [ 61.412997231398116 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.473797646205435 ], "y": [ 61.74044855683622 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.543571990247649 ], "y": [ 62.06612100772625 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.610834096612183 ], "y": [ 62.390053726436626 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.675468385965606 ], "y": [ 62.712284968476226 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.737369241314975 ], "y": [ 63.03284998497459 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.796446642679979 ], "y": [ 63.351776987950316 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.85256219189122 ], "y": [ 63.66909935696007 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.9055778527653295 ], "y": [ 63.984848949806604 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.955360459130243 ], "y": [ 64.29905533513912 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.001781714825189 ], "y": [ 64.61174579245314 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.044718193700705 ], "y": [ 64.92294531209069 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.0840513396186235 ], "y": [ 65.23267659524016 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.1196674664520785 ], "y": [ 65.54096005393635 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.151457758085507 ], "y": [ 65.84781381106046 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.179318268414645 ], "y": [ 66.15325370034014 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.2031499213465295 ], "y": [ 66.45729326634941 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.222858510799498 ], "y": [ 66.7599437645087 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.238354700703189 ], "y": [ 67.06121416108488 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.24955437206703 ], "y": [ 67.36111123046317 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.256366374568064 ], "y": [ 67.6596393484896 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.258646894373072 ], "y": [ 67.95679201680211 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.256251275277718 ], "y": [ 68.25255805236169 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.249047374496844 ], "y": [ 68.54692390182664 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.236915562664473 ], "y": [ 68.83987364155264 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.219748723833799 ], "y": [ 69.1313889775927 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.197452255477199 ], "y": [ 69.4214492456972 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.169944068486224 ], "y": [ 69.71003141131382 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.137154587171603 ], "y": [ 69.99711006958765 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.099026749263243 ], "y": [ 70.28265744536107 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.055516005910229 ], "y": [ 70.56664339317383 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -6.006590321680821 ], "y": [ 70.84903539726304 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.952229825670214 ], "y": [ 71.12979877804013 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.892380072941787 ], "y": [ 71.4089013037207 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.826923824892067 ], "y": [ 71.68628709809721 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.755756224847247 ], "y": [ 71.9618920961067 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.678789891904708 ], "y": [ 72.23565387870656 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.595954920933018 ], "y": [ 72.50751167287468 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.50719888257192 ], "y": [ 72.77740635160949 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.412486823232352 ], "y": [ 73.0452804339298 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.311801265096435 ], "y": [ 73.31107808487492 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.205142206117466 ], "y": [ 73.57474511550464 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -5.092527120019939 ], "y": [ 73.8362289828992 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.973990956299522 ], "y": [ 74.09547879015935 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.849586140223074 ], "y": [ 74.35244528640624 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.719354475843899 ], "y": [ 74.60707597251024 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.583208148390372 ], "y": [ 74.85929376642193 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.441112388067696 ], "y": [ 75.10903033701548 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.29305394005681 ], "y": [ 75.35622269709795 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -4.13903018566233 ], "y": [ 75.60081139525005 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.979049142312538 ], "y": [ 75.84274051582622 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.813129463559366 ], "y": [ 76.08195767895464 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.6413004390784236 ], "y": [ 76.31841404053715 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.463601994668987 ], "y": [ 76.55206429224933 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.2800846922539804 ], "y": [ 76.78286666154047 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -3.090809729880008 ], "y": [ 77.01078291163358 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.8958489417173405 ], "y": [ 77.23577834152536 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.695284798059895 ], "y": [ 77.45782178598624 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.4891579829150476 ], "y": [ 77.67686626514661 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.277343750099553 ], "y": [ 77.89279917306106 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -2.0598344687027206 ], "y": [ 78.10554900769742 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.8366472712998312 ], "y": [ 78.31505799671363 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.6078115870720198 ], "y": [ 78.52127773038842 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.3733691418063179 ], "y": [ 78.72416916162125 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -1.133373957895606 ], "y": [ 78.9237026059323 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.8878923543386541 ], "y": [ 79.11985774146251 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.6370029467401079 ], "y": [ 79.31262360897355 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.3807966473104645 ], "y": [ 79.50199861184787 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ -0.11937639690606999 ], "y": [ 79.68799051389001 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.14717296430808147 ], "y": [ 79.87060499112509 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.41881412230523896 ], "y": [ 80.04982419888624 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.6955117076484528 ], "y": [ 80.22562876649116 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 0.9772268376846887 ], "y": [ 80.39800223908368 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 1.2639171165448508 ], "y": [ 80.56693107763384 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 1.5555366351437314 ], "y": [ 80.73240465893781 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 1.8520359711800665 ], "y": [ 80.89441527561794 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 2.1533621891364882 ], "y": [ 81.05295813612273 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 2.4594592205203734 ], "y": [ 81.2080312693581 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 2.770297047266685 ], "y": [ 81.35962836017158 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 3.0858540420102143 ], "y": [ 81.50774318088123 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 3.4060987168050487 ], "y": [ 81.65237333039319 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 3.731000097941278 ], "y": [ 81.79351749445702 ] } ] }, { "data": [ { "marker": { "color": "red", "size": 10 }, "mode": "markers", "type": "scatter", "x": [ 4.060527725945029 ], "y": [ 81.9311754456657 ] } ] } ], "layout": { "hovermode": "closest", "template": { "data": { "bar": [ { "error_x": { "color": "rgb(36,36,36)" }, "error_y": { "color": "rgb(36,36,36)" }, "marker": { "line": { "color": "rgb(234,234,242)", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "rgb(234,234,242)", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "rgb(36,36,36)", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "rgb(36,36,36)" }, "baxis": { "endlinecolor": "rgb(36,36,36)", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "rgb(36,36,36)" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "rgb(231,231,240)" }, "line": { "color": "white" } }, "header": { "fill": { "color": "rgb(183,183,191)" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "rgb(67,103,167)" }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "colorscale": { "sequential": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "sequentialminus": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ] }, "colorway": [ "rgb(76,114,176)", "rgb(221,132,82)", "rgb(85,168,104)", "rgb(196,78,82)", "rgb(129,114,179)", "rgb(147,120,96)", "rgb(218,139,195)", "rgb(140,140,140)", "rgb(204,185,116)", "rgb(100,181,205)" ], "font": { "color": "rgb(36,36,36)" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "rgb(234,234,242)", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "paper_bgcolor": "white", "plot_bgcolor": "rgb(234,234,242)", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "bgcolor": "rgb(234,234,242)", "radialaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "fillcolor": "rgb(67,103,167)", "line": { "width": 0 }, "opacity": 0.5 }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "bgcolor": "rgb(234,234,242)", "caxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" } }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white" }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white" } } }, "title": { "text": "Flight Path" }, "updatemenus": [ { "buttons": [ { "args": [ null, { "frame": { "duration": 30, "redraw": true }, "fromcurrent": true } ], "label": "Play", "method": "animate" }, { "args": [ [ null ], { "frame": { "duration": 0, "redraw": false }, "mode": "immediate", "transition": { "duration": 0 } } ], "label": "Pause", "method": "animate" } ], "showactive": false, "type": "buttons", "x": 0.05, "y": 0.05 } ], "xaxis": { "autorange": "reversed", "range": [ -7.758646894373072, 5.560527725945029 ], "zeroline": false }, "yaxis": { "autorange": false, "range": [ -1.5, 83.4311754456657 ], "scaleanchor": "x", "scaleratio": 1, "zeroline": false } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import plotly.graph_objects as go\n", "\n", "import numpy as np\n", "\n", "xm = np.min(x) - 1.5\n", "xM = np.max(x) + 1.5\n", "ym = np.min(y) - 1.5\n", "yM = np.max(y) + 1.5\n", "N = len(x)\n", "s = np.arange(1,N)\n", "\n", "\n", "# Create figure\n", "fig = go.Figure(\n", " data=[go.Scatter(x=x, y=y,\n", " mode=\"lines\",\n", " line=dict(width=1, color='black')),\n", " \n", " go.Scatter(x=x, y=y,\n", " mode=\"markers\",\n", " marker=dict(color=z, size=3, showscale=True),),\n", " ],\n", " layout=go.Layout(\n", " xaxis=dict(range=[xm, xM], autorange=False, zeroline=False),\n", " yaxis=dict(range=[ym, yM], autorange=False, zeroline=False),\n", " title_text=\"Flight Path\", hovermode=\"closest\",\n", " updatemenus=[dict(\n", " type=\"buttons\",\n", " buttons=[\n", " dict(\n", " label=\"Play\",\n", " method=\"animate\",\n", " args=[None, {\"frame\": {\"duration\": 30, \"redraw\": True}, \"fromcurrent\": True}]\n", " ),\n", " dict(\n", " label=\"Pause\",\n", " method=\"animate\",\n", " args=[[None], {\"frame\": {\"duration\": 0, \"redraw\": False}, \"mode\": \"immediate\", \"transition\": {\"duration\": 0}}]\n", " )\n", " ],\n", " showactive=False,\n", " x=0.05,\n", " y=0.05\n", " )]),\n", " frames=[go.Frame(\n", " data=[go.Scatter(\n", " x=[x[k]],\n", " y=[y[k]],\n", " mode=\"markers\",\n", " marker=dict(color=\"red\", size=10))])\n", "\n", " for k in range(N)]\n", ")\n", "if reverse:\n", " fig.update_xaxes(autorange=\"reversed\") \n", "fig.update_yaxes(\n", " scaleanchor=\"x\",\n", " scaleratio=1,\n", " )\n", "\n", "fig.show()\n" ] }, { "cell_type": "code", "execution_count": null, "id": "6fabcd97", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "id": "e072cd1b", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": null, "id": "81eef49e", "metadata": {}, "outputs": [], "source": [ "import plotly.io as pio\n", "pio.renderers.default = 'plotly'" ] }, { "cell_type": "code", "execution_count": null, "id": "8c91b75f", "metadata": {}, "outputs": [], "source": [ "True" ] }, { "cell_type": "code", "execution_count": 21, "id": "dfb292c7", "metadata": {}, "outputs": [], "source": [ "pio.renderers.default = 'browser'" ] }, { "cell_type": "code", "execution_count": 29, "id": "b36b9877", "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "marker": { "color": "orange", "line": { "width": 1 } }, "name": "Value", "type": "bar", "x": [ "Category A" ], "y": [ 18 ] }, { "marker": { "color": "blue", "size": 8, "symbol": "triangle-up" }, "mode": "markers", "name": "Minimum", "type": "scatter", "x": [ "Category A" ], "y": [ 10 ] }, { "marker": { "color": "red", "size": 8, "symbol": "triangle-down" }, "mode": "markers", "name": "Maximum", "type": "scatter", "x": [ "Category A" ], "y": [ 25 ] } ], "layout": { "barmode": "group", "template": { "data": { "bar": [ { "error_x": { "color": "rgb(36,36,36)" }, "error_y": { "color": "rgb(36,36,36)" }, "marker": { "line": { "color": "rgb(234,234,242)", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "rgb(234,234,242)", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "rgb(36,36,36)", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "rgb(36,36,36)" }, "baxis": { "endlinecolor": "rgb(36,36,36)", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "rgb(36,36,36)" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "rgb(231,231,240)" }, "line": { "color": "white" } }, "header": { "fill": { "color": "rgb(183,183,191)" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "rgb(67,103,167)" }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "colorscale": { "sequential": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "sequentialminus": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ] }, "colorway": [ "rgb(76,114,176)", "rgb(221,132,82)", "rgb(85,168,104)", "rgb(196,78,82)", "rgb(129,114,179)", "rgb(147,120,96)", "rgb(218,139,195)", "rgb(140,140,140)", "rgb(204,185,116)", "rgb(100,181,205)" ], "font": { "color": "rgb(36,36,36)" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "rgb(234,234,242)", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "paper_bgcolor": "white", "plot_bgcolor": "rgb(234,234,242)", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "bgcolor": "rgb(234,234,242)", "radialaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "fillcolor": "rgb(67,103,167)", "line": { "width": 0 }, "opacity": 0.5 }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "bgcolor": "rgb(234,234,242)", "caxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" } }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white" }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white" } } }, "title": { "text": "Value Between Minimum and Maximum" }, "width": 400, "yaxis": { "title": { "text": "Lateral Deviance" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import plotly.graph_objs as go\n", "\n", "# Sample data for Category A\n", "y_min = 10 # Minimum value\n", "y_max = 25 # Maximum value\n", "y_value = 18 # Actual value\n", "\n", "# Create a bar chart trace for actual value\n", "trace_value = go.Bar(\n", " x=['Category A'],\n", " y=[y_value],\n", " name='Value',\n", " marker=dict(color='orange', line=dict(width=1)) # Set color of value bar to orange and line width to 1\n", ")\n", "\n", "# Create a scatter trace for the minimum caret (triangle-up)\n", "trace_min_caret = go.Scatter(\n", " x=['Category A'],\n", " y=[y_min],\n", " mode='markers',\n", " marker=dict(symbol='triangle-up', size=8, color='blue'),\n", " name='Minimum'\n", ")\n", "\n", "# Create a scatter trace for the maximum caret (triangle-down)\n", "trace_max_caret = go.Scatter(\n", " x=['Category A'],\n", " y=[y_max],\n", " mode='markers',\n", " marker=dict(symbol='triangle-down', size=8, color='red'),\n", " name='Maximum'\n", ")\n", "\n", "# Create a layout\n", "layout = go.Layout(\n", " title='Value Between Minimum and Maximum',\n", " yaxis=dict(title='Lateral Deviance'),\n", " barmode='group', # Set the bars to group mode\n", " width=400 # Set the width of the plot to 400 pixels\n", ")\n", "\n", "# Create a figure object\n", "fig = go.Figure(data=[trace_value, trace_min_caret, trace_max_caret], layout=layout)\n", "\n", "# Show the figure\n", "fig.show()\n" ] }, { "cell_type": "code", "execution_count": 74, "id": "1dfc862e", "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "marker": { "color": "green", "line": { "width": 1 } }, "name": "Value", "type": "bar", "x": [ "Lateral Deviance" ], "y": [ 18 ] }, { "marker": { "color": [ "red", "red" ], "size": 20, "symbol": [ "triangle-up", "triangle-down" ] }, "mode": "markers", "name": "Carets", "type": "scatter", "x": [ "Lateral Deviance", "Lateral Deviance" ], "y": [ 10, 25 ] } ], "layout": { "barmode": "group", "showlegend": false, "template": { "data": { "bar": [ { "error_x": { "color": "rgb(36,36,36)" }, "error_y": { "color": "rgb(36,36,36)" }, "marker": { "line": { "color": "rgb(234,234,242)", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "rgb(234,234,242)", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "rgb(36,36,36)", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "rgb(36,36,36)" }, "baxis": { "endlinecolor": "rgb(36,36,36)", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "rgb(36,36,36)" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "rgb(231,231,240)" }, "line": { "color": "white" } }, "header": { "fill": { "color": "rgb(183,183,191)" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "rgb(67,103,167)" }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "colorscale": { "sequential": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "sequentialminus": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ] }, "colorway": [ "rgb(76,114,176)", "rgb(221,132,82)", "rgb(85,168,104)", "rgb(196,78,82)", "rgb(129,114,179)", "rgb(147,120,96)", "rgb(218,139,195)", "rgb(140,140,140)", "rgb(204,185,116)", "rgb(100,181,205)" ], "font": { "color": "rgb(36,36,36)" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "rgb(234,234,242)", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "paper_bgcolor": "white", "plot_bgcolor": "rgb(234,234,242)", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "bgcolor": "rgb(234,234,242)", "radialaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "fillcolor": "rgb(67,103,167)", "line": { "width": 0 }, "opacity": 0.5 }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "bgcolor": "rgb(234,234,242)", "caxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" } }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white" }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white" } } }, "title": { "text": "Value Between Minimum and Maximum" }, "width": 200, "yaxis": { "title": { "text": "Value" } } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import plotly.graph_objs as go\n", "\n", "# Sample data for Category A\n", "y_min = 10 # Minimum value\n", "y_max = 25 # Maximum value\n", "y_value = 18 # Actual value\n", "category = 'Lateral Deviance'\n", "\n", "# Create a bar chart trace for actual value\n", "trace_value = go.Bar(\n", " x=[category],\n", " y=[y_value],\n", " name='Value',\n", " marker=dict(color='green', line=dict(width=1)) # Set color of value bar to orange and line width to 1\n", ")\n", "\n", "# Create a scatter trace for the minimum and maximum carets\n", "trace_carets = go.Scatter(\n", " x=[category, category],\n", " y=[y_min, y_max],\n", " mode='markers',\n", " marker=dict(symbol=['triangle-up', 'triangle-down'], size=20, color=['red', 'red']),\n", " name='Carets'\n", ")\n", "\n", "# Create a layout\n", "layout = go.Layout(\n", " title='Value Between Minimum and Maximum',\n", " yaxis=dict(title='Value'),\n", " barmode='group', # Set the bars to group mode\n", " width=200, # Set the width of the plot to 400 pixels\n", " showlegend=False\n", ")\n", "\n", "# Create a figure object\n", "fig = go.Figure(data=[trace_value, trace_carets], layout=layout)\n", "\n", "# Show the figure\n", "fig.show()\n" ] }, { "cell_type": "code", "execution_count": 35, "id": "e8de4810", "metadata": {}, "outputs": [], "source": [ "import plotly.graph_objs as go\n", "\n", "def plot_value_between_min_max_trace(category_name, y_min, y_max, y_value, horizontal=False):\n", " # Create a bar chart trace for actual value\n", " trace_value = go.Bar(\n", " x=[category_name] if not horizontal else [y_value],\n", " y=[y_value] if not horizontal else [category_name],\n", " orientation='h' if horizontal else 'v',\n", " name='Value',\n", " marker=dict(color='orange', line=dict(width=1)) # Set color of value bar to orange and line width to 1\n", " )\n", "\n", " # Create a scatter trace for the minimum and maximum carets\n", " trace_carets = go.Scatter(\n", " x=[category_name, category_name] if not horizontal else [y_min, y_max],\n", " y=[y_min, y_max] if not horizontal else [category_name, category_name],\n", " mode='markers',\n", " marker=dict(symbol=['triangle-up', 'triangle-down'], size=20, color=['blue', 'red']),\n", " name='Carets'\n", " )\n", "\n", " # Combine the traces into a single list\n", " trace = [trace_value, trace_carets]\n", "\n", " return trace\n" ] }, { "cell_type": "code", "execution_count": 53, "id": "16032b57", "metadata": {}, "outputs": [], "source": [ "fig = sp.make_subplots(rows=1, cols=2, subplot_titles=(\"Main plot\", \"Most Recent Value\"))\n", "# Create the trace for the value between minimum and maximum\n", "category_name = 'Category A'\n", "y_min = 10\n", "y_max = 25\n", "y_value = 18\n", "horizontal = False\n", "trace = plot_value_between_min_max_trace(category_name, y_min, y_max, y_value, horizontal)\n", "\n", "# Add the trace to the second column (most recent value)\n", "for t in trace:\n", " fig.add_trace(t, row=1, col=1)\n" ] }, { "cell_type": "code", "execution_count": 54, "id": "eb0ee2f0", "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "marker": { "color": "orange", "line": { "width": 1 } }, "name": "Value", "orientation": "v", "type": "bar", "x": [ "Category A" ], "xaxis": "x", "y": [ 18 ], "yaxis": "y" }, { "marker": { "color": [ "blue", "red" ], "size": 20, "symbol": [ "triangle-up", "triangle-down" ] }, "mode": "markers", "name": "Carets", "type": "scatter", "x": [ "Category A", "Category A" ], "xaxis": "x", "y": [ 10, 25 ], "yaxis": "y" } ], "layout": { "annotations": [ { "font": { "size": 16 }, "showarrow": false, "text": "Main plot", "x": 0.225, "xanchor": "center", "xref": "paper", "y": 1, "yanchor": "bottom", "yref": "paper" }, { "font": { "size": 16 }, "showarrow": false, "text": "Most Recent Value", "x": 0.775, "xanchor": "center", "xref": "paper", "y": 1, "yanchor": "bottom", "yref": "paper" } ], "template": { "data": { "bar": [ { "error_x": { "color": "rgb(36,36,36)" }, "error_y": { "color": "rgb(36,36,36)" }, "marker": { "line": { "color": "rgb(234,234,242)", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "rgb(234,234,242)", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "rgb(36,36,36)", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "rgb(36,36,36)" }, "baxis": { "endlinecolor": "rgb(36,36,36)", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "rgb(36,36,36)" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "rgb(231,231,240)" }, "line": { "color": "white" } }, "header": { "fill": { "color": "rgb(183,183,191)" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "rgb(67,103,167)" }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "colorscale": { "sequential": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "sequentialminus": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ] }, "colorway": [ "rgb(76,114,176)", "rgb(221,132,82)", "rgb(85,168,104)", "rgb(196,78,82)", "rgb(129,114,179)", "rgb(147,120,96)", "rgb(218,139,195)", "rgb(140,140,140)", "rgb(204,185,116)", "rgb(100,181,205)" ], "font": { "color": "rgb(36,36,36)" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "rgb(234,234,242)", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "paper_bgcolor": "white", "plot_bgcolor": "rgb(234,234,242)", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "bgcolor": "rgb(234,234,242)", "radialaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "fillcolor": "rgb(67,103,167)", "line": { "width": 0 }, "opacity": 0.5 }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "bgcolor": "rgb(234,234,242)", "caxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" } }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white" }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white" } } }, "xaxis": { "anchor": "y", "domain": [ 0, 0.45 ] }, "xaxis2": { "anchor": "y2", "domain": [ 0.55, 1 ] }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ] }, "yaxis2": { "anchor": "x2", "domain": [ 0, 1 ] } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "fig.show()" ] }, { "cell_type": "code", "execution_count": 75, "id": "52ffb04d", "metadata": {}, "outputs": [ { "data": { "application/vnd.plotly.v1+json": { "config": { "plotlyServerURL": "https://plot.ly" }, "data": [ { "mode": "markers+lines", "name": "Sample Data 1", "type": "scatter", "x": [], "xaxis": "x", "y": [], "yaxis": "y" }, { "mode": "markers+lines", "name": "Sample Data 2", "type": "scatter", "x": [], "xaxis": "x", "y": [], "yaxis": "y" }, { "marker": { "size": 10 }, "mode": "markers", "showlegend": false, "type": "scatter", "x": [ 1 ], "xaxis": "x2", "y": [ 0 ], "yaxis": "y2" }, { "marker": { "size": 10 }, "mode": "markers", "showlegend": false, "type": "scatter", "x": [ 1 ], "xaxis": "x2", "y": [ 0 ], "yaxis": "y2" } ], "frames": [ { "data": [ { "mode": "markers+lines", "name": "Sample Data 1", "type": "scatter", "x": [ 1 ], "y": [ 10 ] }, { "mode": "markers+lines", "name": "Sample Data 2", "type": "scatter", "x": [ 1 ], "y": [ 5 ] }, { "marker": { "size": 10 }, "mode": "markers", "showlegend": false, "type": "scatter", "x": [ 1 ], "y": [ 10 ] }, { "marker": { "size": 10 }, "mode": "markers", "showlegend": false, "type": "scatter", "x": [ 1 ], "y": [ 5 ] } ] }, { "data": [ { "mode": "markers+lines", "name": "Sample Data 1", "type": "scatter", "x": [ 1, 2 ], "y": [ 10, 15 ] }, { "mode": "markers+lines", "name": "Sample Data 2", "type": "scatter", "x": [ 1, 2 ], "y": [ 5, 9 ] }, { "marker": { "size": 10 }, "mode": "markers", "showlegend": false, "type": "scatter", "x": [ 1 ], "y": [ 15 ] }, { "marker": { "size": 10 }, "mode": "markers", "showlegend": false, "type": "scatter", "x": [ 1 ], "y": [ 9 ] } ] }, { "data": [ { "mode": "markers+lines", "name": "Sample Data 1", "type": "scatter", "x": [ 1, 2, 3 ], "y": [ 10, 15, 13 ] }, { "mode": "markers+lines", "name": "Sample Data 2", "type": "scatter", "x": [ 1, 2, 3 ], "y": [ 5, 9, 11 ] }, { "marker": { "size": 10 }, "mode": "markers", "showlegend": false, "type": "scatter", "x": [ 1 ], "y": [ 13 ] }, { "marker": { "size": 10 }, "mode": "markers", "showlegend": false, "type": "scatter", "x": [ 1 ], "y": [ 11 ] } ] }, { "data": [ { "mode": "markers+lines", "name": "Sample Data 1", "type": "scatter", "x": [ 1, 2, 3, 4 ], "y": [ 10, 15, 13, 17 ] }, { "mode": "markers+lines", "name": "Sample Data 2", "type": "scatter", "x": [ 1, 2, 3, 4 ], "y": [ 5, 9, 11, 13 ] }, { "marker": { "size": 10 }, "mode": "markers", "showlegend": false, "type": "scatter", "x": [ 1 ], "y": [ 17 ] }, { "marker": { "size": 10 }, "mode": "markers", "showlegend": false, "type": "scatter", "x": [ 1 ], "y": [ 13 ] } ] }, { "data": [ { "mode": "markers+lines", "name": "Sample Data 1", "type": "scatter", "x": [ 1, 2, 3, 4, 5 ], "y": [ 10, 15, 13, 17, 12 ] }, { "mode": "markers+lines", "name": "Sample Data 2", "type": "scatter", "x": [ 1, 2, 3, 4, 5 ], "y": [ 5, 9, 11, 13, 8 ] }, { "marker": { "size": 10 }, "mode": "markers", "showlegend": false, "type": "scatter", "x": [ 1 ], "y": [ 12 ] }, { "marker": { "size": 10 }, "mode": "markers", "showlegend": false, "type": "scatter", "x": [ 1 ], "y": [ 8 ] } ] } ], "layout": { "annotations": [ { "font": { "size": 16 }, "showarrow": false, "text": "Main plot", "x": 0.225, "xanchor": "center", "xref": "paper", "y": 1, "yanchor": "bottom", "yref": "paper" }, { "font": { "size": 16 }, "showarrow": false, "text": "Most Recent Values", "x": 0.775, "xanchor": "center", "xref": "paper", "y": 1, "yanchor": "bottom", "yref": "paper" } ], "template": { "data": { "bar": [ { "error_x": { "color": "rgb(36,36,36)" }, "error_y": { "color": "rgb(36,36,36)" }, "marker": { "line": { "color": "rgb(234,234,242)", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "bar" } ], "barpolar": [ { "marker": { "line": { "color": "rgb(234,234,242)", "width": 0.5 }, "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "barpolar" } ], "carpet": [ { "aaxis": { "endlinecolor": "rgb(36,36,36)", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "rgb(36,36,36)" }, "baxis": { "endlinecolor": "rgb(36,36,36)", "gridcolor": "white", "linecolor": "white", "minorgridcolor": "white", "startlinecolor": "rgb(36,36,36)" }, "type": "carpet" } ], "choropleth": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "choropleth" } ], "contour": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "contour" } ], "contourcarpet": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "contourcarpet" } ], "heatmap": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "heatmap" } ], "heatmapgl": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "heatmapgl" } ], "histogram": [ { "marker": { "pattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 } }, "type": "histogram" } ], "histogram2d": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "histogram2d" } ], "histogram2dcontour": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "histogram2dcontour" } ], "mesh3d": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "type": "mesh3d" } ], "parcoords": [ { "line": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "parcoords" } ], "pie": [ { "automargin": true, "type": "pie" } ], "scatter": [ { "fillpattern": { "fillmode": "overlay", "size": 10, "solidity": 0.2 }, "type": "scatter" } ], "scatter3d": [ { "line": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatter3d" } ], "scattercarpet": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattercarpet" } ], "scattergeo": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattergeo" } ], "scattergl": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattergl" } ], "scattermapbox": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scattermapbox" } ], "scatterpolar": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterpolar" } ], "scatterpolargl": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterpolargl" } ], "scatterternary": [ { "marker": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "type": "scatterternary" } ], "surface": [ { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 }, "colorscale": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "type": "surface" } ], "table": [ { "cells": { "fill": { "color": "rgb(231,231,240)" }, "line": { "color": "white" } }, "header": { "fill": { "color": "rgb(183,183,191)" }, "line": { "color": "white" } }, "type": "table" } ] }, "layout": { "annotationdefaults": { "arrowcolor": "rgb(67,103,167)" }, "autotypenumbers": "strict", "coloraxis": { "colorbar": { "outlinewidth": 0, "tickcolor": "rgb(36,36,36)", "ticklen": 8, "ticks": "outside", "tickwidth": 2 } }, "colorscale": { "sequential": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ], "sequentialminus": [ [ 0, "rgb(2,4,25)" ], [ 0.06274509803921569, "rgb(24,15,41)" ], [ 0.12549019607843137, "rgb(47,23,57)" ], [ 0.18823529411764706, "rgb(71,28,72)" ], [ 0.25098039215686274, "rgb(97,30,82)" ], [ 0.3137254901960784, "rgb(123,30,89)" ], [ 0.3764705882352941, "rgb(150,27,91)" ], [ 0.4392156862745098, "rgb(177,22,88)" ], [ 0.5019607843137255, "rgb(203,26,79)" ], [ 0.5647058823529412, "rgb(223,47,67)" ], [ 0.6274509803921569, "rgb(236,76,61)" ], [ 0.6901960784313725, "rgb(242,107,73)" ], [ 0.7529411764705882, "rgb(244,135,95)" ], [ 0.8156862745098039, "rgb(245,162,122)" ], [ 0.8784313725490196, "rgb(246,188,153)" ], [ 0.9411764705882353, "rgb(247,212,187)" ], [ 1, "rgb(250,234,220)" ] ] }, "colorway": [ "rgb(76,114,176)", "rgb(221,132,82)", "rgb(85,168,104)", "rgb(196,78,82)", "rgb(129,114,179)", "rgb(147,120,96)", "rgb(218,139,195)", "rgb(140,140,140)", "rgb(204,185,116)", "rgb(100,181,205)" ], "font": { "color": "rgb(36,36,36)" }, "geo": { "bgcolor": "white", "lakecolor": "white", "landcolor": "rgb(234,234,242)", "showlakes": true, "showland": true, "subunitcolor": "white" }, "hoverlabel": { "align": "left" }, "hovermode": "closest", "paper_bgcolor": "white", "plot_bgcolor": "rgb(234,234,242)", "polar": { "angularaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "bgcolor": "rgb(234,234,242)", "radialaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" } }, "scene": { "xaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" }, "yaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" }, "zaxis": { "backgroundcolor": "rgb(234,234,242)", "gridcolor": "white", "gridwidth": 2, "linecolor": "white", "showbackground": true, "showgrid": true, "ticks": "", "zerolinecolor": "white" } }, "shapedefaults": { "fillcolor": "rgb(67,103,167)", "line": { "width": 0 }, "opacity": 0.5 }, "ternary": { "aaxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "baxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" }, "bgcolor": "rgb(234,234,242)", "caxis": { "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "" } }, "xaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white" }, "yaxis": { "automargin": true, "gridcolor": "white", "linecolor": "white", "showgrid": true, "ticks": "", "title": { "standoff": 15 }, "zerolinecolor": "white" } } }, "title": { "text": "Plotly Animation with Multiple Traces", "x": 0.5 }, "updatemenus": [ { "buttons": [ { "args": [ null, { "frame": { "duration": 1000, "redraw": true }, "fromcurrent": true } ], "label": "Play", "method": "animate" } ], "showactive": false, "type": "buttons" } ], "xaxis": { "anchor": "y", "domain": [ 0, 0.45 ] }, "xaxis2": { "anchor": "y2", "domain": [ 0.55, 1 ] }, "yaxis": { "anchor": "x", "domain": [ 0, 1 ] }, "yaxis2": { "anchor": "x2", "domain": [ 0, 1 ] } } }, "text/html": [ "
" ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import plotly.subplots as sp\n", "import plotly.graph_objects as go\n", "\n", "# Sample data\n", "x = [1, 2, 3, 4, 5]\n", "y1 = [10, 15, 13, 17, 12]\n", "y2 = [5, 9, 11, 13, 8]\n", "\n", "# Create a subplot with 1 row and 2 columns\n", "fig = sp.make_subplots(rows=1, cols=2, subplot_titles=(\"Main plot\", \"Most Recent Values\"))\n", "\n", "# Add initial traces to the main plot\n", "fig.add_trace(go.Scatter(x=[], y=[], mode=\"markers+lines\", name=\"Sample Data 1\"), row=1, col=1)\n", "fig.add_trace(go.Scatter(x=[], y=[], mode=\"markers+lines\", name=\"Sample Data 2\"), row=1, col=1)\n", "\n", "# Add initial scatter traces to the second subplot\n", "fig.add_trace(go.Scatter(x=[1], y=[0], mode=\"markers\", marker=dict(size=10), showlegend=False), row=1, col=2)\n", "fig.add_trace(go.Scatter(x=[1], y=[0], mode=\"markers\", marker=dict(size=10), showlegend=False), row=1, col=2)\n", "\n", "# Update layout\n", "fig.update_layout(\n", " title_text=\"Plotly Animation with Multiple Traces\",\n", " title_x=0.5,\n", " updatemenus=[dict(\n", " type=\"buttons\",\n", " showactive=False,\n", " buttons=[dict(\n", " label=\"Play\",\n", " method=\"animate\",\n", " args=[None, {\"frame\": {\"duration\": 1000, \"redraw\": True}, \"fromcurrent\": True}]\n", " )]\n", " )]\n", ")\n", "\n", "# Create animation frames\n", "frames = []\n", "for i in range(len(x)):\n", " frame = go.Frame(\n", " data=[\n", " go.Scatter(x=x[:i+1], y=y1[:i+1], mode=\"markers+lines\", name=\"Sample Data 1\"),\n", " go.Scatter(x=x[:i+1], y=y2[:i+1], mode=\"markers+lines\", name=\"Sample Data 2\"),\n", " go.Scatter(x=[1], y=[y1[i]], mode=\"markers\", marker=dict(size=10), showlegend=False),\n", " go.Scatter(x=[1], y=[y2[i]], mode=\"markers\", marker=dict(size=10), showlegend=False)\n", " ]\n", " )\n", " frames.append(frame)\n", "\n", "# Add frames to the figure\n", "fig.frames = frames\n", "\n", "# Show the plot\n", "fig.show()\n" ] }, { "cell_type": "code", "execution_count": null, "id": "bcd4980d", "metadata": {}, "outputs": [], "source": [] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.6" } }, "nbformat": 4, "nbformat_minor": 5 }