rangebars
rangebars(val, low, high; kwargs...)
rangebars(val, low_high; kwargs...)
rangebars(val_low_high; kwargs...)Plots rangebars at val in one dimension, extending from low to high in the other dimension given the chosen direction. The low_high argument can be a vector of tuples or intervals.
If you want to plot errors relative to a reference value, use errorbars.
Attributes
Available attributes and their defaults for Plot{Makie.rangebars} are:
color :black
colormap :viridis
colorrange MakieCore.Automatic()
colorscale identity
cycle [:color]
direction :y
inspectable true
linewidth 1.5
transparency false
visible true
whiskerwidth 0Examples
using CairoMakie
f = Figure()
Axis(f[1, 1])
vals = -1:0.1:1
lows = zeros(length(vals))
highs = LinRange(0.1, 0.4, length(vals))
rangebars!(vals, lows, highs, color = :red)
fusing CairoMakie
f = Figure()
Axis(f[1, 1])
vals = -1:0.1:1
lows = zeros(length(vals))
highs = LinRange(0.1, 0.4, length(vals))
rangebars!(vals, lows, highs, color = LinRange(0, 1, length(vals)),
whiskerwidth = 10, direction = :x)
f
© 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

