Skip to content

Add KDE to base functionality #176

Description

@lkruse

Feature request: add kernel density estimation plots to the core PGFPlots functionality.

The following code chunk is an MWE that produces the included bimodal plot.

using Distributions
using KernelDensity
using PGFPlots

N = 100
X = 10*rand(N); X[N÷2:end] .+= 20

k = kde(X)
p = Axis(Plots.Linear(k.x, k.density, closedCycle=true), 
        ymin=0, style="area style, enlarge x limits=false")

kde_example

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions