This file contains 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 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 |