A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.geeksforgeeks.org/make-an-circle-glyphs-in-python-using-bokeh/ below:

Make an Circle Glyphs in Python using Bokeh

Make an Circle Glyphs in Python using Bokeh

Last Updated : 15 Jul, 2025

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 Glyphs

Different shapes such as circle, rectangle, polygon, etc. can, be drawn by the figure object. Bokeh Figure class following methods to draw circle glyphs which are given below:

1. circle() method:

circle() method is a used to add a circle glyph to the figure and needs x and y coordinates of its center.

Syntax: circle(x, y, *, angle=0.0, angle_units=’rad’, fill_alpha=1.0, fill_color=’gray’, line_alpha=1.0, line_cap=’butt’, line_color=’black’, line_dash=[], line_dash_offset=0, line_join=’bevel’, line_width=1, name=None, radius=None, radius_dimension=’x’, radius_units=’data’, size=4, tags=[], **kwargs) Parameter:This method accept the following parameters that are described below:
Example: Python3 1==
# Implementation of bokeh function 
   
import numpy as np  
from bokeh.plotting import figure, output_file, show 
   
plot = figure(plot_width = 300, plot_height = 300) 
plot.circle(x = [1, 2, 3], y = [3, 7, 5],  
            size = 20, color ="green", alpha = 0.6) 
   
show(plot) 
Output: 2. circle_cross() method:

circle_cross() method is a used to add a circle glyph with a ‘+’ cross through the center to the figure and needs x and y coordinates of its center.

Syntax: circle_cross(x, y, size=4, angle=0.0, *, angle_units=’rad’, fill_alpha=1.0, fill_color=’gray’, line_alpha=1.0, line_cap=’butt’, line_color=’black’, line_dash=[], line_dash_offset=0, line_join=’bevel’, line_width=1, name=None, tags=[], **kwargs) Parameter:This method accept the following parameters that are described below:
Example: Python3 1==
# Implementation of bokeh function 
    
import numpy as np  
from bokeh.plotting import figure, output_file, show 
    
plot = figure(plot_width = 300, plot_height = 300) 
plot.circle_cross(x = [1, 2, 3], y = [3, 7, 5], 
          size = 20, color ="green", alpha = 0.6) 
    
show(plot) 
Output: 3. circle_x() method:

circle_x() method is a used to add a circle glyph with a ‘X’ cross through the center. to the figure and needs x and y coordinates of its center.

Syntax: circle_x(x, y, size=4, angle=0.0, *, angle_units=’rad’, fill_alpha=1.0, fill_color=’gray’, line_alpha=1.0, line_cap=’butt’, line_color=’black’, line_dash=[], line_dash_offset=0, line_join=’bevel’, line_width=1, name=None, tags=[], **kwargs) Parameter:This method accept the following parameters that are described below:
Example: Python3 1==
# Implementation of bokeh function 
    
import numpy as np  
from bokeh.plotting import figure, output_file, show 
    
plot = figure(plot_width = 300, plot_height = 300) 
plot.circle_x(x = [1, 2, 3], y = [3, 7, 5], size = 20, 
         color ="green", alpha = 0.6) 
    
show(plot) 
Output:

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4