Skip to content

Instantly share code, notes, and snippets.

View danscr's full-sized avatar

Daniel Schraik danscr

View GitHub Profile
@danscr
danscr / voxelplot.jl
Last active November 19, 2019 10:52
MWE of voxel plot using PGFPlotsX
using PGFPlotsX
#array with color mixture ratio
lam = rand(4,5,8)
# filter out values with less than 10%
s = sum(lam .> 0.1)
#rearrange to get each array position and color in vector format
xyz = Array{Float64}(undef,s,3)
col = Array{Float64}(undef,s)
let
l = 1