Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Bokeh
  • Matplotlib
  • Pandas
  • Seaborn
  • Ggplot
  • Plotly
  • Altair
  • Networkx
  • Machine Learning Math
  • Machin Learning
  • Data Analysis
  • Deep Learning
  • Deep Learning Projects
  • NLP
  • Computer vision
  • Data science
  • Machin Learning Interview question
  • Deep learning interview question
Open In App
Next Article:
Python Bokeh – Visualizing Stock Data
Next article icon

Python Bokeh – Visualizing the Iris Dataset

Last Updated : 29 Nov, 2022
Comments
Improve
Suggest changes
Like Article
Like
Report

Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to visualize the Iris flower dataset. Visualization is done using the plotting module. Here we will be using the Iris dataset given to us by Bokeh.

Downloading the dataset:

To download the Iris dataset run the following command on the command line :

bokeh sampledata

Alternatively, we can also execute the following Python code :

import bokeh bokeh.sampledata.download()

Analyzing the dataset:

In the sample data provided by Bokeh, there is a file iris.csv, this is the Iris dataset. Below is a glimpse into the iris.csv file :

sepal_length    sepal_width    petal_length    petal_width    species 5.1        3.5        1.4        0.2        setosa 4.9        3        1.4        0.2        setosa 4.7        3.2        1.3        0.2        setosa 4.6        3.1        1.5        0.2        setosa 5        3.6        1.4        0.2        setosa

The dataset contains 5 attributes which are :

  • sepal_length in cm
  • sepal_width in cm
  • petal_length in cm
  • petal_width in cm
  • species has 3 types of flower species :
    • setosa
    • versicolor
    • virginica

Each species has 50 records and the total entries are 150.

Visualizing the Dataset:

We will be plotting graphs to visualize the clustering of the data for all the 3 species. 

Example 1: Here will be plotting a graph with length of petals as the x-axis and the breadth of petals as the y-axis.

  1. Import the required modules:
    • figure, output_file and show from bokeh.plotting
    • flowers from bokeh.sampledata.iris
  2. Instantiate a figure object with the title.
  3. Give the names to x-axis and y-axis.
  4. Plot the graphs for all the 3 species.
  5. Display the model.

Example:

Python3

# importing the modules
from bokeh.sampledata.iris import flowers
from bokeh.plotting import figure, show, output_file
 
# file to save the model
output_file("gfg.html")
 
# instantiating the figure object
graph = figure(title="Iris Visualization")
 
# labeling the x-axis and the y-axis
graph.xaxis.axis_label = "Petal Length (in cm)"
graph.yaxis.axis_label = "Petal Width (in cm)"
 
# plotting for setosa petals
x = flowers[flowers["species"] == "setosa"]["petal_length"]
y = flowers[flowers["species"] == "setosa"]["petal_width"]
color = "blue"
legend_label = "setosa petals"
graph.circle(x, y,
             color=color,
             legend_label=legend_label)
 
# plotting for versicolor petals
x = flowers[flowers["species"] == "versicolor"]["petal_length"]
y = flowers[flowers["species"] == "versicolor"]["petal_width"]
color = "yellow"
legend_label = "versicolor petals"
graph.circle(x, y,
             color=color,
             legend_label=legend_label)
 
# plotting for virginica petals
x = flowers[flowers["species"] == "virginica"]["petal_length"]
y = flowers[flowers["species"] == "virginica"]["petal_width"]
color = "red"
legend_label = "virginica petals"
graph.circle(x, y,
             color=color,
             legend_label=legend_label)
 
# relocating the legend table to
# avoid abstruction of the graph
graph.legend.location = "top_left"
 
# displaying the model
show(graph)
                      
                       

Output:

 

