Bokeh-Patch-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()
categories = ['A', 'B', 'C', 'D', 'E']
values = [10, 20, 15, 25, 30]
patch_plot = figure(title="Sample Patch Plot", x_axis_label='X-Axis', y_axis_label='Y-Axis')
patch_plot.patch([1, 2, 3, 4], [2, 4, 1, 3], color="pink", alpha=0.6, legend_label="Patch")
GlyphRenderer(
id = 'p1042', …)
show(patch_plot)
Score: 5
Category: bokeh