Python Bokeh Tutorial | Create Interactive Plots, Multiplots & Grid Layouts

2025-09-11 19:499 min read

Content Introduction

This video covers the use of interactive libraries for data visualization, focusing on the capabilities of 'bouquet' and 'plotly' for creating interactive plots in Python. It discusses the limitations of static plotting libraries like Matplotlib and Seaborn, and introduces the interactive features that allow users to manipulate plots, including setting dimensions, titles, labels, markers, and colors. The tutorial provides examples of generating various plots, including line and scatter plots, with attention to customization options such as legends and marker shapes. It also touches on embedding plots in Jupyter notebooks and outlines the process for creating a grid of multiple plots, highlighting the benefits of interaction in visual data representation. The video concludes with a promise of more advanced topics, including three-dimensional plotting, in future sessions.

Key Information

  • The video discusses the usage of `matplotlib` and `seaborn` libraries for creating static plots, highlighting their limitations for interactivity.
  • Interactive plotting libraries like `bouquet` and `plotly` provide functionalities that allow users to engage with their plots.
  • The video introduces `bouquet` and explains its interactive plotting capabilities by showcasing a demonstration.
  • It emphasizes that once a plot is created using static libraries, users cannot interact with them, whereas `bouquet` allows for interactive plotting.
  • The video transitions into showing how to set up interactive plots, including how to define plot dimensions, titles, and markers.
  • Multiple interactive plots can be combined and managed in the same notebook, enhancing the data visualization experience.
  • There are different modes of displaying plots, such as in separate files or embedded within notebooks.
  • The video also contrasts `bouquet` with `plotly`, which is highlighted as another library for interactive three-dimensional plotting.

Timeline Analysis

Content Keywords

Matplotlib and Seaborn

Both Matplotlib and Seaborn are static plotting libraries used extensively for creating plots. Once a plot is created, users cannot interact with it, but there are many interactive libraries available.

Interactive Libraries

Interactive libraries like Bokeh and Plotly allow users to create interactive plots where figures can be drawn and manipulated. This enhances user engagement and data analysis.

Bokeh

Bokeh is introduced as an interactive plotting library. The speaker demonstrates using Bokeh to set up a plot using Jupyter Notebook, showing specific code for imports and basic configurations.

Plot Customization

The video discusses customizing plots, including setting titles, dimensions, and the marker type. It also emphasizes interaction and adjustments available with the defined parameters.

Grid Plot

A grid plot feature in Bokeh allows multiple subplots to be arranged in a grid format, enabling users to interact with multiple plots simultaneously.

3D Plotting

The discussion transitions to 3D plotting, where the speaker indicates the necessity of interactive functionality in such plots, particularly for data manipulation across dimensions.

Plotly

Plotly is introduced as a library that facilitates interactive 3D plotting. The speaker hints at exploring this library in future videos to address the limitations of Bokeh for 3D visualization.

More video recommendations

Share to: