#!/usr/bin/env python # coding: utf-8 # ## Examples - plot_lines() # In[1]: from am4894pd.utils import df_dummy_ts # used to generate some dummy data from am4894plots.plots import plot_lines, plot_lines_grid from am4894plots.lines.bokeh import plot_lines as plot_lines_bokeh from am4894plots.lines.bokeh import plot_lines_grid as plot_lines_grid_bk # generate some dummy time series data df = df_dummy_ts(n_cols=4, freq='1min') print(df.shape) #display(df.head()) # In[2]: # plot each time series on single plot as a line plot_lines(df, renderer='notebook', h=400, w=500) # In[3]: # or if you want to plot lines on a grid plot_lines_grid(df, renderer='notebook', h=400, w=500) # In[4]: # similar to above but using bokeh plot_lines_bokeh(df, notebook=True, h=300, w=500) # In[5]: # plot lines grid version using bokeh plot_lines_grid_bk(df, notebook=True, h=100, w=500)