y4ashida/rbplotly

View on GitHub
examples/Line charts.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=\"52d2f3bb-398d-4297-9a0e-482a9f2b5201\" style=\"height: 100%; width: 100%;\"></div>\n",
       "\n",
       "<script>\n",
       " require(['plotly'], function(Plotly) { \n",
       "Plotly.newPlot(\n",
       "  '52d2f3bb-398d-4297-9a0e-482a9f2b5201',\n",
       "  [{\"x\":[0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.1,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,4.2,4.3,4.4,4.5,4.6,4.7,4.8,4.9,5.0,5.1,5.2,5.3,5.4,5.5,5.6,5.7,5.8,5.9,6.0,6.1,6.2,6.3,6.4,6.5,6.6,6.7,6.8,6.9,7.0,7.1,7.2,7.3,7.4,7.5,7.6,7.7,7.8,7.9,8.0,8.1,8.2,8.3,8.4,8.5,8.6,8.7,8.8,8.9,9.0,9.1,9.2,9.3,9.4,9.5,9.6,9.7,9.8,9.9],\"y\":[0.09983341664682815,0.19866933079506122,0.29552020666133955,0.3894183423086505,0.479425538604203,0.5646424733950354,0.644217687237691,0.7173560908995228,0.7833269096274833,0.8414709848078965,0.8912073600614354,0.9320390859672263,0.963558185417193,0.9854497299884601,0.9974949866040544,0.9995736030415051,0.9916648104524686,0.9738476308781951,0.9463000876874145,0.9092974268256817,0.8632093666488738,0.8084964038195901,0.7457052121767203,0.675463180551151,0.5984721441039564,0.5155013718214642,0.4273798802338298,0.33498815015590505,0.2392493292139824,0.1411200080598672,0.04158066243329049,-0.058374143427580086,-0.1577456941432482,-0.2555411020268312,-0.35078322768961984,-0.44252044329485246,-0.5298361409084934,-0.6118578909427189,-0.6877661591839738,-0.7568024953079282,-0.8182771110644103,-0.8715757724135881,-0.9161659367494549,-0.9516020738895161,-0.977530117665097,-0.9936910036334644,-0.9999232575641008,-0.9961646088358407,-0.9824526126243325,-0.9589242746631385,-0.9258146823277325,-0.8834546557201531,-0.8322674422239013,-0.7727644875559871,-0.7055403255703919,-0.6312666378723216,-0.5506855425976376,-0.46460217941375737,-0.373876664830236,-0.27941549819892586,-0.1821625042720959,-0.08308940281749641,0.016813900484349713,0.11654920485049364,0.21511998808781552,0.31154136351337786,0.40484992061659836,0.4941133511386082,0.5784397643882002,0.6569865987187891,0.7289690401258759,0.7936678638491531,0.8504366206285644,0.8987080958116269,0.9379999767747389,0.9679196720314863,0.9881682338770004,0.998543345374605,0.998941341839772,0.9893582466233818,0.9698898108450863,0.9407305566797731,0.9021718337562934,0.8545989080882805,0.7984871126234903,0.7343970978741134,0.6629692300821833,0.5849171928917617,0.5010208564578846,0.4121184852417566,0.3190983623493521,0.22288991410024764,0.12445442350706169,0.024775425453357765,-0.07515112046180931,-0.17432678122297965,-0.2717606264109424,-0.3664791292519284,-0.45753589377532133],\"line\":{\"shape\":\"spline\"},\"mode\":\"lines\"},{\"x\":[0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.1,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,4.2,4.3,4.4,4.5,4.6,4.7,4.8,4.9,5.0,5.1,5.2,5.3,5.4,5.5,5.6,5.7,5.8,5.9,6.0,6.1,6.2,6.3,6.4,6.5,6.6,6.7,6.8,6.9,7.0,7.1,7.2,7.3,7.4,7.5,7.6,7.7,7.8,7.9,8.0,8.1,8.2,8.3,8.4,8.5,8.6,8.7,8.8,8.9,9.0,9.1,9.2,9.3,9.4,9.5,9.6,9.7,9.8,9.9],\"y\":[0.8912073600614354,0.9320390859672263,0.963558185417193,0.9854497299884601,0.9974949866040544,0.9995736030415051,0.9916648104524686,0.9738476308781951,0.9463000876874145,0.9092974268256817,0.8632093666488738,0.8084964038195901,0.7457052121767203,0.675463180551151,0.5984721441039564,0.5155013718214642,0.4273798802338298,0.33498815015590505,0.2392493292139824,0.1411200080598672,0.04158066243329049,-0.058374143427580086,-0.1577456941432482,-0.2555411020268312,-0.35078322768961984,-0.44252044329485246,-0.5298361409084934,-0.6118578909427189,-0.6877661591839738,-0.7568024953079282,-0.8182771110644103,-0.8715757724135881,-0.9161659367494549,-0.9516020738895161,-0.977530117665097,-0.9936910036334644,-0.9999232575641008,-0.9961646088358407,-0.9824526126243325,-0.9589242746631385,-0.9258146823277325,-0.8834546557201531,-0.8322674422239013,-0.7727644875559871,-0.7055403255703919,-0.6312666378723216,-0.5506855425976376,-0.46460217941375737,-0.373876664830236,-0.27941549819892586,-0.1821625042720959,-0.08308940281749641,0.016813900484349713,0.11654920485049364,0.21511998808781552,0.31154136351337786,0.40484992061659836,0.4941133511386082,0.5784397643882002,0.6569865987187891,0.7289690401258759,0.7936678638491531,0.8504366206285644,0.8987080958116269,0.9379999767747389,0.9679196720314863,0.9881682338770004,0.998543345374605,0.998941341839772,0.9893582466233818,0.9698898108450863,0.9407305566797731,0.9021718337562934,0.8545989080882805,0.7984871126234903,0.7343970978741134,0.6629692300821833,0.5849171928917617,0.5010208564578846,0.4121184852417566,0.3190983623493521,0.22288991410024764,0.12445442350706169,0.024775425453357765,-0.07515112046180931,-0.17432678122297965,-0.2717606264109424,-0.3664791292519284,-0.45753589377532133,-0.5440211108893699,-0.6250706488928821,-0.6998746875935424,-0.7676858097635825,-0.8278264690856536,-0.87969575997167,-0.9227754216128066,-0.9566350162701879,-0.9809362300664916,-0.9954362533063774],\"line\":{\"shape\":\"spline\"},\"mode\":\"lines\"},{\"x\":[0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.1,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,4.2,4.3,4.4,4.5,4.6,4.7,4.8,4.9,5.0,5.1,5.2,5.3,5.4,5.5,5.6,5.7,5.8,5.9,6.0,6.1,6.2,6.3,6.4,6.5,6.6,6.7,6.8,6.9,7.0,7.1,7.2,7.3,7.4,7.5,7.6,7.7,7.8,7.9,8.0,8.1,8.2,8.3,8.4,8.5,8.6,8.7,8.8,8.9,9.0,9.1,9.2,9.3,9.4,9.5,9.6,9.7,9.8,9.9],\"y\":[0.8632093666488738,0.8084964038195901,0.7457052121767203,0.675463180551151,0.5984721441039564,0.5155013718214642,0.4273798802338298,0.33498815015590505,0.2392493292139824,0.1411200080598672,0.04158066243329049,-0.058374143427580086,-0.1577456941432482,-0.2555411020268312,-0.35078322768961984,-0.44252044329485246,-0.5298361409084934,-0.6118578909427189,-0.6877661591839738,-0.7568024953079282,-0.8182771110644103,-0.8715757724135881,-0.9161659367494549,-0.9516020738895161,-0.977530117665097,-0.9936910036334644,-0.9999232575641008,-0.9961646088358407,-0.9824526126243325,-0.9589242746631385,-0.9258146823277325,-0.8834546557201531,-0.8322674422239013,-0.7727644875559871,-0.7055403255703919,-0.6312666378723216,-0.5506855425976376,-0.46460217941375737,-0.373876664830236,-0.27941549819892586,-0.1821625042720959,-0.08308940281749641,0.016813900484349713,0.11654920485049364,0.21511998808781552,0.31154136351337786,0.40484992061659836,0.4941133511386082,0.5784397643882002,0.6569865987187891,0.7289690401258759,0.7936678638491531,0.8504366206285644,0.8987080958116269,0.9379999767747389,0.9679196720314863,0.9881682338770004,0.998543345374605,0.998941341839772,0.9893582466233818,0.9698898108450863,0.9407305566797731,0.9021718337562934,0.8545989080882805,0.7984871126234903,0.7343970978741134,0.6629692300821833,0.5849171928917617,0.5010208564578846,0.4121184852417566,0.3190983623493521,0.22288991410024764,0.12445442350706169,0.024775425453357765,-0.07515112046180931,-0.17432678122297965,-0.2717606264109424,-0.3664791292519284,-0.45753589377532133,-0.5440211108893699,-0.6250706488928821,-0.6998746875935424,-0.7676858097635825,-0.8278264690856536,-0.87969575997167,-0.9227754216128066,-0.9566350162701879,-0.9809362300664916,-0.9954362533063774,-0.9999902065507035,-0.9945525882039892,-0.9791777291513174,-0.954019249902089,-0.9193285256646757,-0.8754521746884285,-0.8228285949687089,-0.7619835839190333,-0.6935250847771224,-0.6181371122370333],\"line\":{\"shape\":\"spline\"},\"mode\":\"lines\"},{\"x\":[0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.1,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,4.2,4.3,4.4,4.5,4.6,4.7,4.8,4.9,5.0,5.1,5.2,5.3,5.4,5.5,5.6,5.7,5.8,5.9,6.0,6.1,6.2,6.3,6.4,6.5,6.6,6.7,6.8,6.9,7.0,7.1,7.2,7.3,7.4,7.5,7.6,7.7,7.8,7.9,8.0,8.1,8.2,8.3,8.4,8.5,8.6,8.7,8.8,8.9,9.0,9.1,9.2,9.3,9.4,9.5,9.6,9.7,9.8,9.9],\"y\":[0.04158066243329049,-0.058374143427580086,-0.1577456941432482,-0.2555411020268312,-0.35078322768961984,-0.44252044329485246,-0.5298361409084934,-0.6118578909427189,-0.6877661591839738,-0.7568024953079282,-0.8182771110644103,-0.8715757724135881,-0.9161659367494549,-0.9516020738895161,-0.977530117665097,-0.9936910036334644,-0.9999232575641008,-0.9961646088358407,-0.9824526126243325,-0.9589242746631385,-0.9258146823277325,-0.8834546557201531,-0.8322674422239013,-0.7727644875559871,-0.7055403255703919,-0.6312666378723216,-0.5506855425976376,-0.46460217941375737,-0.373876664830236,-0.27941549819892586,-0.1821625042720959,-0.08308940281749641,0.016813900484349713,0.11654920485049364,0.21511998808781552,0.31154136351337786,0.40484992061659836,0.4941133511386082,0.5784397643882002,0.6569865987187891,0.7289690401258759,0.7936678638491531,0.8504366206285644,0.8987080958116269,0.9379999767747389,0.9679196720314863,0.9881682338770004,0.998543345374605,0.998941341839772,0.9893582466233818,0.9698898108450863,0.9407305566797731,0.9021718337562934,0.8545989080882805,0.7984871126234903,0.7343970978741134,0.6629692300821833,0.5849171928917617,0.5010208564578846,0.4121184852417566,0.3190983623493521,0.22288991410024764,0.12445442350706169,0.024775425453357765,-0.07515112046180931,-0.17432678122297965,-0.2717606264109424,-0.3664791292519284,-0.45753589377532133,-0.5440211108893699,-0.6250706488928821,-0.6998746875935424,-0.7676858097635825,-0.8278264690856536,-0.87969575997167,-0.9227754216128066,-0.9566350162701879,-0.9809362300664916,-0.9954362533063774,-0.9999902065507035,-0.9945525882039892,-0.9791777291513174,-0.954019249902089,-0.9193285256646757,-0.8754521746884285,-0.8228285949687089,-0.7619835839190333,-0.6935250847771224,-0.6181371122370333,-0.5365729180004349,-0.44964746453460147,-0.3582292822368287,-0.263231791365801,-0.1656041754483094,-0.06632189735120068,0.03362304722113669,0.13323204141994222,0.23150982510153895,0.32747443913769303],\"line\":{\"shape\":\"spline\"},\"mode\":\"lines\"},{\"x\":[0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.1,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,4.2,4.3,4.4,4.5,4.6,4.7,4.8,4.9,5.0,5.1,5.2,5.3,5.4,5.5,5.6,5.7,5.8,5.9,6.0,6.1,6.2,6.3,6.4,6.5,6.6,6.7,6.8,6.9,7.0,7.1,7.2,7.3,7.4,7.5,7.6,7.7,7.8,7.9,8.0,8.1,8.2,8.3,8.4,8.5,8.6,8.7,8.8,8.9,9.0,9.1,9.2,9.3,9.4,9.5,9.6,9.7,9.8,9.9],\"y\":[-0.8182771110644103,-0.8715757724135881,-0.9161659367494549,-0.9516020738895161,-0.977530117665097,-0.9936910036334644,-0.9999232575641008,-0.9961646088358407,-0.9824526126243325,-0.9589242746631385,-0.9258146823277325,-0.8834546557201531,-0.8322674422239013,-0.7727644875559871,-0.7055403255703919,-0.6312666378723216,-0.5506855425976376,-0.46460217941375737,-0.373876664830236,-0.27941549819892586,-0.1821625042720959,-0.08308940281749641,0.016813900484349713,0.11654920485049364,0.21511998808781552,0.31154136351337786,0.40484992061659836,0.4941133511386082,0.5784397643882002,0.6569865987187891,0.7289690401258759,0.7936678638491531,0.8504366206285644,0.8987080958116269,0.9379999767747389,0.9679196720314863,0.9881682338770004,0.998543345374605,0.998941341839772,0.9893582466233818,0.9698898108450863,0.9407305566797731,0.9021718337562934,0.8545989080882805,0.7984871126234903,0.7343970978741134,0.6629692300821833,0.5849171928917617,0.5010208564578846,0.4121184852417566,0.3190983623493521,0.22288991410024764,0.12445442350706169,0.024775425453357765,-0.07515112046180931,-0.17432678122297965,-0.2717606264109424,-0.3664791292519284,-0.45753589377532133,-0.5440211108893699,-0.6250706488928821,-0.6998746875935424,-0.7676858097635825,-0.8278264690856536,-0.87969575997167,-0.9227754216128066,-0.9566350162701879,-0.9809362300664916,-0.9954362533063774,-0.9999902065507035,-0.9945525882039892,-0.9791777291513174,-0.954019249902089,-0.9193285256646757,-0.8754521746884285,-0.8228285949687089,-0.7619835839190333,-0.6935250847771224,-0.6181371122370333,-0.5365729180004349,-0.44964746453460147,-0.3582292822368287,-0.263231791365801,-0.1656041754483094,-0.06632189735120068,0.03362304722113669,0.13323204141994222,0.23150982510153895,0.32747443913769303,0.4201670368266409,0.5086614643723737,0.592073514707223,0.6695697621966024,0.7403758899524486,0.803784426551621,0.8591618148564959,0.9059547423084618,0.9436956694441048,0.9720075013949759],\"line\":{\"shape\":\"spline\"},\"mode\":\"lines\"},{\"x\":[0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,1.9,2.0,2.1,2.2,2.3,2.4,2.5,2.6,2.7,2.8,2.9,3.0,3.1,3.2,3.3,3.4,3.5,3.6,3.7,3.8,3.9,4.0,4.1,4.2,4.3,4.4,4.5,4.6,4.7,4.8,4.9,5.0,5.1,5.2,5.3,5.4,5.5,5.6,5.7,5.8,5.9,6.0,6.1,6.2,6.3,6.4,6.5,6.6,6.7,6.8,6.9,7.0,7.1,7.2,7.3,7.4,7.5,7.6,7.7,7.8,7.9,8.0,8.1,8.2,8.3,8.4,8.5,8.6,8.7,8.8,8.9,9.0,9.1,9.2,9.3,9.4,9.5,9.6,9.7,9.8,9.9],\"y\":[-0.9258146823277325,-0.8834546557201531,-0.8322674422239013,-0.7727644875559871,-0.7055403255703919,-0.6312666378723216,-0.5506855425976376,-0.46460217941375737,-0.373876664830236,-0.27941549819892586,-0.1821625042720959,-0.08308940281749641,0.016813900484349713,0.11654920485049364,0.21511998808781552,0.31154136351337786,0.40484992061659836,0.4941133511386082,0.5784397643882002,0.6569865987187891,0.7289690401258759,0.7936678638491531,0.8504366206285644,0.8987080958116269,0.9379999767747389,0.9679196720314863,0.9881682338770004,0.998543345374605,0.998941341839772,0.9893582466233818,0.9698898108450863,0.9407305566797731,0.9021718337562934,0.8545989080882805,0.7984871126234903,0.7343970978741134,0.6629692300821833,0.5849171928917617,0.5010208564578846,0.4121184852417566,0.3190983623493521,0.22288991410024764,0.12445442350706169,0.024775425453357765,-0.07515112046180931,-0.17432678122297965,-0.2717606264109424,-0.3664791292519284,-0.45753589377532133,-0.5440211108893699,-0.6250706488928821,-0.6998746875935424,-0.7676858097635825,-0.8278264690856536,-0.87969575997167,-0.9227754216128066,-0.9566350162701879,-0.9809362300664916,-0.9954362533063774,-0.9999902065507035,-0.9945525882039892,-0.9791777291513174,-0.954019249902089,-0.9193285256646757,-0.8754521746884285,-0.8228285949687089,-0.7619835839190333,-0.6935250847771224,-0.6181371122370333,-0.5365729180004349,-0.44964746453460147,-0.3582292822368287,-0.263231791365801,-0.1656041754483094,-0.06632189735120068,0.03362304722113669,0.13323204141994222,0.23150982510153895,0.32747443913769303,0.4201670368266409,0.5086614643723737,0.592073514707223,0.6695697621966024,0.7403758899524486,0.803784426551621,0.8591618148564959,0.9059547423084618,0.9436956694441048,0.9720075013949759,0.9906073556948704,0.9993093887479176,0.9980266527163617,0.9867719642746133,0.9656577765492775,0.934895055524683,0.8947911721405042,0.8457468311429343,0.7882520673753163,0.7228813495119761],\"line\":{\"shape\":\"spline\"},\"mode\":\"lines\"}],\n",
       "  {},\n",
       "  {\"linkText\":\"Export to plot.ly\",\"showLink\":true}\n",
       ")\n",
       "\n",
       "window.addEventListener('resize', function() {\n",
       "  Plotly.Plots.resize(document.getElementById('52d2f3bb-398d-4297-9a0e-482a9f2b5201'))\n",
       "})\n",
       " }) \n",
       "</script>"
      ],
      "text/plain": [
       "#<Plotly::Offline::HTML:0x007fa0ba9475c0 @id=\"52d2f3bb-398d-4297-9a0e-482a9f2b5201\", @data=[{:x=>[0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 5.9, 6.0, 6.1, 6.2, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 6.9, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 8.6, 8.7, 8.8, 8.9, 9.0, 9.1, 9.2, 9.3, 9.4, 9.5, 9.6, 9.7, 9.8, 9.9], :y=>[0.09983341664682815, 0.19866933079506122, 0.29552020666133955, 0.3894183423086505, 0.479425538604203, 0.5646424733950354, 0.644217687237691, 0.7173560908995228, 0.7833269096274833, 0.8414709848078965, 0.8912073600614354, 0.9320390859672263, 0.963558185417193, 0.9854497299884601, 0.9974949866040544, 0.9995736030415051, 0.9916648104524686, 0.9738476308781951, 0.9463000876874145, 0.9092974268256817, 0.8632093666488738, 0.8084964038195901, 0.7457052121767203, 0.675463180551151, 0.5984721441039564, 0.5155013718214642, 0.4273798802338298, 0.33498815015590505, 0.2392493292139824, 0.1411200080598672, 0.04158066243329049, -0.058374143427580086, -0.1577456941432482, -0.2555411020268312, -0.35078322768961984, -0.44252044329485246, -0.5298361409084934, -0.6118578909427189, -0.6877661591839738, -0.7568024953079282, -0.8182771110644103, -0.8715757724135881, -0.9161659367494549, -0.9516020738895161, -0.977530117665097, -0.9936910036334644, -0.9999232575641008, -0.9961646088358407, -0.9824526126243325, -0.9589242746631385, -0.9258146823277325, -0.8834546557201531, -0.8322674422239013, -0.7727644875559871, -0.7055403255703919, -0.6312666378723216, -0.5506855425976376, -0.46460217941375737, -0.373876664830236, -0.27941549819892586, -0.1821625042720959, -0.08308940281749641, 0.016813900484349713, 0.11654920485049364, 0.21511998808781552, 0.31154136351337786, 0.40484992061659836, 0.4941133511386082, 0.5784397643882002, 0.6569865987187891, 0.7289690401258759, 0.7936678638491531, 0.8504366206285644, 0.8987080958116269, 0.9379999767747389, 0.9679196720314863, 0.9881682338770004, 0.998543345374605, 0.998941341839772, 0.9893582466233818, 0.9698898108450863, 0.9407305566797731, 0.9021718337562934, 0.8545989080882805, 0.7984871126234903, 0.7343970978741134, 0.6629692300821833, 0.5849171928917617, 0.5010208564578846, 0.4121184852417566, 0.3190983623493521, 0.22288991410024764, 0.12445442350706169, 0.024775425453357765, -0.07515112046180931, -0.17432678122297965, -0.2717606264109424, -0.3664791292519284, -0.45753589377532133], :line=>{:shape=>:spline}, :mode=>:lines}, {:x=>[0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 5.9, 6.0, 6.1, 6.2, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 6.9, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 8.6, 8.7, 8.8, 8.9, 9.0, 9.1, 9.2, 9.3, 9.4, 9.5, 9.6, 9.7, 9.8, 9.9], :y=>[0.8912073600614354, 0.9320390859672263, 0.963558185417193, 0.9854497299884601, 0.9974949866040544, 0.9995736030415051, 0.9916648104524686, 0.9738476308781951, 0.9463000876874145, 0.9092974268256817, 0.8632093666488738, 0.8084964038195901, 0.7457052121767203, 0.675463180551151, 0.5984721441039564, 0.5155013718214642, 0.4273798802338298, 0.33498815015590505, 0.2392493292139824, 0.1411200080598672, 0.04158066243329049, -0.058374143427580086, -0.1577456941432482, -0.2555411020268312, -0.35078322768961984, -0.44252044329485246, -0.5298361409084934, -0.6118578909427189, -0.6877661591839738, -0.7568024953079282, -0.8182771110644103, -0.8715757724135881, -0.9161659367494549, -0.9516020738895161, -0.977530117665097, -0.9936910036334644, -0.9999232575641008, -0.9961646088358407, -0.9824526126243325, -0.9589242746631385, -0.9258146823277325, -0.8834546557201531, -0.8322674422239013, -0.7727644875559871, -0.7055403255703919, -0.6312666378723216, -0.5506855425976376, -0.46460217941375737, -0.373876664830236, -0.27941549819892586, -0.1821625042720959, -0.08308940281749641, 0.016813900484349713, 0.11654920485049364, 0.21511998808781552, 0.31154136351337786, 0.40484992061659836, 0.4941133511386082, 0.5784397643882002, 0.6569865987187891, 0.7289690401258759, 0.7936678638491531, 0.8504366206285644, 0.8987080958116269, 0.9379999767747389, 0.9679196720314863, 0.9881682338770004, 0.998543345374605, 0.998941341839772, 0.9893582466233818, 0.9698898108450863, 0.9407305566797731, 0.9021718337562934, 0.8545989080882805, 0.7984871126234903, 0.7343970978741134, 0.6629692300821833, 0.5849171928917617, 0.5010208564578846, 0.4121184852417566, 0.3190983623493521, 0.22288991410024764, 0.12445442350706169, 0.024775425453357765, -0.07515112046180931, -0.17432678122297965, -0.2717606264109424, -0.3664791292519284, -0.45753589377532133, -0.5440211108893699, -0.6250706488928821, -0.6998746875935424, -0.7676858097635825, -0.8278264690856536, -0.87969575997167, -0.9227754216128066, -0.9566350162701879, -0.9809362300664916, -0.9954362533063774], :line=>{:shape=>:spline}, :mode=>:lines}, {:x=>[0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 5.9, 6.0, 6.1, 6.2, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 6.9, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 8.6, 8.7, 8.8, 8.9, 9.0, 9.1, 9.2, 9.3, 9.4, 9.5, 9.6, 9.7, 9.8, 9.9], :y=>[0.8632093666488738, 0.8084964038195901, 0.7457052121767203, 0.675463180551151, 0.5984721441039564, 0.5155013718214642, 0.4273798802338298, 0.33498815015590505, 0.2392493292139824, 0.1411200080598672, 0.04158066243329049, -0.058374143427580086, -0.1577456941432482, -0.2555411020268312, -0.35078322768961984, -0.44252044329485246, -0.5298361409084934, -0.6118578909427189, -0.6877661591839738, -0.7568024953079282, -0.8182771110644103, -0.8715757724135881, -0.9161659367494549, -0.9516020738895161, -0.977530117665097, -0.9936910036334644, -0.9999232575641008, -0.9961646088358407, -0.9824526126243325, -0.9589242746631385, -0.9258146823277325, -0.8834546557201531, -0.8322674422239013, -0.7727644875559871, -0.7055403255703919, -0.6312666378723216, -0.5506855425976376, -0.46460217941375737, -0.373876664830236, -0.27941549819892586, -0.1821625042720959, -0.08308940281749641, 0.016813900484349713, 0.11654920485049364, 0.21511998808781552, 0.31154136351337786, 0.40484992061659836, 0.4941133511386082, 0.5784397643882002, 0.6569865987187891, 0.7289690401258759, 0.7936678638491531, 0.8504366206285644, 0.8987080958116269, 0.9379999767747389, 0.9679196720314863, 0.9881682338770004, 0.998543345374605, 0.998941341839772, 0.9893582466233818, 0.9698898108450863, 0.9407305566797731, 0.9021718337562934, 0.8545989080882805, 0.7984871126234903, 0.7343970978741134, 0.6629692300821833, 0.5849171928917617, 0.5010208564578846, 0.4121184852417566, 0.3190983623493521, 0.22288991410024764, 0.12445442350706169, 0.024775425453357765, -0.07515112046180931, -0.17432678122297965, -0.2717606264109424, -0.3664791292519284, -0.45753589377532133, -0.5440211108893699, -0.6250706488928821, -0.6998746875935424, -0.7676858097635825, -0.8278264690856536, -0.87969575997167, -0.9227754216128066, -0.9566350162701879, -0.9809362300664916, -0.9954362533063774, -0.9999902065507035, -0.9945525882039892, -0.9791777291513174, -0.954019249902089, -0.9193285256646757, -0.8754521746884285, -0.8228285949687089, -0.7619835839190333, -0.6935250847771224, -0.6181371122370333], :line=>{:shape=>:spline}, :mode=>:lines}, {:x=>[0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 5.9, 6.0, 6.1, 6.2, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 6.9, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 8.6, 8.7, 8.8, 8.9, 9.0, 9.1, 9.2, 9.3, 9.4, 9.5, 9.6, 9.7, 9.8, 9.9], :y=>[0.04158066243329049, -0.058374143427580086, -0.1577456941432482, -0.2555411020268312, -0.35078322768961984, -0.44252044329485246, -0.5298361409084934, -0.6118578909427189, -0.6877661591839738, -0.7568024953079282, -0.8182771110644103, -0.8715757724135881, -0.9161659367494549, -0.9516020738895161, -0.977530117665097, -0.9936910036334644, -0.9999232575641008, -0.9961646088358407, -0.9824526126243325, -0.9589242746631385, -0.9258146823277325, -0.8834546557201531, -0.8322674422239013, -0.7727644875559871, -0.7055403255703919, -0.6312666378723216, -0.5506855425976376, -0.46460217941375737, -0.373876664830236, -0.27941549819892586, -0.1821625042720959, -0.08308940281749641, 0.016813900484349713, 0.11654920485049364, 0.21511998808781552, 0.31154136351337786, 0.40484992061659836, 0.4941133511386082, 0.5784397643882002, 0.6569865987187891, 0.7289690401258759, 0.7936678638491531, 0.8504366206285644, 0.8987080958116269, 0.9379999767747389, 0.9679196720314863, 0.9881682338770004, 0.998543345374605, 0.998941341839772, 0.9893582466233818, 0.9698898108450863, 0.9407305566797731, 0.9021718337562934, 0.8545989080882805, 0.7984871126234903, 0.7343970978741134, 0.6629692300821833, 0.5849171928917617, 0.5010208564578846, 0.4121184852417566, 0.3190983623493521, 0.22288991410024764, 0.12445442350706169, 0.024775425453357765, -0.07515112046180931, -0.17432678122297965, -0.2717606264109424, -0.3664791292519284, -0.45753589377532133, -0.5440211108893699, -0.6250706488928821, -0.6998746875935424, -0.7676858097635825, -0.8278264690856536, -0.87969575997167, -0.9227754216128066, -0.9566350162701879, -0.9809362300664916, -0.9954362533063774, -0.9999902065507035, -0.9945525882039892, -0.9791777291513174, -0.954019249902089, -0.9193285256646757, -0.8754521746884285, -0.8228285949687089, -0.7619835839190333, -0.6935250847771224, -0.6181371122370333, -0.5365729180004349, -0.44964746453460147, -0.3582292822368287, -0.263231791365801, -0.1656041754483094, -0.06632189735120068, 0.03362304722113669, 0.13323204141994222, 0.23150982510153895, 0.32747443913769303], :line=>{:shape=>:spline}, :mode=>:lines}, {:x=>[0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 5.9, 6.0, 6.1, 6.2, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 6.9, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 8.6, 8.7, 8.8, 8.9, 9.0, 9.1, 9.2, 9.3, 9.4, 9.5, 9.6, 9.7, 9.8, 9.9], :y=>[-0.8182771110644103, -0.8715757724135881, -0.9161659367494549, -0.9516020738895161, -0.977530117665097, -0.9936910036334644, -0.9999232575641008, -0.9961646088358407, -0.9824526126243325, -0.9589242746631385, -0.9258146823277325, -0.8834546557201531, -0.8322674422239013, -0.7727644875559871, -0.7055403255703919, -0.6312666378723216, -0.5506855425976376, -0.46460217941375737, -0.373876664830236, -0.27941549819892586, -0.1821625042720959, -0.08308940281749641, 0.016813900484349713, 0.11654920485049364, 0.21511998808781552, 0.31154136351337786, 0.40484992061659836, 0.4941133511386082, 0.5784397643882002, 0.6569865987187891, 0.7289690401258759, 0.7936678638491531, 0.8504366206285644, 0.8987080958116269, 0.9379999767747389, 0.9679196720314863, 0.9881682338770004, 0.998543345374605, 0.998941341839772, 0.9893582466233818, 0.9698898108450863, 0.9407305566797731, 0.9021718337562934, 0.8545989080882805, 0.7984871126234903, 0.7343970978741134, 0.6629692300821833, 0.5849171928917617, 0.5010208564578846, 0.4121184852417566, 0.3190983623493521, 0.22288991410024764, 0.12445442350706169, 0.024775425453357765, -0.07515112046180931, -0.17432678122297965, -0.2717606264109424, -0.3664791292519284, -0.45753589377532133, -0.5440211108893699, -0.6250706488928821, -0.6998746875935424, -0.7676858097635825, -0.8278264690856536, -0.87969575997167, -0.9227754216128066, -0.9566350162701879, -0.9809362300664916, -0.9954362533063774, -0.9999902065507035, -0.9945525882039892, -0.9791777291513174, -0.954019249902089, -0.9193285256646757, -0.8754521746884285, -0.8228285949687089, -0.7619835839190333, -0.6935250847771224, -0.6181371122370333, -0.5365729180004349, -0.44964746453460147, -0.3582292822368287, -0.263231791365801, -0.1656041754483094, -0.06632189735120068, 0.03362304722113669, 0.13323204141994222, 0.23150982510153895, 0.32747443913769303, 0.4201670368266409, 0.5086614643723737, 0.592073514707223, 0.6695697621966024, 0.7403758899524486, 0.803784426551621, 0.8591618148564959, 0.9059547423084618, 0.9436956694441048, 0.9720075013949759], :line=>{:shape=>:spline}, :mode=>:lines}, {:x=>[0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 4.1, 4.2, 4.3, 4.4, 4.5, 4.6, 4.7, 4.8, 4.9, 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7, 5.8, 5.9, 6.0, 6.1, 6.2, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 6.9, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.6, 7.7, 7.8, 7.9, 8.0, 8.1, 8.2, 8.3, 8.4, 8.5, 8.6, 8.7, 8.8, 8.9, 9.0, 9.1, 9.2, 9.3, 9.4, 9.5, 9.6, 9.7, 9.8, 9.9], :y=>[-0.9258146823277325, -0.8834546557201531, -0.8322674422239013, -0.7727644875559871, -0.7055403255703919, -0.6312666378723216, -0.5506855425976376, -0.46460217941375737, -0.373876664830236, -0.27941549819892586, -0.1821625042720959, -0.08308940281749641, 0.016813900484349713, 0.11654920485049364, 0.21511998808781552, 0.31154136351337786, 0.40484992061659836, 0.4941133511386082, 0.5784397643882002, 0.6569865987187891, 0.7289690401258759, 0.7936678638491531, 0.8504366206285644, 0.8987080958116269, 0.9379999767747389, 0.9679196720314863, 0.9881682338770004, 0.998543345374605, 0.998941341839772, 0.9893582466233818, 0.9698898108450863, 0.9407305566797731, 0.9021718337562934, 0.8545989080882805, 0.7984871126234903, 0.7343970978741134, 0.6629692300821833, 0.5849171928917617, 0.5010208564578846, 0.4121184852417566, 0.3190983623493521, 0.22288991410024764, 0.12445442350706169, 0.024775425453357765, -0.07515112046180931, -0.17432678122297965, -0.2717606264109424, -0.3664791292519284, -0.45753589377532133, -0.5440211108893699, -0.6250706488928821, -0.6998746875935424, -0.7676858097635825, -0.8278264690856536, -0.87969575997167, -0.9227754216128066, -0.9566350162701879, -0.9809362300664916, -0.9954362533063774, -0.9999902065507035, -0.9945525882039892, -0.9791777291513174, -0.954019249902089, -0.9193285256646757, -0.8754521746884285, -0.8228285949687089, -0.7619835839190333, -0.6935250847771224, -0.6181371122370333, -0.5365729180004349, -0.44964746453460147, -0.3582292822368287, -0.263231791365801, -0.1656041754483094, -0.06632189735120068, 0.03362304722113669, 0.13323204141994222, 0.23150982510153895, 0.32747443913769303, 0.4201670368266409, 0.5086614643723737, 0.592073514707223, 0.6695697621966024, 0.7403758899524486, 0.803784426551621, 0.8591618148564959, 0.9059547423084618, 0.9436956694441048, 0.9720075013949759, 0.9906073556948704, 0.9993093887479176, 0.9980266527163617, 0.9867719642746133, 0.9656577765492775, 0.934895055524683, 0.8947911721405042, 0.8457468311429343, 0.7882520673753163, 0.7228813495119761], :line=>{:shape=>:spline}, :mode=>:lines}], @layout={}, @config={:linkText=>\"Export to plot.ly\", :showLink=>true}, @embedded=true>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "require 'rbplotly'\n",
    "\n",
    "plot = Plotly::Plot.new\n",
    "flip = -1\n",
    "x = (0...100).map { |i| i.to_f / 10 }\n",
    "(0..5).each do |i|\n",
    "  trace = {\n",
    "    x: x,\n",
    "    y: (1...100).map { |j| Math.sin(j.to_f / 10 + i) },\n",
    "    line: { shape: :spline },\n",
    "    mode: :lines\n",
    "  }\n",
    "  plot.data.push(trace)\n",
    "end\n",
    "\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
}