scatterlines

AbstractPlotting.scatterlinesFunction
scatterlines(xs, ys, [zs]; kwargs...)

Plots scatter markers and lines between them.

Attributes

Available attributes and their defaults for ScatterLines{T} where T are:

  color             :black
  colormap          :viridis
  colorrange        AbstractPlotting.Automatic()
  linestyle         "nothing"
  linewidth         1.0
  marker            Circle{T} where T
  markercolor       :gray65
  markercolormap    :viridis
  markercolorrange  AbstractPlotting.Automatic()
  markersize        10
  strokecolor       :black
  strokewidth       1.0
source

Examples

using CairoMakie

f = Figure(resolution = (800, 600))
Axis(f[1, 1])

xs = LinRange(0, 10, 20)
ys = 0.5 .* sin.(xs)

scatterlines!(xs, ys, color = :red)
scatterlines!(xs, ys .- 1, color = xs, markercolor = :red)
scatterlines!(xs, ys .- 2, markersize = LinRange(5, 30, 20))
scatterlines!(xs, ys .- 3, marker = :cross, strokewidth = 0,
    strokecolor = :red, markercolor = :orange)

f