# Implementation of bokeh function import numpy as np from bokeh.plotting import figure, output_file, show x = np.arange(16) y = np.sin(x / 3) plot = figure(plot_width=300, plot_height=300) plot.step(x=x, y=y+2, color ='blue', legend_label = 'pre') plot.line(x, y+2,color ='black', line_alpha = 0.3 , line_dash = "dashed") plot.step(x=x, y=y+1, color ='orange', legend_label = 'mid') plot.line(x, y+1, color ='black', line_alpha = 0.3 , line_dash = "dashed") plot.step(x=x, y=y, color ='green', legend_label = 'post') plot.line(x, y, color ='black', line_alpha = 0.3 , line_dash = "dashed") show(plot)