Bokeh introduction
source: https://github.com/PacktPublishing/Hands-on-Data-Visualization-with-Bokeh
Last updated
Was this helpful?
source: https://github.com/PacktPublishing/Hands-on-Data-Visualization-with-Bokeh
Last updated
Was this helpful?
The following are some key definitions related to Bokeh
Applications: The Bokeh application is a rendered document that runs in the browser
Glyphs: The building blocks of Bokeh, the geometric shapes that make up every element in the plot, like lines, rectangles, or circles.
Widgets: sliders, dropdown menus, and tools to make the plot interactive
You can use output_file
to render your plot as an HTML file
Or you can use directly in a jupyter notebook using
Bokeh provides a plotting interface known as bokeh.plotting
. The interface is the Figure
class, which makes it possible to draw up the plot or plots on a 'canvas'.
The variable p holds information about the plot including the width, height and the tools that will be used. Since figure
is the main class, methods such as line, lables, legends and so on can be added to our diagram to create the plot
When the plot is drawn the plot can be outputted: