Created
March 4, 2015 17:21
-
-
Save theengineear/5bd58fcce03d1b2bdd48 to your computer and use it in GitHub Desktop.
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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:83a065456116e0426c7fa191cade5633d708562818f7b1b4a734feb7c09f14b9" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [ | |
"import plotly.plotly as py\n", | |
"from plotly.graph_objs import *\n", | |
"\n", | |
"# not sure how you had these defined\n", | |
"fts_times = [0, 1, 2, 3]\n", | |
"fts_values = [10, 5, 10, 20]\n", | |
"\n", | |
"rse_times = [1, 2, 3, 4]\n", | |
"rse_values = [3, 18, 2, 6]\n", | |
"\n", | |
"# reformatting of your posted code\n", | |
"trace0 = Scatter(\n", | |
" x=fts_times,\n", | |
" y=fts_values,\n", | |
" name = 'fts'\n", | |
")\n", | |
"trace1 = Scatter(\n", | |
" x=rse_times,\n", | |
" y=rse_values,\n", | |
" name = 'rsemgr'\n", | |
")\n", | |
"\n", | |
"traces = [trace0,trace1]\n", | |
"data = Data(traces)\n", | |
"\n", | |
"# plot the data and embed back here\n", | |
"py.iplot(data, filename='temporary')" | |
], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [ | |
{ | |
"html": [ | |
"<iframe id=\"igraph\" scrolling=\"no\" style=\"border:none;\"seamless=\"seamless\" src=\"https://plot.ly/~theengineear/3033.embed\" height=\"525\" width=\"100%\"></iframe>" | |
], | |
"metadata": {}, | |
"output_type": "pyout", | |
"prompt_number": 1, | |
"text": [ | |
"<plotly.tools.PlotlyDisplay at 0x111541c50>" | |
] | |
} | |
], | |
"prompt_number": 1 | |
}, | |
{ | |
"cell_type": "code", | |
"collapsed": false, | |
"input": [], | |
"language": "python", | |
"metadata": {}, | |
"outputs": [] | |
} | |
], | |
"metadata": {} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment