ecdfplot

ecdfplot(values; npoints=10_000[, weights])              

Plot the empirical cumulative distribution function (ECDF) of values .

npoints controls the resolution of the plot. If weights for the values are provided, a weighted ECDF is plotted.

Attributes

Available attributes and their defaults for Combined{Makie.ecdfplot} are:

  color           :black
  colormap        :viridis
  colorrange      MakieCore.Automatic()
  cycle           [:color]
  depth_shift     0.0f0
  diffuse         Float32[0.4, 0.4, 0.4]
  inspectable     true
  linestyle       "nothing"
  linewidth       1.5
  nan_color       RGBA{Float32}(0.0f0,0.0f0,0.0f0,0.0f0)
  overdraw        false
  shininess       32.0f0
  space           :data
  specular        Float32[0.2, 0.2, 0.2]
  ssao            false
  step            :pre
  transparency    false
  visible         true              

Examples

using CairoMakie


f = Figure()
Axis(f[1, 1])

ecdfplot!(randn(200))

f          

using CairoMakie


f = Figure()
Axis(f[1, 1])

x = randn(200)
ecdfplot!(x, color = (:blue, 0.3))
ecdfplot!(x, color = :red, npoints=10)

f          

using CairoMakie


f = Figure()
Axis(f[1, 1])

x = rand(200)
w = @. x^2 * (1 - x)^2
ecdfplot!(x)
ecdfplot!(x; weights = w, color=:orange)

f