Skip to content
Foresight.hill Function
julia
hill(x; kwargs...)

Plots a density with a transparent fill.

Key attributes:

color = @inherit patchcolor: Color of the interior fill.

fillalpha = 0.5: Transparency of the interior fill.

filternan = true: Whether to remove NaN values from the data before plotting.

strokecolor = automatic: Color of the outline stroke.

strokewidth = 1: Width of the outline stroke.

Plot type

The plot type alias for the hill function is Hill.

Attributes

alpha = 1.0 — The alpha value of the colormap or color attribute. Multiple alphas like in plot(alpha=0.2, color=(:red, 0.5), will get multiplied.

bandwidth = automatic — Kernel density bandwidth, determined automatically if automatic.

boundary = automatic — Boundary of the density estimation, determined automatically if automatic.

color = @inherit patchcolor — Color of the density fill

colormap = @inherit colormapNo docs available.

colorrange = Makie.automaticNo docs available.

colorscale = identityNo docs available.

cycle = :color => :patchcolorNo docs available.

direction = :x — The dimension along which the values are distributed. Can be :x or :y.

fillalpha = 0.5 — Transparency of the fill patch

filternan = true — Whether to remove NaN values

inspectable = @inherit inspectableNo docs available.

linestyle = nothingNo docs available.

npoints = 200 — The resolution of the estimated curve along the dimension set in direction.

offset = 0.0 — Shift the density baseline, for layering multiple densities on top of each other.

strokearound = falseNo docs available.

strokecolor = automatic — Color of the density stroke

strokewidth = @inherit linewidthNo docs available.

visible = trueNo docs available.

weights = automatic — Assign a vector of statistical weights to values.

source