y4ashida/rbplotly

View on GitHub
examples/Histograms.ipynb

Summary

Maintainability
Test Coverage
{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "\n",
       "  <script>\n",
       "  requirejs.config({paths: { 'plotly': ['https://cdn.plot.ly/plotly-latest.min'] }})\n",
       "  </script>\n",
       "\n",
       "\n",
       "<div id=\"8cd9d949-4ada-4cd8-8338-e2e2ee2b9894\" style=\"height: 100%; width: 100%;\"></div>\n",
       "\n",
       "<script>\n",
       " require(['plotly'], function(Plotly) { \n",
       "Plotly.newPlot(\n",
       "  '8cd9d949-4ada-4cd8-8338-e2e2ee2b9894',\n",
       "  [{\"x\":[0.2942709079419361,0.21075759664424176,0.4507635598118156,0.5323161996836732,0.6158483935534982,0.5617685506761113,0.35638093468678644,0.3074352092618795,0.5258449178776419,0.23494017880585927,0.4214906201632882,0.7193667701902945,0.6053315167489312,0.09477150002187884,0.4314088198988131,0.27960276312421906,0.41168595404290975,0.5953329609033754,0.6488141113825862,0.6410450088742157,0.132768417851155,0.8113876306653193,0.5273586577978917,0.28958212346490253,0.38473122133283955,0.7553623738760905,0.916057071154953,0.9771422921019263,0.0219087343931772,0.959356940593063,0.31496436239305514,0.4929757656826076,0.09275750315650222,0.1901546379163196,0.2863331668936532,0.7814963736183473,0.7119537514573202,0.4452566739637793,0.6364985523353799,0.985505960553461,0.5929799524726765,0.9012967309444065,0.1271205742249878,0.9780643213354355,0.08594175798500059,0.27123583096405957,0.17231648924344356,0.24895388314055777,0.5100325456406406,0.5412226190780236,0.5111980390074985,0.3232401419316209,0.13531428633657716,0.2591334248438265,0.4821708390962126,0.8014878786815782,0.2899575578756306,0.8108883195252004,0.722215430315489,0.009056222905411526,0.48552884977728294,0.33340540359009707,0.8003361642594651,0.8427350029092714,0.37339540802571425,0.541811915189543,0.16120694531201574,0.7720641422417982,0.37137056481474384,0.509624045994267,0.8614811955627087,0.9008755367629196,0.7031515805109934,0.8758201763909,0.029758008062963248,0.9158105445145365,0.5373366017132732,0.3313928741057912,0.2842638793890436,0.9030223662989227,0.16091834803230776,0.7439085852420073,0.6475130418149018,0.277222372740378,0.20605308088701468,0.7076028785986701,0.24821375004977386,0.35076605164148944,0.21775481711911826,0.48863703774176226,0.3240564827407624,0.6569852411086875,0.8646104433302572,0.032628637093236934,0.4183281558685189,0.49152520508373,0.9854387029968675,0.5217709480239929,0.2952470004242418,0.3747243839808386,0.0022222160679797875,0.6079710738932325,0.408837222195892,0.7137510115245531,0.026631069825837184,0.8535186292939572,0.2878963833317988,0.6673978080298499,0.3797394719250412,0.43905894290341696,0.9221967919292648,0.24201261819525344,0.9113120240616012,0.15844090140797495,0.2296107202886991,0.32951316125944863,0.3832833309853714,0.8825125009427446,0.023803239891589056,0.3815298434084522,0.4396209521854534,0.01677209901187504,0.7129563665098051,0.8935827919706518,0.8836885104189789,0.5586933037337863,0.4631678740951215,0.2511454740364518,0.9126451540069624,0.5748456932188779,0.18541335074790866,0.6068470030767213,0.4623586525738892,0.31081955843779097,0.16518377979946153,0.9819362270306423,0.6645902067860189,0.6292367200209642,0.11814669866048932,0.6327028775036166,0.07682728452371301,0.5442762713814352,0.9129196111200293,0.6737269515014628,0.03603614772157482,0.5053681219718107,0.29370477336711054,0.18177236613304792,0.2554415598717049,0.2524982631580386,0.5726274776391082,0.20500109424473656,0.8049705018094359,0.35001086160422756,0.6963830934214947,0.9465031779055827,0.8129040125680941,0.5048075563682233,0.8608021523080329,0.6284187168241879,0.9349856967094302,0.9930549237820306,0.26343920418020805,0.6943739359274025,0.09823233938873932,0.7534403691965718,0.7398552475673881,0.1555710404799937,0.1484835805875444,0.38080622222386384,0.6713646870213317,0.5472395092483366,0.08423003327212197,0.6466004957425141,0.27150872574666385,0.4829323271794369,0.31210043906079965,0.3249582842593215,0.290427691449503,0.41155481592833965,0.8106662674354532,0.18587851551930668,0.4528656860956295,0.17114660326352116,0.4657061167867842,0.2678784371054048,0.9860822027956542,0.28047740160016876,0.521866274344278,0.23089755291895653,0.26204333667852997,0.5264128482799174,0.03426637729358151,0.7178404125569819,0.49075453093501586,0.3174519971304802,0.580396295921689,0.8266488621026452,0.7145309095096285,0.3501015280428994,0.6774635074773913,0.6768061638196861,0.6997583253682814,0.8066203028740551,0.8060843323954033,0.35281671584294216,0.8166777460186373,0.9176081177172289,0.5015194037604084,0.5497997542734646,0.3612105080818233,0.5588510130880481,0.6323976574824047,0.710426913983777,0.4295719280790321,0.9106276638850702,0.2969059720125792,0.8432199875528353,0.7024317420417275,0.009213481391956768,0.14840918515582413,0.4529302232160588,0.6848250846776632,0.45421324797411733,0.8959347890115728,0.16397372493321005,0.31330878241100824,0.8970678010214731,0.5632453945468702,0.5126777731995182,0.8704174071253197,0.23665247116338428,0.6782310850048989,0.3099431671901419,0.5454608867909275,0.09230030613085294,0.9458744493467494,0.41611195633659104,0.6397763480667221,0.8384489016228241,0.09874205494309396,0.5278468931744442,0.5438495268719838,0.55149494135528,0.14448053384817994,0.044544066932281634,0.6612783513242274,0.3755649576347456,0.03431220454769368,0.9934612492190255,0.7688710280082478,0.3389545252253131,0.7738187030110214,0.8164872467484098,0.6537895037213985,0.39219860407683615,0.7730181491466183,0.42700223475264354,0.8372670915582412,0.5603023624971715,0.3484920851550566,0.12206268085300387,0.027718472955160833,0.24285845047466093,0.13038457134274584,0.1821421457270478,0.8180641842961788,0.6468112289433454,0.6786137832515612,0.2649645187318215,0.11295847190839181,0.7144763224313668,0.8422882803137242,0.5918360397074763,0.02755719654452693,0.13116827489513205,0.49030978251776536,0.3916416343823188,0.542612607444934,0.5733307179767209,0.8826236345600653,0.9647812905494776,0.4682062972046238,0.4705116301141766,0.769346350896276,0.3018252236745911,0.37357948414324493,0.1990652770918181,0.4515414233628311,0.5714040818663472,0.35356923959515096,0.08040731267102208,0.7077296226845344,0.7613501056061757,0.6877755636276306,0.23423531668691677,0.15732190970119075,0.01572296878651469,0.4972830491804182,0.06953300231224568,0.9486183952571313,0.8258159412557152,0.8759965850303153,0.5050362417378709,0.920482499464285,0.21951268335215468,0.17591719288392538,0.183929251947756,0.3458198381752471,0.4377243202530733,0.47258056893381273,0.6036247398522206,0.6119589322617547,0.9254168838168809,0.5499518801287434,0.06549122080508862,0.002345009937452236,0.7842790516149253,0.30803301120008,0.5138356182043174,0.26838201047138055,0.5707338026291777,0.3674770876623539,0.5538191156986997,0.553089683547777,0.9236581903299089,0.2450054076762701,0.09995188815404654,0.333918910608927,0.33810683615739734,0.4197761045872076,0.10930582365824137,0.19268651403745518,0.28104316479552793,0.13985976786349663,0.08600886760067239,0.0656213654021297,0.20133628379098356,0.9660525097779862,0.6639676809486362,0.3732173968706438,0.938124691115413,0.24087242309990708,0.2853633435948504,0.7724020152231509,0.9311919103670926,0.4129195996238262,0.549424018927679,0.5713708322304388,0.8304312892057317,0.9116587388110712,0.34586556512679856,0.007457731400561829,0.11653803285232622,0.8153213795722827,0.3471412438377265,0.8668860464942315,0.5117052713795001,0.27426734321788726,0.5976215223321437,0.7804553294199835,0.9489054134629865,0.36976800776426366,0.19709441088456436,0.8248778946505538,0.12748719393789132,0.24491881813804894,0.7583909969173175,0.8492236890472936,0.3160062336108673,0.44218634017679515,0.18907910462480781,0.47734786697519616,0.09463987861103729,0.5528685935787785,0.6610112704878279,0.8865471529389028,0.8246710260577944,0.3880737642012275,0.5811050568529739,0.14880638056045825,0.9276415004469738,0.6177569381931396,0.9721131522430645,0.7353838396758146,0.7752058260586295,0.12365050791065424,0.32465313662264517,0.8110383623085385,0.9255192921471196,0.19706632127489765,0.37020583290596387,0.725594740942325,0.020413393964460846,0.8881857750967495,0.9485199875905115,0.36846960644985616,0.7918999917529174,0.423193551068502,0.27683789749658594,0.9973755764641876,0.4369426539414166,0.5210822181866065,0.6725181600315542,0.8844065079838399,0.7938671324456699,0.4885784289761004,0.9208925570401483,0.9551805020128525,0.7490598086744121,0.5314785233220692,0.08557551651769779,0.25999214439263596,0.3263877503823479,0.23009056001953465,0.7750140599329359,0.7603083360926515,0.4371122196226007,0.592546574999225,0.4821310674081929,0.32436500759864006,0.8742171703912331,0.04898062097810041,0.8003075158126195,0.17451423533153054,0.9328154827810852,0.1949657274732911,0.12738692278295904,0.6815430352071549,0.6749851716467928,0.21205388564298377,0.39022749174358295,0.22704393318795313,0.5886191069130098,0.47152988406519647,0.36682963953924175,0.2568868081590474,0.3308967136527572,0.1502751737108453,0.13227401066294486,0.8364865727894538,0.42464541751131546,0.12545576758618038,0.0023779038694338173,0.8940403774280427,0.3552112637033934,0.3095927645685266,0.014957456013550474,0.3092687689903968,0.7595996527232244,0.838860282628128,0.18611730064376508,0.5676321819679359,0.8381828655393255,0.4488607859017437,0.3781759289638611,0.29064535015201065,0.0794772225593936,0.9253770000571481,0.4183735871388634,0.910601529377618,0.42192477480835877,0.8233923972712007,0.9105486215288278,0.49401585809766446,0.08551880413472723,0.7993691011952908,0.6069348982414523,0.06703257963194686,0.012015456336609609,0.6921094126947531,0.03911318980788714,0.2462026742757164,0.23797051075933773,0.9077271191025862,0.4876356006796734,0.594503090962133,0.3698579698339496,0.5020034706650011,0.4397730753924677,0.3985572387604728,0.8169456759088498,0.7012262143279271,0.7253821399763081,0.36881581330929647,0.6131995421946187,0.9860127149188899,0.27979538121718317,0.8737188584162405,0.7965397248081789,0.14123154406220895,0.14034046592971972,0.8459868501320017,0.16345744209812085,0.7532579445397001,0.43320012365931726,0.7086148468853519,0.43637278596129714,0.47025541700797535,0.27460675585180294],\"type\":\"histogram\"}],\n",
       "  {},\n",
       "  {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
       ")\n",
       "\n",
       "window.addEventListener('resize', function() {\n",
       "  Plotly.Plots.resize(document.getElementById('8cd9d949-4ada-4cd8-8338-e2e2ee2b9894'))\n",
       "})\n",
       " }) \n",
       "</script>"
      ],
      "text/plain": [
       "#<Plotly::Offline::HTML:0x007fd612af40e8 @id=\"8cd9d949-4ada-4cd8-8338-e2e2ee2b9894\", @data=[{:x=>[0.2942709079419361, 0.21075759664424176, 0.4507635598118156, 0.5323161996836732, 0.6158483935534982, 0.5617685506761113, 0.35638093468678644, 0.3074352092618795, 0.5258449178776419, 0.23494017880585927, 0.4214906201632882, 0.7193667701902945, 0.6053315167489312, 0.09477150002187884, 0.4314088198988131, 0.27960276312421906, 0.41168595404290975, 0.5953329609033754, 0.6488141113825862, 0.6410450088742157, 0.132768417851155, 0.8113876306653193, 0.5273586577978917, 0.28958212346490253, 0.38473122133283955, 0.7553623738760905, 0.916057071154953, 0.9771422921019263, 0.0219087343931772, 0.959356940593063, 0.31496436239305514, 0.4929757656826076, 0.09275750315650222, 0.1901546379163196, 0.2863331668936532, 0.7814963736183473, 0.7119537514573202, 0.4452566739637793, 0.6364985523353799, 0.985505960553461, 0.5929799524726765, 0.9012967309444065, 0.1271205742249878, 0.9780643213354355, 0.08594175798500059, 0.27123583096405957, 0.17231648924344356, 0.24895388314055777, 0.5100325456406406, 0.5412226190780236, 0.5111980390074985, 0.3232401419316209, 0.13531428633657716, 0.2591334248438265, 0.4821708390962126, 0.8014878786815782, 0.2899575578756306, 0.8108883195252004, 0.722215430315489, 0.009056222905411526, 0.48552884977728294, 0.33340540359009707, 0.8003361642594651, 0.8427350029092714, 0.37339540802571425, 0.541811915189543, 0.16120694531201574, 0.7720641422417982, 0.37137056481474384, 0.509624045994267, 0.8614811955627087, 0.9008755367629196, 0.7031515805109934, 0.8758201763909, 0.029758008062963248, 0.9158105445145365, 0.5373366017132732, 0.3313928741057912, 0.2842638793890436, 0.9030223662989227, 0.16091834803230776, 0.7439085852420073, 0.6475130418149018, 0.277222372740378, 0.20605308088701468, 0.7076028785986701, 0.24821375004977386, 0.35076605164148944, 0.21775481711911826, 0.48863703774176226, 0.3240564827407624, 0.6569852411086875, 0.8646104433302572, 0.032628637093236934, 0.4183281558685189, 0.49152520508373, 0.9854387029968675, 0.5217709480239929, 0.2952470004242418, 0.3747243839808386, 0.0022222160679797875, 0.6079710738932325, 0.408837222195892, 0.7137510115245531, 0.026631069825837184, 0.8535186292939572, 0.2878963833317988, 0.6673978080298499, 0.3797394719250412, 0.43905894290341696, 0.9221967919292648, 0.24201261819525344, 0.9113120240616012, 0.15844090140797495, 0.2296107202886991, 0.32951316125944863, 0.3832833309853714, 0.8825125009427446, 0.023803239891589056, 0.3815298434084522, 0.4396209521854534, 0.01677209901187504, 0.7129563665098051, 0.8935827919706518, 0.8836885104189789, 0.5586933037337863, 0.4631678740951215, 0.2511454740364518, 0.9126451540069624, 0.5748456932188779, 0.18541335074790866, 0.6068470030767213, 0.4623586525738892, 0.31081955843779097, 0.16518377979946153, 0.9819362270306423, 0.6645902067860189, 0.6292367200209642, 0.11814669866048932, 0.6327028775036166, 0.07682728452371301, 0.5442762713814352, 0.9129196111200293, 0.6737269515014628, 0.03603614772157482, 0.5053681219718107, 0.29370477336711054, 0.18177236613304792, 0.2554415598717049, 0.2524982631580386, 0.5726274776391082, 0.20500109424473656, 0.8049705018094359, 0.35001086160422756, 0.6963830934214947, 0.9465031779055827, 0.8129040125680941, 0.5048075563682233, 0.8608021523080329, 0.6284187168241879, 0.9349856967094302, 0.9930549237820306, 0.26343920418020805, 0.6943739359274025, 0.09823233938873932, 0.7534403691965718, 0.7398552475673881, 0.1555710404799937, 0.1484835805875444, 0.38080622222386384, 0.6713646870213317, 0.5472395092483366, 0.08423003327212197, 0.6466004957425141, 0.27150872574666385, 0.4829323271794369, 0.31210043906079965, 0.3249582842593215, 0.290427691449503, 0.41155481592833965, 0.8106662674354532, 0.18587851551930668, 0.4528656860956295, 0.17114660326352116, 0.4657061167867842, 0.2678784371054048, 0.9860822027956542, 0.28047740160016876, 0.521866274344278, 0.23089755291895653, 0.26204333667852997, 0.5264128482799174, 0.03426637729358151, 0.7178404125569819, 0.49075453093501586, 0.3174519971304802, 0.580396295921689, 0.8266488621026452, 0.7145309095096285, 0.3501015280428994, 0.6774635074773913, 0.6768061638196861, 0.6997583253682814, 0.8066203028740551, 0.8060843323954033, 0.35281671584294216, 0.8166777460186373, 0.9176081177172289, 0.5015194037604084, 0.5497997542734646, 0.3612105080818233, 0.5588510130880481, 0.6323976574824047, 0.710426913983777, 0.4295719280790321, 0.9106276638850702, 0.2969059720125792, 0.8432199875528353, 0.7024317420417275, 0.009213481391956768, 0.14840918515582413, 0.4529302232160588, 0.6848250846776632, 0.45421324797411733, 0.8959347890115728, 0.16397372493321005, 0.31330878241100824, 0.8970678010214731, 0.5632453945468702, 0.5126777731995182, 0.8704174071253197, 0.23665247116338428, 0.6782310850048989, 0.3099431671901419, 0.5454608867909275, 0.09230030613085294, 0.9458744493467494, 0.41611195633659104, 0.6397763480667221, 0.8384489016228241, 0.09874205494309396, 0.5278468931744442, 0.5438495268719838, 0.55149494135528, 0.14448053384817994, 0.044544066932281634, 0.6612783513242274, 0.3755649576347456, 0.03431220454769368, 0.9934612492190255, 0.7688710280082478, 0.3389545252253131, 0.7738187030110214, 0.8164872467484098, 0.6537895037213985, 0.39219860407683615, 0.7730181491466183, 0.42700223475264354, 0.8372670915582412, 0.5603023624971715, 0.3484920851550566, 0.12206268085300387, 0.027718472955160833, 0.24285845047466093, 0.13038457134274584, 0.1821421457270478, 0.8180641842961788, 0.6468112289433454, 0.6786137832515612, 0.2649645187318215, 0.11295847190839181, 0.7144763224313668, 0.8422882803137242, 0.5918360397074763, 0.02755719654452693, 0.13116827489513205, 0.49030978251776536, 0.3916416343823188, 0.542612607444934, 0.5733307179767209, 0.8826236345600653, 0.9647812905494776, 0.4682062972046238, 0.4705116301141766, 0.769346350896276, 0.3018252236745911, 0.37357948414324493, 0.1990652770918181, 0.4515414233628311, 0.5714040818663472, 0.35356923959515096, 0.08040731267102208, 0.7077296226845344, 0.7613501056061757, 0.6877755636276306, 0.23423531668691677, 0.15732190970119075, 0.01572296878651469, 0.4972830491804182, 0.06953300231224568, 0.9486183952571313, 0.8258159412557152, 0.8759965850303153, 0.5050362417378709, 0.920482499464285, 0.21951268335215468, 0.17591719288392538, 0.183929251947756, 0.3458198381752471, 0.4377243202530733, 0.47258056893381273, 0.6036247398522206, 0.6119589322617547, 0.9254168838168809, 0.5499518801287434, 0.06549122080508862, 0.002345009937452236, 0.7842790516149253, 0.30803301120008, 0.5138356182043174, 0.26838201047138055, 0.5707338026291777, 0.3674770876623539, 0.5538191156986997, 0.553089683547777, 0.9236581903299089, 0.2450054076762701, 0.09995188815404654, 0.333918910608927, 0.33810683615739734, 0.4197761045872076, 0.10930582365824137, 0.19268651403745518, 0.28104316479552793, 0.13985976786349663, 0.08600886760067239, 0.0656213654021297, 0.20133628379098356, 0.9660525097779862, 0.6639676809486362, 0.3732173968706438, 0.938124691115413, 0.24087242309990708, 0.2853633435948504, 0.7724020152231509, 0.9311919103670926, 0.4129195996238262, 0.549424018927679, 0.5713708322304388, 0.8304312892057317, 0.9116587388110712, 0.34586556512679856, 0.007457731400561829, 0.11653803285232622, 0.8153213795722827, 0.3471412438377265, 0.8668860464942315, 0.5117052713795001, 0.27426734321788726, 0.5976215223321437, 0.7804553294199835, 0.9489054134629865, 0.36976800776426366, 0.19709441088456436, 0.8248778946505538, 0.12748719393789132, 0.24491881813804894, 0.7583909969173175, 0.8492236890472936, 0.3160062336108673, 0.44218634017679515, 0.18907910462480781, 0.47734786697519616, 0.09463987861103729, 0.5528685935787785, 0.6610112704878279, 0.8865471529389028, 0.8246710260577944, 0.3880737642012275, 0.5811050568529739, 0.14880638056045825, 0.9276415004469738, 0.6177569381931396, 0.9721131522430645, 0.7353838396758146, 0.7752058260586295, 0.12365050791065424, 0.32465313662264517, 0.8110383623085385, 0.9255192921471196, 0.19706632127489765, 0.37020583290596387, 0.725594740942325, 0.020413393964460846, 0.8881857750967495, 0.9485199875905115, 0.36846960644985616, 0.7918999917529174, 0.423193551068502, 0.27683789749658594, 0.9973755764641876, 0.4369426539414166, 0.5210822181866065, 0.6725181600315542, 0.8844065079838399, 0.7938671324456699, 0.4885784289761004, 0.9208925570401483, 0.9551805020128525, 0.7490598086744121, 0.5314785233220692, 0.08557551651769779, 0.25999214439263596, 0.3263877503823479, 0.23009056001953465, 0.7750140599329359, 0.7603083360926515, 0.4371122196226007, 0.592546574999225, 0.4821310674081929, 0.32436500759864006, 0.8742171703912331, 0.04898062097810041, 0.8003075158126195, 0.17451423533153054, 0.9328154827810852, 0.1949657274732911, 0.12738692278295904, 0.6815430352071549, 0.6749851716467928, 0.21205388564298377, 0.39022749174358295, 0.22704393318795313, 0.5886191069130098, 0.47152988406519647, 0.36682963953924175, 0.2568868081590474, 0.3308967136527572, 0.1502751737108453, 0.13227401066294486, 0.8364865727894538, 0.42464541751131546, 0.12545576758618038, 0.0023779038694338173, 0.8940403774280427, 0.3552112637033934, 0.3095927645685266, 0.014957456013550474, 0.3092687689903968, 0.7595996527232244, 0.838860282628128, 0.18611730064376508, 0.5676321819679359, 0.8381828655393255, 0.4488607859017437, 0.3781759289638611, 0.29064535015201065, 0.0794772225593936, 0.9253770000571481, 0.4183735871388634, 0.910601529377618, 0.42192477480835877, 0.8233923972712007, 0.9105486215288278, 0.49401585809766446, 0.08551880413472723, 0.7993691011952908, 0.6069348982414523, 0.06703257963194686, 0.012015456336609609, 0.6921094126947531, 0.03911318980788714, 0.2462026742757164, 0.23797051075933773, 0.9077271191025862, 0.4876356006796734, 0.594503090962133, 0.3698579698339496, 0.5020034706650011, 0.4397730753924677, 0.3985572387604728, 0.8169456759088498, 0.7012262143279271, 0.7253821399763081, 0.36881581330929647, 0.6131995421946187, 0.9860127149188899, 0.27979538121718317, 0.8737188584162405, 0.7965397248081789, 0.14123154406220895, 0.14034046592971972, 0.8459868501320017, 0.16345744209812085, 0.7532579445397001, 0.43320012365931726, 0.7086148468853519, 0.43637278596129714, 0.47025541700797535, 0.27460675585180294], :type=>\"histogram\"}], @layout={}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# Basic Histogram\n",
    "require 'rbplotly'\n",
    "\n",
    "data = [{ x: (1..500).map { rand }, type: :histogram }]\n",
    "\n",
    "plot = Plotly::Plot.new(data: data)\n",
    "plot.show"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Ruby 2.3.1",
   "language": "ruby",
   "name": "ruby"
  },
  "language_info": {
   "file_extension": ".rb",
   "mimetype": "application/x-ruby",
   "name": "ruby",
   "version": "2.3.1"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 1
}