I am trying to create a 3D visualization of a laser passing through a cloud of atoms. I attempted to do this using the GLVisualize backend for Plots.jl in the following way:
using GLVisualize, Plots
glvisualize()
x = linspace(-10, 10, 100)
a = randn(100, 3) # atom positions
b = permutedims(exp(-x.^2).*(exp(-x.^2).').*ones(1, 1, 100), [1, 3, 2]) # laser beam
plot(b) # plot laser
scatter!(a[:, 1], a[:, 2], a[:, 3], color=:white, alpha=0.6) # plot atoms
This creates a nice visualization of the laser, however, it seems that the scatter plot points that would depict the atoms never show up. Does anyone have an idea of how to do this?