A RetroSearch Logo

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

Search Query:

Showing content from https://www.geeksforgeeks.org/bokeh-plotting-figure-annular_wedge-function-in-python/ below:

bokeh.plotting.figure.annular_wedge() function in Python - GeeksforGeeks

bokeh.plotting.figure.annular_wedge() function in Python

Last Updated : 15 Jul, 2025

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 default axes, grids, tools, etc.

bokeh.plotting.figure.annular_wedge() Function

The

annular_wedge() function

in plotting module of bokeh library is used to add AnnularWedge glyphs to a Figure.

Syntax: annular_wedge(x, y, inner_radius, outer_radius, start_angle, end_angle, direction='anticlock', *, end_angle_units='rad', fill_alpha=1.0, fill_color='gray', inner_radius_units='data', line_alpha=1.0, line_cap='butt', line_color='black', line_dash=[], line_dash_offset=0, line_join='bevel', line_width=1, name=None, outer_radius_units='data', start_angle_units='rad', tags=[], **kwargs) Parameters: This method accept the following parameters that are described below: Other Parameters: These parameters are **kwargs that are described below: Return: This method return the GlyphRenderer value.

Below examples illustrate the bokeh.plotting.figure.annular_wedge() function in bokeh.plotting:

Example 1: Python3
# Implementation of bokeh function

import numpy as np 
from bokeh.plotting import figure, output_file, show

x = [2]
y = [2]
r = .6

plot = figure(width = 300, height = 300)
plot.annular_wedge(x = x, y = y, inner_radius =.2,
                   outer_radius = r, start_angle = 0, 
                   end_angle = 6.5, line_color = "red",
                   fill_color ="red")

show(plot)
Output: Example 2: Python3
# Implementation of bokeh function
 
import numpy as np 
from bokeh.plotting import figure, output_file, show
 
N = 9
x = np.linspace(-2, 2, N)
y = x**2
r = x / 12.0 + 0.4
 
plot = figure(width = 300, height = 300)
plot.annular_wedge(x = x, y = y, inner_radius =.2, 
                   outer_radius = r, start_angle = 0.6,
                   end_angle = 4.1, fill_color ="green")
 
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