series
series(curves;
linewidth=2,
color=:lighttest,
solid_color=nothing,
labels=nothing,
# scatter arguments, if any is set != nothing, a scatterplot is added
marker=nothing,
markersize=nothing,
markercolor=automatic,
strokecolor=nothing,
strokewidth=nothing)
Curves can be:
AbstractVector{<: AbstractVector{<: Point2}}
: the native representation of a series as a vector of linesAbstractMatrix
: each row represents y coordinates of the line, whilex
goes from1:size(curves, 1)
AbstractVector, AbstractMatrix
: the same as the above, but the first argument sets the x values for all linesAbstractVector{<: Tuple{X<: AbstractVector, Y<: AbstractVector}}
: A vector of tuples, where each tuple contains a vector for the x and y coordinates
Examples
Matrix
using CairoMakie
data = cumsum(randn(4, 101), dims = 2)
fig, ax, sp = series(data, labels=["label $i" for i in 1:4])
axislegend(ax)
fig
Vector of vectors
pointvectors = [Point2f.(1:100, cumsum(randn(100))) for i in 1:4]
series(pointvectors, markersize=5, color=:Set1)
Vector and matrix
data = cumsum(randn(4, 101), dims = 2)
series(0:0.1:10, data, solid_color=:black)
© 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