Created
June 14, 2016 21:00
-
-
Save Chris7/e309d4c7c3f07082886d749652338860 to your computer and use it in GitHub Desktop.
Example script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var plotElement = document.getElementById('the-plot'); | |
plotElement.set('data.0', {"x": [-35.06232668720532, -22.216139448918263, 188.09917240172317, 6.282921434684797, -7.880544504898425, -18.38410565967318, -20.456847940665618, -16.82103052762311, -18.906880480588622, -27.74532979451966, -17.808073694649554, 1.580692830106425, -4.885956108146621, -16.942251567838564, -6.593572419804109, -19.241258109173923, -9.345149650251491, -9.643001822160585, -18.647197424444784, -16.045371701391904, -21.933519851307192, -17.62795964049914, -11.086111211438952, -15.001702824721526, -11.53031201307087, -16.287889536991585, -16.19759313390059, -10.767485708707673, -17.79653944266857, -11.56272535977632], "y": [-257.70633387666305, -271.52543362708633, -352.64101162998384, -293.84439313937224, -228.36756951720818, -237.85381893574308, -276.4268519719878, -255.54747420796846, -290.7765749481366, -285.4082324988238, -252.34070852189924, -271.6961131713313, -213.08840290771914, -233.4536946197615, -215.09073454826023, -256.78451560931506, -231.4816252782173, -205.633369325184, -229.49349927237822, -236.64158022966302, -232.76488000598343, -231.11467092689512, -212.37411402576987, -205.37444004258685, -249.44485576712384, -280.53096125249493, -245.11536483055744, -242.91207261857673, -274.13576915850666, -222.37087407117247], "z": [125.1694016762345, 134.45589875162514, 748.5784466356727, 225.63038440951607, 140.50520373640344, 123.44242978561141, 143.11291815378627, 138.15837581470103, 158.05915778059048, 132.01633791346717, 134.42199915597365, 208.515186202758, 138.2344093367069, 121.04528986055952, 135.01291696914336, 132.61502936639434, 140.08996612739173, 119.84976007209848, 114.02321317031341, 126.8639844732416, 109.01339816921377, 118.67052293312612, 129.03843663794024, 106.27147112750613, 154.65309446265297, 159.44418661743777, 134.48797845064036, 146.4927767073192, 150.95966670333505, 127.51512231003593], "type": "scatter3d", "mode": "markers", "name": "Experimental Data", "text": ["117816_1", "117816_10", "117816_11", "117816_12", "117816_13", "117816_14", "117816_15", "117816_16", "117816_17", "117816_18", "117816_19", "117816_2", "117816_20", "117816_21", "117816_22", "117816_23", "117816_24", "117816_25", "117816_26", "117816_27", "117816_28", "117816_29", "117816_3", "117816_30", "117816_4", "117816_5", "117816_6", "117816_7", "117816_8", "117816_9"]}); | |
plotElement.set('data.1', {"x": [-9.531263983175533, 2.0821741990178526, 1.766286067810937, 1.2659714012616514, 2.1627034655432418, 2.2541288495418486], "y": [-0.2136243494286553, -1.0672959497115586, 5.53071940658556, 0.22558470975885223, -2.4048176025469234, -2.070566214657275], "z": [-0.07935210689440544, 3.931121954361, -0.777039304320737, 0.7520027828861686, -1.1463237089484801, -2.6804096170835456], "type": "scatter3d", "mode": "markers", "name": "Reference Data", "text": ["116408 Peak 1_8", "116408 Peak 2_9", "116408 Peak 3_10", "116408 Peak 4_11", "116408 Peak 5_12", "116408 Peak 6_13"]}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment