<jupyter_start><jupyter_text>Config and Parse Data<jupyter_code>from plotly.offline import init_notebook_mode, iplot, plot
from plotly import tools
from plotly.graph_objs import Scatter, Figure, Layout
init_notebook_mode(connected=True)
from IPython.display import display, HTML
import json
with open('datalog.txt') as file:
    datalog = json.load(file)
    print('Data from: ' + datalog['timeStart'])<jupyter_output>Data from: UTC: 2017-11-05-19:38:21<jupyter_text>Plots<jupyter_code># Time signal
time = datalog['tLoopStart']

# Things we don't want to plot against time, like time itself
exclude = ['tLoopStart','timeStart']

# Get list of signals we do want to plot
signal_names = [name for name in datalog if name not in exclude]

# Make a list of scatter plots
plots = [Scatter(x = time, y = datalog[name], name = name) for name in signal_names]

# Create subplot grid
fig = tools.make_subplots(rows=len(signal_names), cols=1, print_grid=False)

# Add plots to the figure
for i, data in enumerate(plots):
    fig.append_trace(data, i+1, 1)

#Show the plots        
fig['layout'].update(height=1800)
iplot(fig)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.10645724258289703, 'fraction_numerical': 0.01832460732984293, 'mean_word_length': 5.707602339181286, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '54479', 'license': 'MIT', 'n_tokens_mistral': 415, 'n_tokens_neox': 392, 'n_words': 118, 'path': 'ev3/ev3dev/datalog/datalog.ipynb', 'repo_name': 'laurensvalk/segway', 'size': '1146'}