Bokeh-Step-Plot-1
Sat 17 May 2025
from bokeh.plotting import figure, output_file, show
from bokeh.io import output_notebook
from bokeh.models import ColumnDataSource
# Set Bokeh output to notebook
output_notebook()
x = ['A', 'B', 'C', 'D', 'E']
y = [10, 20, 15, 25, 30]
step_plot = figure(title="Sample Step Plot", x_axis_label='X-Axis', y_axis_label='Y-Axis')
step_plot.step(x, y, line_width=2, color="purple", legend_label="Step")
GlyphRenderer(
id = 'p1042', …)
show(step_plot)
Score: 5
Category: bokeh