Created
July 9, 2022 09:56
-
-
Save jkrumbiegel/5d059dbf07722cf8d97701cd35ac29a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Makie.KernelDensity | |
x = randn(1000) | |
k = kde(x, npoints = 200) | |
f = Figure() | |
ax = Axis3(f[1, 1], limits = (-4, 4, -4, 4, 0, 1)) | |
p = poly!(ax, Point2f.(k.x, k.density), | |
model = Makie.Mat4f([ 1 0 0 0 | |
0 0 1 4 | |
0 1 0 0 | |
0 0 0 1 | |
]) | |
) | |
p = poly!(ax, Point2f.(k.x, k.density), | |
model = Makie.Mat4f([ 0 0 1 4 | |
1 0 0 0 | |
0 1 0 0 | |
0 0 0 1 | |
]) | |
) | |
f |
Author
jkrumbiegel
commented
Jul 9, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment