5.1 Basic Plotting
Creating Figures
1. Scatter and Markers
# Standard import
from bokeh.plotting import figure, output_file, show
output_notebook()# set the figure size and title
p = figure(plot_width=400, plot_height=400,title="Simple Scatter Plot")
# add a circle renderer with a size, color, and alpha
p.circle([2, 2, 3, 4, 5], [6, 7, 5, 4, 5], size=40, color="firebrick", alpha=0.7)
show(p)
2. Line Graphs
Single line and step line

Multiple lines and stacked lines

3. Bars
Vertical Bar and Horizontal Bar

Stacked Bar

4. Directed Areas
Single Area and Stacked Areas

5. Polygons

6. Wedges and Arcs

7. Combining Glyphs and Setting Range

Last updated