Plotlywrapper Demo Notebook

Welcome! This notebook demonstrates plotlywrapper's API.


In [1]:
import plotlywrapper as pw
import pandas as pd
import numpy as np
from numpy import random as rng

Now we need to generate some data to plot.


In [2]:
n = 100
X = rng.randn(100, 3)
df = pd.DataFrame(X, pd.date_range('2016', periods=n, freq=pd.DateOffset(hours=1)), columns=['alpha', 'beta', 'gamma'])

We can create scatter plots with scatter or df.plotly.scatter.


In [3]:
df.plotly.scatter()