Examples - plot_heatmap()

In [1]:
from am4894pd.utils import df_dummy_ts # used to generate some dummy data
from am4894plots.plots import plot_heatmap

# generate some dummy time series data
df = df_dummy_ts(n_cols=4, freq='1min')
print(df.shape)
display(df.head())
(1342, 4)
col0 col1 col2 col3
time
2019-01-01 01:39:00 0.231846 -0.058591 -0.010348 0.043459
2019-01-01 01:40:00 0.224582 -0.046758 -0.000922 0.051141
2019-01-01 01:41:00 0.208052 -0.051456 -0.005755 0.049070
2019-01-01 01:42:00 0.205155 -0.072066 -0.021939 0.037423
2019-01-01 01:43:00 0.202429 -0.096522 -0.022628 0.045342
In [2]:
# plot heatmap
plot_heatmap(df, renderer='notebook')