ablines
ablines(intercepts, slopes; attrs...)
Creates a line defined by f(x) = slope * x + intercept
crossing a whole Scene
with 2D projection at its current limits. You can pass one or multiple intercepts or slopes.
All style attributes are the same as for LineSegments
.
using CairoMakie
ablines(0, 1)
ablines!([1, 2, 3], [1, 1.5, 2], color = [:red, :orange, :pink], linestyle=:dash, linewidth=2)
current_figure()
© Makie.jl. Last modified: October 31, 2023. Website built with Franklin.jl and the Julia programming language.
These docs were autogenerated using Makie: v0.19.12, GLMakie: v0.8.12, CairoMakie: v0.10.12, WGLMakie: v0.8.16