stem
stem(xs, ys, [zs]; kwargs...)
Plots markers at the given positions extending from offset
along stem lines.
The conversion trait of stem
is PointBased
.
Plot type
The plot type alias for the stem
function is Stem
.
Attributes
color
= @inherit markercolor
— No docs available.
colormap
= @inherit colormap
— No docs available.
colorrange
= automatic
— No docs available.
colorscale
= identity
— No docs available.
cycle
= [[:stemcolor, :color, :trunkcolor] => :color]
— 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).
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.
marker
= :circle
— No docs available.
markersize
= @inherit markersize
— No docs available.
model
= automatic
— Sets a model matrix for the plot. This overrides adjustments made with translate!
, rotate!
and scale!
.
offset
= 0
— Can be a number, in which case it sets y
for 2D, and z
for 3D stems. It can be a Point2
for 2D plots, as well as a Point3
for 3D plots. It can also be an iterable of any of these at the same length as xs
, ys
, zs
.
overdraw
= false
— Controls if the plot will draw over other plots. This specifically means ignoring depth checks in GL backends
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
.
stemcolor
= @inherit linecolor
— No docs available.
stemcolormap
= @inherit colormap
— No docs available.
stemcolorrange
= automatic
— No docs available.
stemlinestyle
= nothing
— No docs available.
stemwidth
= @inherit linewidth
— No docs available.
strokecolor
= @inherit markerstrokecolor
— No docs available.
strokewidth
= @inherit markerstrokewidth
— 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.
trunkcolor
= @inherit linecolor
— No docs available.
trunkcolormap
= @inherit colormap
— No docs available.
trunkcolorrange
= automatic
— No docs available.
trunklinestyle
= nothing
— No docs available.
trunkwidth
= @inherit linewidth
— No docs available.
visible
= true
— Controls whether the plot will be rendered or not.
Examples
using CairoMakie
f = Figure()
Axis(f[1, 1])
xs = LinRange(0, 4pi, 30)
stem!(xs, sin.(xs))
f
using CairoMakie
f = Figure()
Axis(f[1, 1])
xs = LinRange(0, 4pi, 30)
stem!(xs, sin,
offset = 0.5, trunkcolor = :blue, marker = :rect,
stemcolor = :red, color = :orange,
markersize = 15, strokecolor = :red, strokewidth = 3,
trunklinestyle = :dash, stemlinestyle = :dashdot)
f
using CairoMakie
f = Figure()
Axis(f[1, 1])
xs = LinRange(0, 4pi, 30)
stem!(xs, sin.(xs),
offset = LinRange(-0.5, 0.5, 30),
color = LinRange(0, 1, 30), colorrange = (0, 0.5),
trunkcolor = LinRange(0, 1, 30), trunkwidth = 5)
f
using GLMakie
f = Figure()
xs = LinRange(0, 4pi, 30)
stem(f[1, 1], 0.5xs, 2 .* sin.(xs), 2 .* cos.(xs),
offset = Point3f.(0.5xs, sin.(xs), cos.(xs)),
stemcolor = LinRange(0, 1, 30), stemcolormap = :Spectral, stemcolorrange = (0, 0.5))
f
These docs were autogenerated using Makie: v0.21.0, GLMakie: v0.10.0, CairoMakie: v0.12.0, WGLMakie: v0.10.0