pie
pie(values; kwargs...)
Creates a pie chart from the given values
.
Plot type
The plot type alias for the pie
function is Pie
.
Attributes
color
= :gray
— No docs available.
depth_shift
= 0.0
— adjusts the depth value of a plot after all other transformations, i.e. in clip space, where 0 <= depth <= 1
. This only applies to GLMakie and WGLMakie and can be used to adjust render order (like a tunable overdraw).
fxaa
= true
— adjusts whether the plot is rendered with fxaa (anti-aliasing, GLMakie only).
inner_radius
= 0
— The inner radius of the pie segments. If this is larger than zero, the pie pieces become ring sections.
inspectable
= true
— sets whether this plot should be seen by DataInspector
.
inspector_clear
= automatic
— Sets a callback function (inspector, plot) -> ...
for cleaning up custom indicators in DataInspector.
inspector_hover
= automatic
— Sets a callback function (inspector, plot, index) -> ...
which replaces the default show_data
methods.
inspector_label
= automatic
— Sets a callback function (plot, index, position) -> string
which replaces the default label generated by DataInspector.
model
= automatic
— Sets a model matrix for the plot. This overrides adjustments made with translate!
, rotate!
and scale!
.
normalize
= true
— If true
, the sum of all values is normalized to 2π (a full circle).
offset
= 0
— The angular offset of the first pie segment from the (1, 0) vector in radians.
overdraw
= false
— Controls if the plot will draw over other plots. This specifically means ignoring depth checks in GL backends
radius
= 1
— The outer radius of the pie segments.
space
= :data
— sets the transformation space for box encompassing the plot. See Makie.spaces()
for possible inputs.
ssao
= false
— Adjusts whether the plot is rendered with ssao (screen space ambient occlusion). Note that this only makes sense in 3D plots and is only applicable with fxaa = true
.
strokecolor
= :black
— No docs available.
strokewidth
= 1
— No docs available.
transformation
= automatic
— No docs available.
transparency
= false
— Adjusts how the plot deals with transparency. In GLMakie transparency = true
results in using Order Independent Transparency.
vertex_per_deg
= 1
— Controls how many polygon vertices are used for one degree of rotation.
visible
= true
— Controls whether the plot will be rendered or not.
Examples
using CairoMakie
data = [36, 12, 68, 5, 42, 27]
colors = [:yellow, :orange, :red, :blue, :purple, :green]
f, ax, plt = pie(data,
color = colors,
radius = 4,
inner_radius = 2,
strokecolor = :white,
strokewidth = 5,
axis = (autolimitaspect = 1, )
)
f
using CairoMakie
f, ax, plt = pie([π/2, 2π/3, π/4],
normalize=false,
offset = π/2,
color = [:orange, :purple, :green],
axis = (autolimitaspect = 1,)
)
f
These docs were autogenerated using Makie: v0.21.0, GLMakie: v0.10.0, CairoMakie: v0.12.0, WGLMakie: v0.10.0