Code Explanation:

  1. The code starts by importing the modules needed for this project.
  2. Next, a file is created to save the model and then an output_file() function is called with the name of that file.
  3. Next, a figure object is instantiated and labeled with x-axis and y-axis labels.
  4. The next step in creating this graph is plotting for setosa petals using flowers[flowers[“species”] == “setosa”][“petal_length”] .
  5. Then, color = “blue”, legend_label = “setosa petals”.
  6. Next, plotting for versicolor petals using flowers[flowers[“species”] == “versicolor”][“petal_length”], color = “yellow”, legend_label = “versicolor petals”.
  7. Lastly, plotting for virginica petals using flowers[flowers[“species”] == “virginica”][“petal_length”], color = red,”legend label=”virginica petals.”
  8. The code is a small snippet of code that will create an interactive graph of the iris flower.
  9. The graph will be created using bokeh, which is a Python library for creating interactive visualizations.
  10. The code starts by importing the necessary modules to run the program and then instantiating a figure object with the title “Iris Visualization”.
  11. Next, labeling the x-axis and y-axis on the graph, plotting for setosa petals, versicolor petals, virginica petals and relocating the legend table to avoid abstruction of the graph.
  12. Finally, displaying the model.   

Example 2:

Here will be plotting a scatter plot graph with both sepals and petals with length as the x-axis and breadth as the y-axis.

  1. Import the required modules :
    • figure, output_file and show from bokeh.plotting
    • flowers from bokeh.sampledata.iris
  2. Instantiate a figure object with the title.
  3. Give the names to x-axis and y-axis.
  4. Plot the graphs for all the 3 species.
  5. Display the model.

Python3

# importing the modules
from bokeh.sampledata.iris import flowers
from bokeh.plotting import figure, show, output_file
 
# file to save the model
output_file("gfg.html")
 
# instantiating the figure object
graph = figure(title="Iris Visualization")
 
# labeling the x-axis and the y-axis
graph.xaxis.axis_label = "Length (in cm)"
graph.yaxis.axis_label = "Width (in cm)"
 
# plotting for setosa petals
x = flowers[flowers["species"] == "setosa"]["petal_length"]
y = flowers[flowers["species"] == "setosa"]["petal_width"]
marker = "circle_cross"
line_color = "blue"
fill_color = "lightblue"
fill_alpha = 0.4
size = 10
legend_label = "setosa petals"
graph.scatter(x, y,
              marker=marker,
              line_color=line_color,
              fill_color=fill_color,
              fill_alpha=fill_alpha,
              size=size,
              legend_label=legend_label)
 
# plotting for setosa sepals
x = flowers[flowers["species"] == "setosa"]["sepal_length"]
y = flowers[flowers["species"] == "setosa"]["sepal_width"]
marker = "square_cross"
line_color = "blue"
fill_color = "lightblue"
fill_alpha = 0.4
size = 10
legend_label = "setosa sepals"
graph.scatter(x, y,
              marker=marker,
              line_color=line_color,
              fill_color=fill_color,
              fill_alpha=fill_alpha,
              size=size,
              legend_label=legend_label)
 
# plotting for versicolor petals
x = flowers[flowers["species"] == "versicolor"]["petal_length"]
y = flowers[flowers["species"] == "versicolor"]["petal_width"]
marker = "circle_cross"
line_color = "yellow"
fill_color = "lightyellow"
fill_alpha = 0.4
size = 10
legend_label = "versicolor petals"
graph.scatter(x, y,
              marker=marker,
              line_color=line_color,
              fill_color=fill_color,
              fill_alpha=fill_alpha,
              size=size,
              legend_label=legend_label)
 
# plotting for versicolor sepals
x = flowers[flowers["species"] == "versicolor"]["sepal_length"]
y = flowers[flowers["species"] == "versicolor"]["sepal_width"]
marker = "square_cross"
line_color = "yellow"
fill_color = "lightyellow"
fill_alpha = 0.4
size = 10
legend_label = "versicolor sepals"
graph.scatter(x, y,
              marker=marker,
              line_color=line_color,
              fill_color=fill_color,
              fill_alpha=fill_alpha,
              size=size,
              legend_label=legend_label)
 
# plotting for virginica petals
x = flowers[flowers["species"] == "virginica"]["petal_length"]
y = flowers[flowers["species"] == "virginica"]["petal_width"]
marker = "circle_cross"
line_color = "red"
fill_color = "lightcoral"
fill_alpha = 0.4
size = 10
legend_label = "virginica petals"
graph.scatter(x, y,
              marker=marker,
              line_color=line_color,
              fill_color=fill_color,
              fill_alpha=fill_alpha,
              size=size,
              legend_label=legend_label)
 
# plotting for virginica sepals
x = flowers[flowers["species"] == "virginica"]["sepal_length"]
y = flowers[flowers["species"] == "virginica"]["sepal_width"]
marker = "square_cross"
line_color = "red"
fill_color = "lightcoral"
fill_alpha = 0.4
size = 10
legend_label = "virginica sepals"
graph.scatter(x, y,
              marker=marker,
              line_color=line_color,
              fill_color=fill_color,
              fill_alpha=fill_alpha,
              size=size,
              legend_label=legend_label)
 
# relocating the legend table to
# avoid abstruction of the graph
graph.legend.location = "top_left"
 
# displaying the model
show(graph)
                      
                       

Output:

Code Explanation:

  1. The code starts by importing the modules that are needed to run this program.
  2. The first module is from bokeh.sampledata and it imports flowers, which will be used later in the code.
  3. The second module is from bokeh.plotting and it imports figure, show, output_file, which are all used throughout the code to create a graph of an iris flower dataset.
  4. The next line creates a file called gfg.html that will be saved after running this program so that you can view your final product on another computer or device with internet access (e.g., laptop).
  5. This line also instantiates a figure object named “graph” with title “Iris Visualization”.
  6. Next comes labeling the x-axis and y-axis for easy reference later on in the code as well as creating two variables: length and width for use in plotting data points onto these axes respectively; they both have axis labels set to “Length (in cm)” and “Width (in cm)”.
  7. The code is used to create a graph of the Iris flower.
  8. The code starts by creating a scatter graph with the x-axis and y-axis.
  9. The x-axis is labeled “species” and the y-axis is labeled “petal_length.”
  10. Next, it creates a marker called “circle_cross” that has a line color of blue and fill color of lightblue.
  11. It also sets the size to 10.
  12. Finally, it creates two legends: one for setosa petals and one for versicolor sepals.
  13. The code is used to plot the setosa petals and sepals of a flower, as well as the versicolor petals and sepals.
  14. The code below is used to plot the data points for both sets of petals and sepals.
  15. # plotting for setosa petals x = flowers[flowers[“species”] == “setosa”][“petal_length”] y = flowers[flowers[“species”] == “setosa”][“petal_width”] marker = “circle_cross” line_color = “blue” fill_color = “lightblue” fill_alpha = 0.4
  16. The code starts by creating a scatter graph with the species as the x-axis and petal length, width, and sepal length as the y-axis.
  17. The first line creates a scatter graph for virginica flowers.
  18. The second line creates a scatter graph for virginica sepals.
  19. The code starts by creating an empty list called flowers that will hold all of the flowers in this dataset.
  20. Then it loops through each flower in this list to create three variables: species, petal_length, and petal_width which are used to plot on the scatter graph later on.
  21. Next it sets up two lists: one is called markers that contains different types of shapes (circle_cross, square_cross) while another is called lines that contains colors (red).
  22. These two lists are then passed into Graphviz’s scatters function where they’re plotted onto their respective graphs using different parameters such as marker = “circle_cross”, line_color = “red”, fill_color = “lightcoral”, size = 10, legend label=”virginia”
  23. The code is used to plot the species of flowers in a scatterplot.


Next Article
Python Bokeh – Visualizing Stock Data

Y

Yash_R
Improve
Article Tags :
  • Python
  • Data Visualization
  • Python-Bokeh
Practice Tags :
  • python

Similar Reads

  • 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: Boke
    15+ min read
  • Getting started With Bokeh

    • Introduction to Bokeh in Python
      Bokeh is a Python interactive data visualization. Unlike Matplotlib and Seaborn, Bokeh renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Features of Bokeh: Some o
      1 min read

    • How to Install Python Bokeh Library on Windows?
      There are different types of data visualization modules in Python like Matplotlib, Seaborn, or Plotly among them Bokeh module is one which is used to capsulate information or data in the form of graphs and charts which are embedded in flask and Django applications. This module is also used for makin
      2 min read

    • How to Install Bokeh in Python3 on MacOS?
      Data visualization is the graphical representation of information and data with the help of charts and graphs. There are different types of well-known data visualization libraries like Matplotlib, Seaborn or Plotly for presenting information and data in the form of charts and graphs. Bokeh is also a
      2 min read

    • Python - Setting up the Bokeh Environment
      Bokeh is supported on CPython versions 3.6+ only both with Standard distribution and Anaconda distribution. Other Python versions or implementations may or may not function. Current version of Bokeh is 2.0.2 . Bokeh package has the following dependencies: 1. Required Dependencies PyYAML>=3.10pyth
      1 min read

    Plotting Different Types of Plots

    • Python Bokeh - Plotting Vertical Bar Graphs
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity.Bokeh can be used to plot vertical bar graphs. Plotting vert
      4 min read

    • Python Bokeh - Plotting a Scatter Plot on a Graph
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to plot a scatter plot on a graph. Plotti
      2 min read

    • Python Bokeh - Plotting Patches on a Graph
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to plot patches on a graph. Plotting patc
      2 min read

    • Make an area plot in Python using Bokeh
      Bokeh is a Python interactive data visualization. Unlike Matplotlib and Seaborn, Bokeh renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Plotting the Area Plots A
      2 min read

    • Python Bokeh - Making a Pie Chart
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Let us see how to plot a pie chart in Bokeh. Does not provi
      3 min read

    Annotations and Legends

    • Python Bokeh - Making Interactive Legends
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. How to make Interactive legends? The legend of a graph refl
      2 min read

    • Bokeh - Annotations and Legends
      Prerequisites: Bokeh Bokeh includes several types of annotations to allow users to add supplemental information to their visualizations. Annotations are used to add notes or more information about a topic. Annotations can be titles, legends, Arrows, bands, labels etc. Adding legends to your figures
      2 min read

    Creating Diffrent Shapes

    • Python Bokeh - Plotting Ovals on a Graph
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to plot ovals on a graph. Plotting ovals
      4 min read

    • Python Bokeh - Plotting Triangles on a Graph
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to plot triangles on a graph. Plotting tr
      2 min read

    • Python Bokeh - Plotting Multiple Polygons on a Graph
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity.Bokeh can be used to plot multiple polygons on a graph. Plot
      3 min read

    • Python Bokeh - Plotting Rectangles on a Graph
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to plot rectangles on a graph. Plotting r
      2 min read

    Plotting Multiple Plots

    • Bokeh - Vertical layout of plots
      Bokeh includes several layout options for arranging plots and widgets. They make it possible to arrange multiple components to create interactive data applications. The layout functions helps build a grid of plots and widgets. It supports nesting of as many rows, columns, or grids of plots together
      2 min read

    • Bokeh - Horizontal layout of plots
      Bokeh includes several layout options for arranging plots and widgets. They make it possible to arrange multiple components to create interactive dashboards or data applications. The layout functions let you build a grid of plots and widgets. You can nest as many rows, columns, or grids of plots tog
      2 min read

    • Bokeh - grid layout of plots
      Bokeh includes several layout options for arranging plots and widgets. They make it possible to arrange multiple components to create interactive dashboards or data applications. The layout functions let you build a grid of plots and widgets. You can nest as many rows, columns, or grids of plots tog
      5 min read

    Functions in Bokeh

    • bokeh.plotting.figure.cross() function in Python
      Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like notebook, HTML, and server. Figure Class create a new Figure for plotting. It is a subclass of Plot that simplifies plot creation with de
      2 min read

    • bokeh.plotting.figure.diamond_cross() function in Python
      Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like a notebook, HTML and server. Figure Class create a new Figure for plotting. It is a subclass of Plot that simplifies plot creation with d
      2 min read

    • bokeh.plotting.figure.step() function in Python
      Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like notebook, html and server. The Figure Class create a new Figure for plotting. It is a subclass of Plot that simplifies plot creation with
      4 min read

    • bokeh.plotting.figure.circle_cross() function in Python
      Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like notebook, html and server. The Figure Class create a new Figure for plotting. It is a subclass of Plot that simplifies plot creation with
      4 min read

    • bokeh.plotting.figure.annular_wedge() function in Python
      Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like notebook, html and server. The Figure Class create a new Figure for plotting. It is a subclass of Plot that simplifies plot creation with
      4 min read

    • bokeh.plotting.figure.arc() function in Python
      Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like notebook, html and server. The Figure Class create a new Figure for plotting. It is a subclass of Plot that simplifies plot creation with
      4 min read

    • bokeh.plotting.figure.asterisk() function in Python
      Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like notebook, html and server. The Figure Class create a new Figure for plotting. It is a subclass of Plot that simplifies plot creation with
      4 min read

    • bokeh.plotting.figure.bezier() function in Python
      Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like notebook, html and server. The Figure Class create a new Figure for plotting. It is a subclass of Plot that simplifies plot creation with
      4 min read

    • bokeh.plotting.figure.circle_x() function in Python
      Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like notebook, html and server. The Figure Class create a new Figure for plotting. It is a subclass of Plot that simplifies plot creation with
      4 min read

    • bokeh.plotting.figure.circle() function in Python
      Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like notebook, html and server. The Figure Class create a new Figure for plotting. It is a subclass of Plot that simplifies plot creation with
      4 min read

    • bokeh.plotting.figure.annulus() function in Python
      Bokeh is a data visualization library in Python that provides high-performance interactive charts and plots and the output can be obtained in various mediums like notebook, html and server. The Figure Class create a new Figure for plotting. It is a subclass of Plot that simplifies plot creation with
      4 min read

    Interactive Data Visualization

    • Configuring Plot Tooltips in Bokeh
      Bokeh is a powerful data visualization library in Python that allows you to create interactive and visually appealing plots. The Bokeh plotting module provides several tools that can be used to enhance the functionality of the plots. These tools can be configured to suit your specific needs. In this
      4 min read

    • Bokeh - Adding Widgets
      Bokeh is a Python data visualization library for creating interactive charts & plots. It helps us in making beautiful graphs from simple plots to dashboards. Using this library, we can create javascript-generated visualization without writing any scripts. What is a widget? Widgets are interactiv
      11 min read

    Graph

    • Python Bokeh - Plotting a Line Graph
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to plot a line graph. Plotting a line gra
      4 min read

    • Python Bokeh - Plotting Multiple Lines on a Graph
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to plot multiple lines on a graph. Plotti
      3 min read

    • Python Bokeh - Plotting Horizontal Bar Graphs
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to plot horizontal bar graphs. Plotting h
      4 min read

    • Python Bokeh - Plotting Vertical Bar Graphs
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity.Bokeh can be used to plot vertical bar graphs. Plotting vert
      4 min read

    • Python Bokeh - Plotting a Scatter Plot on a Graph
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to plot a scatter plot on a graph. Plotti
      2 min read

    • Python Bokeh - Plotting Patches on a Graph
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to plot patches on a graph. Plotting patc
      2 min read

    • Make an area plot in Python using Bokeh
      Bokeh is a Python interactive data visualization. Unlike Matplotlib and Seaborn, Bokeh renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Plotting the Area Plots A
      2 min read

    • Python Bokeh - Plotting Wedges on a Graph
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to plot wedges on a graph. Plotting wedge
      3 min read

    • Python Bokeh - Making a Pie Chart
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Let us see how to plot a pie chart in Bokeh. Does not provi
      3 min read

    • Python Bokeh - Plotting Triangles on a Graph
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to plot triangles on a graph. Plotting tr
      2 min read

    • Python Bokeh - Plotting Ovals on a Graph
      Bokeh is a Python interactive data visualization. It renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Bokeh can be used to plot ovals on a graph. Plotting ovals
      4 min read

    Building Advanced Visualizations with Glyphs

    • Glyphs in Bokeh
      Bokeh is a library of Python which is used to create interactive data visualizations. In this article, we will discuss glyphs in Bokeh. But at first let's see how to install Bokeh in Python. Installation To install this type the below command in the terminal. conda install bokeh Or pip install bokeh
      6 min read

    • Create a plot with Multiple Glyphs using Python Bokeh
      In this article, we will be learning about multiple glyphs and also about adding a legend in bokeh. Now bokeh provides us with a variety of glyphs that can be used to represent a point in a plot. Some glyphs are circle, square, asterik, inverted_triangle(), triangle() etc. Installation This module d
      7 min read

    • Make an Circle Glyphs in Python using Bokeh
      Bokeh is a Python interactive data visualization. Unlike Matplotlib and Seaborn, Bokeh renders its plots using HTML and JavaScript. It targets modern web browsers for presentation providing elegant, concise construction of novel graphics with high-performance interactivity. Plotting the Circle Glyph
      4 min read

geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences