1cumsum = np.cumsum(x)
2
3trace = go.Scatter(x=[i for i in range(len(cumsum))], y=10*cumsum/np.linalg.norm(cumsum),
4 marker=dict(color='rgb(150, 25, 120)'))
5layout = go.Layout(
6 title="Cumulative Distribution Function"
7)
8
9fig = go.Figure(data=go.Data([trace]), layout=layout)
10py.iplot(fig, filename='cdf-dataset')
11
1import plotly.plotly as py
2import plotly.graph_objs as go
3from plotly.tools import FigureFactory as FF
4
5import numpy as np
6import pandas as pd
7import scipy
8