Bokeh Interfaces – Basic Concepts of Bokeh
Bokeh is simple to use as it provides a simple interface to the data scientists who do not want to be distracted by its implementation and also provides a detailed interface to developers and software engineers who may want more control over the Bokeh to create more sophisticated features. To do this Bokeh follows the layered approach.
Bokeh.models
This class is the Python Library for Bokeh that contains model classes that handle the JSON data created by Bokeh’s JavaScript library (BokehJS). Most of the models are very basic consisting of very few attributes or no methods.
bokeh.plotting
This is the mid-level interface that provides Matplotlib or MATLAB like features for plotting. It deals with the data that is to be plotted and creating the valid axes, grids, and tools. The main class of this interface is the Figure class.
Python Bokeh tutorial – Interactive Data Visualization with Bokeh
Python Bokeh is a Data Visualization library that provides interactive charts and plots. Bokeh renders its plots using HTML and JavaScript that uses modern web browsers for presenting elegant, concise construction of novel graphics with high-level interactivity.
Features of Bokeh:
- Flexibility: Bokeh can be used for common plotting requirements and for custom and complex use-cases.
- Productivity: Its interaction with other popular Pydata tools (such as Pandas and Jupyter notebook) is very easy.
- Interactivity: It creates interactive plots that change with the user interaction.
- Powerful: Generation of visualizations for specialized use-cases can be done by adding JavaScript.
- Shareable: Visual data are shareable. They can also be rendered in Jupyter notebooks.
- Open source: Bokeh is an open-source project.
This tutorial aims at providing insight to Bokeh using well-explained concepts and examples with the help of a huge dataset. So let’s dive deep into the Bokeh and learn all it from basic to advance.
Table Of Content
- Installation
- Bokeh Interfaces – Basic Concepts of Bokeh
- Getting Started
- Annotations and Legends
- Customizing Legends
- Plotting Different Types of Plots
- Bar Plot
- Scatter Plot
- Patch Plot
- Area Plot
- Pie Chart
- Creating Different Shapes
- Circle
- Oval
- Triangle
- Rectangle
- Polygon
- Plotting Multiple Plots
- Vertical Layouts
- Horizontal Layout
- Grid Layout
- Interactive Data Visualization
- Configuring Plot Tools
- Interactive Legends
- Adding Widgets to the Plot
- Creating Different Types of Glyphs
- Visualizing Different Types of Data
- More Topics on Bokeh