hlines and vlines
hlines(ys; xmin = 0.0, xmax = 1.0, attrs...)
Create horizontal lines across a
Scene
with 2D projection. The lines will be placed at
ys
in data coordinates and
xmin
to
xmax
in scene coordinates (0 to 1). All three of these can have single or multiple values because they are broadcast to calculate the final line segments.
All style attributes are the same as for
LineSegments
.
vlines(xs; ymin = 0.0, ymax = 1.0, attrs...)
Create vertical lines across a
Scene
with 2D projection. The lines will be placed at
xs
in data coordinates and
ymin
to
ymax
in scene coordinates (0 to 1). All three of these can have single or multiple values because they are broadcast to calculate the final line segments.
All style attributes are the same as for
LineSegments
.
using CairoMakie
f = Figure()
ax1 = Axis(f[1, 1], title = "vlines")
lines!(ax1, 0..4pi, sin)
vlines!(ax1, [pi, 2pi, 3pi], color = :red)
ax2 = Axis(f[1, 2], title = "hlines")
hlines!(ax2, [1, 2, 3, 4], xmax = [0.25, 0.5, 0.75, 1], color = :blue)
f
These docs were autogenerated using Makie: v0.17.13, GLMakie: v0.6.13, CairoMakie: v0.8.13, WGLMakie: v0.6.13