% Get this figure: fig = getplotlyfig('r_user_guide', 1079) % Get this figure's data: fig = getplotlyfig('r_user_guide', 1079); fig.data % Add data to this figure: plotly([1, 2], [2, 3], struct('filename', 'from api (813)', 'fileopt', 'extend')) % Get y data of first trace: fig = getplotlyfig('r_user_guide', 1079); y1 = fig.data{1}.y % Get figure documentation: https://plotly.com/matlab/get-requests/ % Add data documentation: https://plotly.com/matlab/file-options/ % You can reproduce this figure in MATLAB with the following code! % Learn about API authentication here: https://plotly.com/matlab/getting-started % Find your api_key here: https://plotly.com/settings/api signin('username', 'api_key') trace1 = struct(... 'line', struct(... 'dash', 'solid', ... 'color', 'rgb(51,51,51)', ... 'shape', 'linear', ... 'width', 2), ... 'name', 'A', ... 'type', 'box', ... 'y', [-1.2070657493854209, 0.27742924211066, 1.084441176683056, -2.3456977026293493, 0.42912468881105, 0.506055892157574, -0.5747399601346488, -0.546631855784187, -0.564451999093283, -0.8900378290441038, -0.477192699753547, -0.998386444859704, -0.77625389463799, 0.06445881727626934, 0.9594940589707713, -0.1102854943907743, -0.5110095058066422, -0.9111954166298112, -0.8371716802689395, 2.415835178489341, 0.1340882201520312, -0.4906858966909428, -0.44054787235322707, 0.45958944100585364, -0.6937202469374755, -1.448204910386472, 0.5747557209007284, -1.023655722963879, -0.015138300364181678, -0.9359486011683936, 1.1022975462002629, -0.4755930788690574, -0.7094400375125062, -0.5012580605947614, -1.629093469078704, -1.1676192620941863, -2.1800396489486737, -1.3409931921000284, -0.2942938587637133, -0.4658975404061103, 1.449496265287132, -1.068642723674581, -0.855364633737507, -0.2806230019574539, -0.9943400762956649, -0.968514317872049, -1.107318192641766, -1.25198588563894, -0.5238281189873557, -0.49684995726669995, -1.8060312568019488, -0.5820759246893328, -1.1088896244267814, -1.0149620094920093, -0.16230952355681924, 0.5630558189945174, 1.6478174728150614, -0.7733534239436951, 1.6059096288572963, -1.15780854769441, 0.6565884643328073, 2.5489910707178565, -0.03476038980383759, -0.6696335796619575, -0.007604755710974629, 1.7770844481434263, -1.1386077367509086, 1.3678271794232626, 1.3295647907823602, 0.33647279720381734, 0.006892838441957958, -0.4554687381614281, -0.3665239328739332, 0.6482865675031478, 2.0702708613309433, -0.1533984124669701, -1.390700946701491, -0.7235817771101544, 0.25826176216785335, -0.31705911496119904, -0.17778995766429437, -0.1699940768545406, -1.3723018858766938, -0.1737871704140332, 0.8502322571218842, 0.697608711668253, 0.5499973510911011, -0.4027319754476228, -0.19159377047847675, -1.1945278796025132, -0.053158818743323934, 0.2551960009958334, 1.7059640072400748, 1.0015132523634485, -0.4955834430014601, 0.3555502969997491, -1.134608043533848, 0.8782036269522915, 0.9729167533761225, 2.1211171053756757, 0.41452353437498546, -0.47471847352936014, 0.06599349370446135, -0.5024777823938661, -0.8259985871293356, 0.16698927975298372, -0.8962646262447586, 0.168185387655757, 0.35496826101485446, -0.052105116871133596, -0.1959346187162532, -0.6490697516057603, -1.1097672313987317, 0.8492742026550582, 0.02236252607602403, 0.8311406173068353, -1.2442878513442277, 0.16902641376617525, 0.6731663069476793, -0.0262763764485261, -0.19139216855602378, -0.7819066466998764, 2.0581619877634907, 0.7505014531558307, 1.8242083023782891, 0.08005964109198799, -0.6314092989663658, -1.5132881200337271, -0.6360998310850513, 0.22630153249716084, 1.0136903474657484, 0.2527501350663418, -1.1719483128411208, 0.6687143285250335, -1.6501009348443607, -0.3658522481919009, -0.31611832883307983, -1.948246047321369, 0.9200575223909052, -0.6228715948788748, -0.3340366499974584, 1.3951478925296228, 0.63667441103895, -0.10843169699038264, 0.5137627784046735, 0.39927180727395833, 1.6628564474304048, 0.2758934035854829, 0.5062726232076872, 0.34755197502381147, -0.37723764749631333, 0.09761946310923739, 1.6387446451217278, -0.8755924741895688, 0.12175999864104588, 1.362130660844982, -0.23462108692271014, -1.053382807943086, -0.8697836056359117, -0.3901270296470549, -0.8473500731295719, -0.26063939209939924, -0.4144197063418933, -0.1830507977194335, 0.40705609788057767, 0.6246331282021466, 1.678205743704712, -0.06869365356499067, -0.32083991265817746, 1.471005717048905, 1.7043293978270984, 0.04324403755752908, -0.332657319133519, -1.8222354175630957, 1.4112623987467803, -0.8375824340768611, -1.1237627943953163, 3.043765886095288, 0.2350213082506708, -0.033258610113305734, -2.7322195229558033, -0.09979058844189614, 0.9760317349223964, 0.41386891545109733, 0.9123221616101135, 1.983732200684385, 1.1691085140136264, -0.5087370154152195, 0.7041801784655121, -0.19841627382207877, -0.5380707888848628, -2.8557586550192346, -0.7896468522637611, 0.48781463516368456, 2.168032539519327, 0.5006946142807859, 0.6202102036673197, -0.9659032101335753, 0.16265470811826502, -2.078237541887377], ... 'xaxis', 'x1', ... 'yaxis', 'y1', ... 'fillcolor', 'rgb(248,118,109)'); trace2 = struct(... 'line', struct(... 'dash', 'solid', ... 'color', 'rgb(51,51,51)', ... 'shape', 'linear', ... 'width', 2), ... 'name', 'B', ... 'type', 'box', ... 'y', [1.2852268205692525, 1.4967687785649126, 0.9855139155830571, 1.5007335155444612, 1.1116810286613594, 1.5604623619678382, 2.642463626207661, 1.912362841262596, 0.8326639575014442, -0.3144489647973643, 1.218057822385083, 0.39976476265683697, 2.2934931026174805, -0.8070809398497165, 0.3842482115984847, 1.22200837321742, 0.6482634634650228, 0.19384888473578044, 0.49527893103328596, 1.4295360998844715, 1.6951719802755387, 1.4602126318204054, 3.0734835204474793, 1.9734975726323913, 1.0877097283137869, 0.14022990617869446, 3.7191401307176157, 1.4774155004383278, 0.11567965586399309, 0.9864920830809706, 0.4756066995163429, 0.5252957817741937, -0.13350334058986768, 0.9168453449860816, 1.1191602386481172, -0.2775421227594297, -2.433152132923137, 0.5451253473454661, 0.8295178303214797, 1.3942737741105127, 0.8591351681787969, 1.2133988947370455, -0.2977721745704207, 1.5111752572704407, 1.518888729854143, 1.0516510690289678, 2.1572744361517744, 1.2044684712786073, 1.0643642698379387, 1.0680439041436973, 1.2369305770394834, 1.8601239054873644, 1.2521903965287153, 1.463198615687065, -0.336373553990835, 0.4295024829078829, 2.27696958979247, -0.42390375051375595, 1.0580683873961056, 1.2050028054335165, 1.77580332180945, 0.45112326346009113, 0.9586254394912624, -0.9632550665411534, 1.138596047099905, 0.13343497044072705, 0.561353375672356, -0.38776528245719377, 1.1849353217685783, 1.4665795156544796, 0.4953861105422648, 2.625011064086296, 1.4705593705675875, 1.7486325732551533, 2.849403001670911, 0.14888639076246524, 1.6086192728462936, 1.786580613954563, 0.7938292039093, 1.1190523579319118, -0.2118219027418442, 1.270167547726389, 0.09902966837090255, 1.6136828625264914, -0.011430783992772198, 1.1193974870994603, -0.04652265316362436, 0.5542368208712675, -0.7528590111054609, 0.9284340329257534, 1.7854433894048676, 0.9832475230671915, -0.9662292134304586, 0.17946630338405634, 2.456043036998736, 2.6098053855838765, -0.37503676801213515, 0.43329674117235895, 1.1536254489272868, 1.1191562208678976, 0.22004301098059853, -0.15327870194690651, 0.620571413054379, 1.8098082149443033, 0.8236266149214089, 0.1509717804160995, 0.2956257779518091, 2.4143914954583634, 0.35304018874433707, 1.563176761113315, 2.2717186861857988, 1.2436649036874154, 0.37827812992981125, 0.7599983737939264, 0.30772003177211266, 2.0277171173127515, 0.6504464347556078, 2.3499833839824635, 0.23838746461868643, 0.15288274936763935, 0.9431321590504268, 0.8241886479910513, 0.2955484754191311, -0.7813968099303388, 0.8300664212554181, 0.08342330092929873, 1.882610955476119, -0.1526854549392933, 1.9264827290091573, 0.15095698262088408, 1.092470078406726, 1.698702724402737, 0.2812576432081261, 1.3544385523451252, 0.7120263288159873, -0.3352129294075217, 0.5299203890000982, 2.419789877534936, 0.5858688263033599, -0.017782462924956777, 0.7459770759183929, 1.1301416098578694, 1.7553246146573993, 1.9439598777924414, 0.9005223983750632, 1.964575245657383, 0.0357400522008523, -1.5445134046903035, 0.3283165744704645, 0.28414451049261014, -1.5160361515025607, 1.3624717569695326, 0.016224860577619293, 0.5739460137718349, -0.7871029876540419, 1.3475242018683158, 2.6912270173554806, -0.07807711022404396, 0.6874410889552132, 2.748713064975991, 1.7338163322077271, 2.7130594216970483, 0.7947659420680605, 0.6477399510783649, 0.29036834282088186, 2.2345737034261175, -0.48583853233298835, 1.1073142152550184, 0.753681466722617, 3.051841800126878, 0.19196627139029232, -0.7092881698510358, 1.0326317695085758, 0.7603513039489068, -0.03912506750534539, 0.9322910882441561, 0.5244752532940611, 0.12124135873196829, 1.3008359317758253, 0.4683376879932114, -1.0349802507725263, -1.8517412483726814, 0.21941782791558517, 2.2541868708711896, 1.6381293799646928, 2.015053580446136, 1.7825054427327947, 1.1157640240184308, -0.7070626277163208, 1.0055697871662772, 2.39722809034381, -2.5960635345743635, 0.01864771569791801, 1.9024646407519072, 1.3287450194452926, 1.589394403514854, 1.2570995058560814, 1.3388331156581226, 0.8146431224111013, -0.11648913570309338], ... 'xaxis', 'x1', ... 'yaxis', 'y1', ... 'fillcolor', 'rgb(0,191,196)'); data = {trace1, trace2}; layout = struct(... 'xaxis', struct(... 'type', 'category', ... 'ticks', 'outside', ... 'title', 'cond', ... 'showgrid', true, ... 'showline', false, ... 'zeroline', false, ... 'gridcolor', 'rgb(255,255,255)', ... 'tickcolor', 'rgb(127,127,127)', ... 'showticklabels', true), ... 'yaxis', struct(... 'type', 'linear', ... 'ticks', 'outside', ... 'title', 'rating', ... 'showgrid', true, ... 'showline', false, ... 'zeroline', false, ... 'gridcolor', 'rgb(255,255,255)', ... 'tickcolor', 'rgb(127,127,127)', ... 'showticklabels', true), ... 'legend', struct(... 'x', 1.05, ... 'y', 0.5, ... 'font', struct('family', ''), ... 'bgcolor', 'rgb(255,255,255)', ... 'xanchor', 'center', ... 'yanchor', 'top', ... 'bordercolor', 'transparent'), ... 'margin', struct('r', 10), ... 'titlefont', struct('family', ''), ... 'showlegend', true, ... 'annotations', { {... struct(... 'x', 1.05, ... 'y', 0.52, ... 'text', 'cond', ... 'xref', 'paper', ... 'yref', 'paper', ... 'xanchor', 'center', ... 'showarrow', false, ... 'textangle', 0)... } }, ... 'plot_bgcolor', 'rgb(229,229,229)', ... 'paper_bgcolor', 'rgb(255,255,255)'); response = plotly(data, struct('layout', layout)); plot_url = response.url