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: May 07, 2024. Website built with Franklin.jl and the Julia programming language.
These docs were autogenerated using Makie: v0.20.10, GLMakie: v0.9.11, CairoMakie: v0.11.12, WGLMakie: v0.9.10