Pandas API#
If hvplot and pandas are both installed, then we can use the pandas.options.plotting.backend to control the output of pd.DataFrame.plot
and pd.Series.plot
. This notebook is meant to recreate the pandas visualization docs.
import numpy as np
import pandas as pd
pd.options.plotting.backend = 'holoviews'
Basic Plotting: plot
#
The plot method on Series and DataFrame is just a simple wrapper around hvplot()
:
ts = pd.Series(np.random.randn(1000), index=pd.date_range('1/1/2000', periods=1000))
ts = ts.cumsum()
ts.plot()