Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add KDE to base functionality #176

Open
lkruse opened this issue Aug 17, 2021 · 0 comments
Open

Add KDE to base functionality #176

lkruse opened this issue Aug 17, 2021 · 0 comments

Comments

@lkruse
Copy link

lkruse commented Aug 17, 2021

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

@lkruse lkruse changed the title Add KDE to Base Functionality Add KDE to base functionality Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant